Skip to content

Commit

Permalink
add flake8 in pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed Apr 8, 2022
1 parent fb54a38 commit d9aba6c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[flake8]
ignore = E203, E266, E501, W503, F403, F401, W191
max-line-length = 120
max-complexity = 18
select = B,C,E,F,W,T4,B9
exclude =
.git,
__pycache__,
docs/conf.py
tests
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ repos:
hooks:
- id: black
args: [--line-length=120]
- repo: https://github.com/pycqa/flake8
rev: 4.0.0
hooks:
- id: flake8
3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
black
flake8
pre-commit

0 comments on commit d9aba6c

Please sign in to comment.