-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pre-commit framework to execute mypy
We fix some things the fromer bazlized mypy check missed.
- Loading branch information
Showing
8 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# https://mypy.readthedocs.io/en/stable/config_file.html | ||
[mypy] | ||
# Required to work with Bazel integration | ||
# Without this mypy stumbles over us having several files with the same name in multiple directories, e.g. main | ||
explicit_package_bases = true | ||
# Preferred error reporting behavior | ||
pretty = true | ||
# Third party dependencies are not picked up by mypy | ||
ignore_missing_imports = true | ||
# Unreliable due to false positives | ||
warn_return_any = false | ||
# Additional checks beyond default settings | ||
warn_redundant_casts = true | ||
warn_unused_ignores = true | ||
warn_no_return = true | ||
warn_unreachable = true | ||
# Enable relative imports in the test orchestration scripts | ||
mypy_path = test/aspect/:test/apply_fixes/ |
This file contains 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 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 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 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 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 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