mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Fix pre-commit scoping of proposals/scripts, comment exclusions (#1238)
This commit is contained in:
@@ -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
|
||||
)$
|
||||
|
||||
Reference in New Issue
Block a user