Skip to content

Commit 22ef5ed

Browse files
committed
pre-commit config
1 parent 039ddf6 commit 22ef5ed

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.pre-commit-config.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: system
5+
name: isort
6+
entry: poetry run isort .
7+
language: system
8+
pass_filenames: false
9+
- repo: local
10+
hooks:
11+
- id: pyupgrade
12+
name: pyupgrade
13+
entry: poetry run pyupgrade --py37-plus
14+
language: python
15+
types: [python]
16+
pass_filenames: true
17+
- repo: local
18+
hooks:
19+
- id: system
20+
name: Black
21+
entry: poetry run black .
22+
language: system
23+
pass_filenames: false
24+
- repo: local
25+
hooks:
26+
- id: system
27+
name: flake8
28+
entry: poetry run flake8 .
29+
language: system
30+
pass_filenames: false

0 commit comments

Comments
 (0)