-
-
Notifications
You must be signed in to change notification settings - Fork 708
build(pyrefly): enable Pyrefly static type checking across Python targets #4020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rickeylev
wants to merge
65
commits into
bazel-contrib:main
Choose a base branch
from
rickeylev:enable_pyrefly_python_targets
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
ad6674f
Add rules_pyrefly static type checking for //python/runfiles:runfiles
rickeylev f06e59f
Move Pyrefly aspect to tools/private/pyrefly.bzl
rickeylev fb6a531
Move Pyrefly aspect into tools/private/pyrefly directory
rickeylev 286d28f
Update tools/private/pyrefly/BUILD.bazel via Gazelle
rickeylev 4b15b38
Use //tools/private/pyrefly:pyrefly.bzl%pyrefly_aspect label in .bazelrc
rickeylev 3f383d1
Remove leftover pyrefly bzl_library targets from tools and tools/priv…
rickeylev 2e10394
Remove tools/private/pyrefly/BUILD.bazel target
rickeylev 15454f9
Add pyrefly_check rule under //tests/runfiles for target-integrated t…
rickeylev 7e1644e
Restore tools/private/pyrefly/BUILD.bazel with Gazelle formatting and…
rickeylev 1cd767a
Remove redundant build:pyrefly config from .bazelrc
rickeylev bd1c5fb
Mark pyrefly extension/toolchain as dev_dependency in MODULE.bazel an…
rickeylev 1f8e8b1
Convert pyrefly_check to test rule pyrefly_check_test
rickeylev 7028d12
Wrap pyrefly_check in build_test in tests/runfiles/BUILD.bazel
rickeylev 4ab6a4b
Hide build_test behind pyrefly_check_test macro
rickeylev 5d5fae7
Move tools/private/pyrefly to tests/support/pyrefly
rickeylev 4dd0dfc
Merge upstream/main into use_pyrefly_runfiles_check
rickeylev 6a5b071
Use tag-based Pyrefly opt-in with global aspect registration
rickeylev e63101e
Gate Pyrefly aspect evaluation behind BZLMOD_ENABLED
rickeylev d14c712
Move BZLMOD_ENABLED check into pyrefly_check_test macro
rickeylev 0b62db9
Declare rules_pyrefly in internal_dev_deps for WORKSPACE mode
rickeylev 10f59a0
Add comment explaining early exit when BZLMOD_ENABLED is False
rickeylev 43649e1
Use global aspect and WORKSPACE stub for rules_pyrefly
rickeylev bd8dad9
Remove pyrefly_check_test macro invocation from tests/runfiles
rickeylev d4f11d6
Remove pyrefly_check_test macro and pyrefly_check rule
rickeylev 47978ca
Add no_gh_auth_token_in_cmdline workspace rule
rickeylev adeaadc
Merge remote-tracking branch 'upstream/main' into enable_pyrefly_pyth…
rickeylev b0bff18
Enable opt-out Pyrefly static type checking across Python targets
rickeylev 6ce8842
Enable Pyrefly static type checking across remaining Python targets
rickeylev 6a7d66e
Merge remote-tracking branch 'upstream/main' into enable_pyrefly_pyth…
rickeylev aa19cec
test(repl): restore test_module import in test_cannot_import_test_mod…
rickeylev 302feb7
docs(plan): document explanations for retained no-pyrefly targets
rickeylev 385d25a
feat(tests): enable pyrefly on bootstrap, build_data, py_extension, a…
rickeylev 04bbbac
test(venv_site_packages_libs): assert ELFFile and MachO in shared_lib…
rickeylev d1d1e75
docs: remove temporary Pyrefly enablement plan
rickeylev 8875ba6
Merge remote-tracking branch 'upstream/main' into enable_pyrefly_pyth…
rickeylev 7b309e9
fix(typing): resolve pyrefly typing diagnostics in console script gen…
rickeylev 9fd9cd7
fix(typing): safely access sys._base_executable in bootstrap test
rickeylev b42658f
fix(typing): assert valid runfiles and rlocation in repl template
rickeylev 6c80f6a
fix(typing): fix pyrefly diagnostics in test validator, runner, and u…
rickeylev 7a38262
fix(typing): address Pyrefly static type analysis diagnostics across …
rickeylev 1bdfc13
fix(typing): ignore WSGI application argument type for make_server in…
rickeylev aea41d2
fix(examples): restore clean wheel packaging by setting no-pyrefly on…
rickeylev 1ee9f20
fix(typing): add runfiles non-null assertions in abi3_headers_linkage…
rickeylev 7e4f096
refactor: address review feedback on type checking and runfiles
rickeylev c46923e
fix(sphinxdocs): add pyrefly ignores and fix parameter name in bzl.py
rickeylev 2ca0541
fix(release): ignore bad-argument-type in mock_gh resolve_merge_commi…
rickeylev 656fcfc
Merge remote-tracking branch 'upstream/main' into enable_pyrefly_pyth…
rickeylev 433ae08
Address review comments on Pyrefly annotations and ignores
rickeylev 9e163c6
Fix mypy errors in runfiles library and tests
rickeylev dd1a434
Fix return type annotation for Path.runfiles_root
rickeylev bfcd6d0
Address review feedback on runfiles, repl, and docs
rickeylev 9157f96
Use getattr in Path._make_child to avoid mypy superclass error
rickeylev 89d4498
Simplify super()._make_child and clean debuggers doc example
rickeylev 21d24af
Explain type ignores on Path._make_child
rickeylev e09a898
Merge branch 'upstream/main' into enable_pyrefly_python_targets
rickeylev 2685982
Clarify error-specific ignores rule in python.md
rickeylev 04d312c
Fix Sphinx method override signatures and remove bad-override disables
rickeylev 53ad990
Restore pyrefly bad-override ignores in sphinxdocs and align signode …
rickeylev 552dc57
Add explanatory comments to pyrefly bad-override ignore suppressions
rickeylev 78a20cf
Restore NOTE comment in sphinx_bzl/BUILD.bazel
rickeylev 9aaef3a
Use collections.abc and builtin types instead of typing aliases
rickeylev 6af1a5f
Replace Optional[X] with X | None
rickeylev f43c5ad
Clean up request arguments access, runfiles init, and Sequence typing
rickeylev 2e43776
Enable future annotations in pathlib_test.py
rickeylev d4dc460
Merge branch 'upstream/main' into enable_pyrefly_python_targets
rickeylev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.