From bc693893419578442e1cdea56ae5b969ed83e165 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sun, 12 Jun 2022 19:29:45 +0100 Subject: [PATCH] flake8: Ignore more error codes in `.py` files black fixes these for us in `pre-commit.ci`. --- .flake8 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.flake8 b/.flake8 index f463a8c055fb..697e671ac148 100644 --- a/.flake8 +++ b/.flake8 @@ -1,8 +1,8 @@ # The following rules are incompatible with or enforced by black: # E203 whitespace before ':' -- scripts only -# E301 expected 1 blank line -- stubs only -# E302 expected 2 blank lines -- stubs only -# E305 expected 2 blank lines -- stubs only +# E301 expected 1 blank line +# E302 expected 2 blank lines +# E305 expected 2 blank lines # E501 line too long # Some rules are considered irrelevant to stub files: @@ -27,7 +27,7 @@ [flake8] per-file-ignores = - *.py: E203, E501 + *.py: E203, E301, E302, E305, E501 *.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y037 # Since typing.pyi defines "overload" this is not recognized by flake8 as typing.overload. # Unfortunately, flake8 does not allow to "noqa" just a specific error inside the file itself.