aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-07-04 12:34:41 +0800
committerGitHub <noreply@github.com>2023-07-04 12:34:41 +0800
commitacf428ca33060e8c5541d4ecab8c2c630b2ee33b (patch)
treee70ae777e3fa625efbf87ebb50bd22a699231a11 /.pre-commit-config.yaml
parent2e4908b3c1c2dc7351fd8829ee83ef754f0c6375 (diff)
downloadinfini-acf428ca33060e8c5541d4ecab8c2c630b2ee33b.tar.gz
infini-acf428ca33060e8c5541d4ecab8c2c630b2ee33b.zip
Create .pre-commit-config.yaml
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 00000000..b05736f7
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,20 @@
+repos:
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v4.4.0
+ hooks:
+ - id: check-ast
+ - id: check-case-conflict
+ - id: check-json
+ - id: check-toml
+ - id: check-yaml
+ - id: fix-byte-order-marker
+
+ - repo: https://github.com/pycqa/isort
+ rev: 5.12.0
+ hooks:
+ - id: isort
+
+ - repo: https://github.com/psf/black
+ rev: 23.3.0
+ hooks:
+ - id: black