Update flake8 config for Python 3.6

The 'generator_stop' future import is default in Python 3.7:
https://docs.python.org/3/library/__future__.html

While we do want 'annotations' eventually, it doesn't bring us any gain
right now, see #7098.
This commit is contained in:
Florian Bruhin 2022-04-04 10:28:12 +02:00
parent 0b0be06e54
commit 1033913276
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ exclude = .*,__pycache__,resources.py
# A003: Builtin name for class attribute (needed for overridden methods)
# W503: like break before binary operator
# W504: line break after binary operator
# FI15: __future__ import "generator_stop" missing
# FI18: __future__ import "annotations" missing
# PT004: fixture '{name}' does not return anything, add leading underscore
# PT011: pytest.raises(ValueError) is too broad, set the match parameter or use a more specific exception
# PT012: pytest.raises() block should contain a single simple statement
@ -53,7 +53,7 @@ ignore =
D102,D103,D106,D107,D104,D105,D209,D211,D401,D402,D403,D412,D413,
A003,
W503, W504,
FI15,
FI18,
PT004,
PT011,
PT012