From 1033913276543167c8c648380caf288cdc6197b3 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 4 Apr 2022 10:28:12 +0200 Subject: 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. --- .flake8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index 4ef393a9f..34a829a4b 100644 --- a/.flake8 +++ b/.flake8 @@ -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 -- cgit v1.2.3-54-g00ecf