Răsfoiți Sursa

Minor pre-commit autoupdate and cleanup (#1071)

Jon Meow 4 ani în urmă
părinte
comite
012fed599b
1 a modificat fișierele cu 3 adăugiri și 18 ștergeri
  1. 3 18
      .pre-commit-config.yaml

+ 3 - 18
.pre-commit-config.yaml

@@ -53,7 +53,7 @@ repos:
         pass_filenames: false
   # Formatters should be run late so that they can re-format any prior changes.
   - repo: https://github.com/psf/black
-    rev: f1d4e742c91dd5179d742b0db9293c4472b765f8 # frozen: 21.12b0
+    rev: fc0be6eb1e2a96091e6f64009ee5e9081bf8b6c6 # frozen: 22.1.0
     hooks:
       - id: black
   - repo: https://github.com/jlebar/pre-commit-hooks.git
@@ -97,27 +97,12 @@ repos:
             Exceptions. See /LICENSE for license information.
             SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
           - --custom_format
-          - '\.carbon$'
+          - '\.(carbon|ypp)$'
           - ''
           - '// '
           - ''
           - --custom_format
-          - '\.lpp$'
-          - '/*'
-          - ''
-          - '*/'
-          - --custom_format
-          - '\.ypp$'
-          - ''
-          - '// '
-          - ''
-          - --custom_format
-          - '\.l$'
-          - '/*'
-          - ''
-          - '*/'
-          - --custom_format
-          - '\.y$'
+          - '\.(l|lpp|y)$'
           - '/*'
           - ''
           - '*/'