Browse Source

Add pre-commit support

Dan Braghis 4 years ago
parent
commit
f478cd54d7
1 changed files with 13 additions and 0 deletions
  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