瀏覽代碼

Add pre-commit config

Jan Holthuis 5 年之前
父節點
當前提交
43b10754f4
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      .pre-commit-config.yaml

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

@@ -0,0 +1,14 @@
+repos:
+- repo: https://github.com/pre-commit/pre-commit-hooks
+  rev: v2.3.0
+  hooks:
+  - id: trailing-whitespace
+  - id: flake8
+  - id: check-merge-conflict
+  - id: check-yaml
+  - id: check-executables-have-shebangs
+  - id: mixed-line-ending
+-   repo: https://github.com/psf/black
+    rev: stable
+    hooks:
+    -   id: black