فهرست منبع

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

Jon Meow 4 سال پیش
والد
کامیت
7ef7d7aecc
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      .pre-commit-config.yaml

+ 6 - 1
.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
           )$