Kaynağa Gözat

Add pre-commit config

Lengyue 2 yıl önce
ebeveyn
işleme
4b27f600b3
1 değiştirilmiş dosya ile 19 ekleme ve 0 silme
  1. 19 0
      .pre-commit-config.yaml

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

@@ -0,0 +1,19 @@
+ci:
+  autoupdate_schedule: monthly
+
+repos:
+  - repo: https://github.com/pycqa/isort
+    rev: 5.12.0
+    hooks:
+      - id: isort
+
+  - repo: https://github.com/psf/black
+    rev: 23.7.0
+    hooks:
+      - id: black
+
+  - repo: https://github.com/codespell-project/codespell
+    rev: v2.2.5
+    hooks:
+      - id: codespell
+        files: ^.*\.(py|md|rst|yml)$