Skip to content

Commit 26bade1

Browse files
committed
add pre-commit config for pre-commit.ci
1 parent d9b79c9 commit 26bade1

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.0.1
4+
hooks:
5+
- id: end-of-file-fixer
6+
- id: trailing-whitespace
7+
- repo: https://github.com/asottile/pyupgrade
8+
rev: v2.23.3
9+
hooks:
10+
- id: pyupgrade
11+
args: [--py37-plus, --keep-runtime-typing]
12+
- repo: https://github.com/asottile/setup-cfg-fmt
13+
rev: v1.17.0
14+
hooks:
15+
- id: setup-cfg-fmt
16+
- repo: https://github.com/myint/autoflake
17+
rev: v1.4
18+
hooks:
19+
- id: autoflake
20+
args: ["--in-place", "--remove-all-unused-imports"]
21+
- repo: https://github.com/PyCQA/isort
22+
rev: 5.9.3
23+
hooks:
24+
- id: isort
25+
- repo: https://github.com/psf/black
26+
rev: 21.7b0
27+
hooks:
28+
- id: black
29+
- repo: https://github.com/PyCQA/flake8
30+
rev: 3.9.2
31+
hooks:
32+
- id: flake8

0 commit comments

Comments
 (0)