Spaces:
Running
Running
fabiogra
commited on
Commit
•
b07d122
1
Parent(s):
61b1acc
feat: add precommit config
Browse files- .pre-commit-config.yaml +28 -0
.pre-commit-config.yaml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
exclude: '.git|.tox'
|
2 |
+
default_stages: [commit]
|
3 |
+
fail_fast: true
|
4 |
+
|
5 |
+
repos:
|
6 |
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
7 |
+
rev: v4.4.0
|
8 |
+
hooks:
|
9 |
+
- id: trailing-whitespace
|
10 |
+
- id: end-of-file-fixer
|
11 |
+
- id: check-toml
|
12 |
+
- id: check-yaml
|
13 |
+
- id: check-merge-conflict
|
14 |
+
|
15 |
+
- repo: https://github.com/psf/black
|
16 |
+
rev: 23.3.0
|
17 |
+
hooks:
|
18 |
+
- id: black
|
19 |
+
|
20 |
+
- repo: https://github.com/pycqa/isort
|
21 |
+
rev: 5.12.0
|
22 |
+
hooks:
|
23 |
+
- id: isort
|
24 |
+
|
25 |
+
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
26 |
+
rev: 'v0.0.277'
|
27 |
+
hooks:
|
28 |
+
- id: ruff
|