Spaces:
Running
on
Zero
Running
on
Zero
Martín Santillán Cooper
commited on
Commit
•
2e6c988
1
Parent(s):
6047b61
Add pre-commit file
Browse files- .pre-commit-config.yaml +28 -0
.pre-commit-config.yaml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
repos:
|
2 |
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
3 |
+
rev: v5.0.0
|
4 |
+
hooks:
|
5 |
+
- id: end-of-file-fixer
|
6 |
+
- id: check-added-large-files
|
7 |
+
- id: check-json
|
8 |
+
- id: check-merge-conflict
|
9 |
+
- repo: https://github.com/pycqa/flake8
|
10 |
+
rev: 7.1.1
|
11 |
+
hooks:
|
12 |
+
- id: flake8
|
13 |
+
- repo: https://github.com/pycqa/isort
|
14 |
+
rev: 5.13.2
|
15 |
+
hooks:
|
16 |
+
- id: isort
|
17 |
+
args: ["--profile", "black"]
|
18 |
+
- repo: https://github.com/asottile/pyupgrade
|
19 |
+
rev: v3.19.0
|
20 |
+
hooks:
|
21 |
+
- id: pyupgrade
|
22 |
+
args: ['--py310-plus']
|
23 |
+
- repo: https://github.com/psf/black
|
24 |
+
rev: 24.10.0
|
25 |
+
hooks:
|
26 |
+
- id: black
|
27 |
+
args:
|
28 |
+
- --line-length=120
|