Fix pre-commit scoping of proposals/scripts, comment exclusions (#1238)

This commit is contained in:
Jon Meow
2022-05-09 13:23:33 -07:00
committed by GitHub
parent 51775e9374
commit 7ef7d7aecc
+6 -1
View File
@@ -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
)$