Jelajahi Sumber

exclude .github from pre-commit

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 4 tahun lalu
induk
melakukan
2011bc3cea
2 mengubah file dengan 26 tambahan dan 24 penghapusan
  1. 25 23
      .pre-commit-config.yaml
  2. 1 1
      logo.svg

+ 25 - 23
.pre-commit-config.yaml

@@ -1,26 +1,28 @@
-- repo: git://github.com/pre-commit/pre-commit-hooks
-  sha: 'v0.9.1'
-  hooks:
-    - id: check-added-large-files
-    - id: check-docstring-first
-    - id: check-merge-conflict
-    - id: check-yaml
-    - id: check-json
-    - id: debug-statements
-    - id: end-of-file-fixer
-    - id: flake8
-    - id: name-tests-test
-      exclude: 'tests/(integration/testcases\.py|helpers\.py)'
-    - id: requirements-txt-fixer
-    - id: trailing-whitespace
-- repo: git://github.com/asottile/reorder_python_imports
-  sha: v1.3.4
-  hooks:
-    - id: reorder-python-imports
-      language_version: 'python3.7'
-      args:
-         - --py3-plus
--   repo: https://github.com/asottile/pyupgrade
+exclude: .github/
+repos:
+  - repo: git://github.com/pre-commit/pre-commit-hooks
+    sha: 'v0.9.1'
+    hooks:
+      - id: check-added-large-files
+      - id: check-docstring-first
+      - id: check-merge-conflict
+      - id: check-yaml
+      - id: check-json
+      - id: debug-statements
+      - id: end-of-file-fixer
+      - id: flake8
+      - id: name-tests-test
+        exclude: 'tests/(integration/testcases\.py|helpers\.py)'
+      - id: requirements-txt-fixer
+      - id: trailing-whitespace
+  - repo: git://github.com/asottile/reorder_python_imports
+    sha: v1.3.4
+    hooks:
+      - id: reorder-python-imports
+        language_version: 'python3.7'
+        args:
+          - --py3-plus
+  - repo: https://github.com/asottile/pyupgrade
     rev: v2.1.0
     hooks:
     -   id: pyupgrade

+ 1 - 1
logo.svg

@@ -434,4 +434,4 @@
   <path d="M358 397.7 c-8 -4.1 -11.2 -13.7 -8.7 -25.8 1.1 -5.3 7.7 -12.4 13.4 -14.3 6.1 -2.1 6.4 -2 5.8 0.7 -0.4 1.5 0.1 3.2 1.5 5 3.8 4.8 13 2.9 13 -2.7 0 -2.9 5.5 1.7 7.9 6.7 5.5 11.5 -0.2 26.2 -12.1 31.1 -5.6 2.4 -15.4 2 -20.8 -0.7z"/>
   <path d="M306.5 390.8 c-4 -1.4 -8.4 -5.6 -10.1 -9.5 -3.1 -7.1 -1 -20.9 3.9 -26.1 2.7 -2.9 8 -5.7 12.7 -6.7 3 -0.7 3.3 -0.6 2.2 0.7 -1.6 2 -0.1 6.2 2.7 7.7 4.7 2.6 12.1 -0.3 12.1 -4.6 0 -1.3 0.5 -1.2 2.6 0.8 3.2 3 6 8.3 6.9 13.1 1.7 9.1 -6.1 21.9 -15.1 24.6 -4.9 1.4 -13.7 1.4 -17.9 0z"/>
  </g>
-</svg>
+</svg>