Skip to content

Commit 7d9fe9d

Browse files
authored
add pre-commit configuration (#10)
1 parent 76eab30 commit 7d9fe9d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://pre-commit.com/
2+
repos:
3+
# isort should run before black as black sometimes tweaks the isort output
4+
- repo: https://github.com/timothycrosley/isort
5+
rev: 4.3.21
6+
hooks:
7+
- id: isort
8+
# https://github.com/python/black#version-control-integration
9+
- repo: https://github.com/python/black
10+
rev: stable
11+
hooks:
12+
- id: black
13+
- repo: https://gitlab.com/pycqa/flake8
14+
rev: 3.8.1
15+
hooks:
16+
- id: flake8

0 commit comments

Comments
 (0)