Skip to content

Commit

Permalink
Added flake8 to pre-commit config and set flake8 to ignore E203
Browse files Browse the repository at this point in the history
E203 needs to be ignore due to a false positive alert for slicing. See. PyCQA/pycodestyle#373 (comment)
  • Loading branch information
s-weigand committed Oct 17, 2020
1 parent 72c5a28 commit 44250a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ repos:
hooks:
- id: black
language_version: python3

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ replace = __version__ = '{new_version}'

[flake8]
max-line-length = 99
extend-ignore = F401,W504
extend-ignore = F401,W504,E203
exclude = __init__.py,*.pyc,tests.py
paths = ./holidays/ ./tests/

0 comments on commit 44250a8

Please sign in to comment.