Skip to content

Commit d115875

Browse files
committed
configure pre-commit
1 parent 83f4ff7 commit d115875

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.pre-commit-config.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
repos:
2+
- repo: https://github.com/asottile/pyupgrade
3+
rev: v2.31.0
4+
hooks:
5+
- id: pyupgrade
6+
args: ["--py37-plus"]
7+
8+
- repo: https://github.com/psf/black
9+
rev: 22.1.0
10+
hooks:
11+
- id: black
12+
args: ["--target-version", "py37"]
13+
14+
- repo: https://github.com/pycqa/isort
15+
rev: 5.10.1
16+
hooks:
17+
- id: isort
18+
19+
- repo: https://github.com/pre-commit/pygrep-hooks
20+
rev: v1.9.0
21+
hooks:
22+
- id: python-check-blanket-noqa
23+
24+
- repo: https://github.com/pre-commit/pre-commit-hooks
25+
rev: v4.1.0
26+
hooks:
27+
- id: check-merge-conflict
28+
- id: check-toml
29+
- id: check-yaml
30+
- id: mixed-line-ending
31+
32+
- repo: https://github.com/pre-commit/mirrors-prettier
33+
rev: v2.5.1
34+
hooks:
35+
- id: prettier
36+
args: [--prose-wrap=always, --print-width=88]
37+
38+
- repo: https://github.com/myint/autoflake
39+
rev: v1.4
40+
hooks:
41+
- id: autoflake
42+
args:
43+
- --in-place
44+
- --remove-all-unused-imports
45+
- --expand-star-imports
46+
- --remove-duplicate-keys
47+
- --remove-unused-variables
48+
49+
- repo: https://gitlab.com/pycqa/flake8
50+
rev: 3.9.2
51+
hooks:
52+
- id: flake8
53+
additional_dependencies: [flake8-2020]

0 commit comments

Comments
 (0)