flake8 config: Ignore more error codes in .py files (#8065)

black fixes these for us in `pre-commit.ci`.
This commit is contained in:
Alex Waygood
2022-06-12 20:04:38 +01:00
committed by GitHub
parent 1aa5663f9e
commit 033516d39f

View File

@@ -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.