瀏覽代碼

Add pre-commit support

Dan Braghis 4 年之前
父節點
當前提交
f478cd54d7
共有 1 個文件被更改,包括 13 次插入0 次删除
  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