Skip to content

Commit 0f04e7e

Browse files
committed
Added flake8 to pre-commit config and set flake8 to ignore E203
E203 needs to be ignore due to a false positive alert for slicing. See. PyCQA/pycodestyle#373 (comment)
1 parent 351425e commit 0f04e7e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.pre-commit-config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ repos:
1212
hooks:
1313
- id: black
1414
language_version: python3
15+
16+
- repo: https://gitlab.com/pycqa/flake8
17+
rev: 3.8.4
18+
hooks:
19+
- id: flake8

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ search = __version__ = '{current_version}'
1212
replace = __version__ = '{new_version}'
1313

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

0 commit comments

Comments
 (0)