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 Dec 7, 2020
1 parent e63f28d commit 8e47ebf
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 @@ -12,3 +12,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 @@ -12,6 +12,6 @@ search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'

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

0 comments on commit 8e47ebf

Please sign in to comment.