diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 29ab50bc49a1..8fe4a9106579 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -106,9 +106,14 @@ repos: additional_dependencies: - gql >= 2.0.0, < 3.0.0 - PyGitHub + # Exclusions are: + # - p#### scripts because they're not tested or maintained. + # - lit.cfg.py because it has multiple copies, breaking mypy. + # - Unit tests because they sometimes violate typing, such as by + # assigning a mock to a function. exclude: | (?x)^( - proposals/.*| + proposals/(?!scripts/).*| .*/lit\.cfg\.py| .*_test\.py )$