diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 88c215572..696ef3a92 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,3 +17,8 @@ repos: hooks: - id: black language_version: python3 + + - repo: https://gitlab.com/pycqa/flake8 + rev: 3.8.4 + hooks: + - id: flake8 diff --git a/setup.cfg b/setup.cfg index 4164e5377..78dd37800 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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/