Skip to content

Commit 0a1d938

Browse files
committedAug 13, 2021
add pre-commit and its config with black and flake8 + plugins hooks
1 parent 591385c commit 0a1d938

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
 

‎.pre-commit-config.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: 21.7b0
4+
hooks:
5+
- id: black
6+
args: ['-l 79']
7+
- repo: https://gitlab.com/pycqa/flake8
8+
rev: 3.9.2
9+
hooks:
10+
- id: flake8
11+
additional_dependencies:
12+
- flake8-bugbear
13+
- flake8-comprehensions
14+
- flake8-docstrings
15+
- pep8-naming

‎requirements-dev.txt

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ flake8-bugbear
77
flake8-comprehensions
88
flake8-docstrings
99
pep8-naming
10+
11+
pre-commit

0 commit comments

Comments
 (0)