Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
012748c
1
Parent(s):
4f68899
Create .pre-commit-config.yaml
Browse files- .pre-commit-config.yaml +38 -0
.pre-commit-config.yaml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
|
3 |
+
repos:
|
4 |
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
5 |
+
rev: v4.0.1
|
6 |
+
hooks:
|
7 |
+
- id: trailing-whitespace
|
8 |
+
- id: end-of-file-fixer
|
9 |
+
- id: debug-statements
|
10 |
+
- id: requirements-txt-fixer
|
11 |
+
- id: check-json
|
12 |
+
- id: check-yaml
|
13 |
+
- id: check-ast
|
14 |
+
- id: check-merge-conflict
|
15 |
+
|
16 |
+
- repo: https://github.com/psf/black
|
17 |
+
rev: 21.12b0
|
18 |
+
hooks:
|
19 |
+
- id: black
|
20 |
+
language_version: python3
|
21 |
+
|
22 |
+
- repo: https://github.com/asottile/add-trailing-comma
|
23 |
+
rev: v2.2.1
|
24 |
+
hooks:
|
25 |
+
- id: add-trailing-comma
|
26 |
+
args: [--py36-plus]
|
27 |
+
|
28 |
+
- repo: https://github.com/asottile/pyupgrade
|
29 |
+
rev: v2.29.1
|
30 |
+
hooks:
|
31 |
+
- id: pyupgrade
|
32 |
+
args: [--py36-plus]
|
33 |
+
|
34 |
+
- repo: https://github.com/pycqa/isort
|
35 |
+
rev: 5.10.1
|
36 |
+
hooks:
|
37 |
+
- id: isort
|
38 |
+
args: ["--profile", "black", "--filter-files"]
|