Skip to content

Update mypy config file examples to use Label#115

Open
anguslees wants to merge 1 commit into
bazel-contrib:mainfrom
anguslees:patch-1
Open

Update mypy config file examples to use Label#115
anguslees wants to merge 1 commit into
bazel-contrib:mainfrom
anguslees:patch-1

Conversation

@anguslees
Copy link
Copy Markdown

@anguslees anguslees commented Aug 25, 2025

Some mypy label references are used between repos (main and rules_mypy) so it is important that they are declared relative to the original bzl file correctly. Use Label() at the construction site to do this.

(This is the "correct" fix for needing the full canonical name in string form, so update the advice to use "@@//name" explicitly.)

@anguslees anguslees requested a review from a team as a code owner August 25, 2025 23:25
Comment thread readme.md
Some mypy label references are used between repos (main and rules_mypy) so it is important that they are declared relative to the original bzl file correctly.  Use `Label()` at the construction site to do this.

(This is the "correct" fix for needing the full canonical name in string form, so update the advice to use "@@//name")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants