Sfoglia il codice sorgente

Add pre-commit support

Dan Braghis 4 anni fa
parent
commit
f478cd54d7
1 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  1. 13 0
      .pre-commit-config.yaml

+ 13 - 0
.pre-commit-config.yaml

@@ -0,0 +1,13 @@
+repos:
+  - repo: https://github.com/timothycrosley/isort
+    # isort config is in setup.cfg
+    rev: 5.6.4
+    hooks:
+      - id: isort
+        language_version: python3
+  - repo: https://gitlab.com/pycqa/flake8
+    # flake8 config is in setup.cfg
+    rev: 3.8.4
+    hooks:
+      - id: flake8
+        language_version: python3