From 7aea77f41db4f0ba9e6fc70d86f06ac816dace02 Mon Sep 17 00:00:00 2001 From: s-weigand Date: Sat, 17 Oct 2020 18:26:56 +0200 Subject: [PATCH] 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. https://github.com/PyCQA/pycodestyle/issues/373#issuecomment-678689283 --- .pre-commit-config.yaml | 5 +++++ setup.cfg | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8ccce9f40..1580ca329 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,3 +12,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/