From cfb8ae513add75757e9e19d912bb8b8300f05b94 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Sat, 26 Dec 2020 22:01:46 +0100 Subject: Fix misplaced/mistyped per-file-ignores in flake8 Ref: https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-per-file-ignores --- .flake8 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index 8bc2d270..bd097eec 100644 --- a/.flake8 +++ b/.flake8 @@ -10,5 +10,8 @@ ignore = W504 # Black creates whitespace before colon E203 - setuptools/site-patch.py F821 - setuptools/py*compat.py F811 + +# Allow certain violations in certain files: +per-file-ignores = + setuptools/site-patch.py: F821 + setuptools/py*compat.py: F811 -- cgit v1.2.1