chore: pre-commit
Browse files- .pre-commit-config.yaml +21 -0
.pre-commit-config.yaml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
repos:
|
2 |
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
3 |
+
rev: v4.4.0
|
4 |
+
hooks:
|
5 |
+
- id: check-case-conflict
|
6 |
+
- id: check-merge-conflict
|
7 |
+
- id: check-json
|
8 |
+
- id: check-toml
|
9 |
+
- id: check-xml
|
10 |
+
- id: check-yaml
|
11 |
+
- id: end-of-file-fixer
|
12 |
+
- id: trailing-whitespace
|
13 |
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
14 |
+
rev: v0.1.13
|
15 |
+
hooks:
|
16 |
+
- id: ruff
|
17 |
+
types_or: [ python, pyi, jupyter ]
|
18 |
+
args: [ --exit-zero ]
|
19 |
+
verbose: true
|
20 |
+
- id: ruff-format
|
21 |
+
types_or: [ python, pyi, jupyter ]
|