From afb88a956018e8853265637c543f0219eb8ce258 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 30 May 2016 12:54:54 +0200 Subject: [PATCH] requirements: Update flake8-future-import to 0.4.0 - Add two older future imports - Issue an error when a future import does not exist - Define which is the oldest Python version to be supported so that already mandatory features can be ignored and not yet supported features default to forbidden (ignoring the lower error code). - Use return code of 1 if errors occurred --- .flake8 | 4 ++-- misc/requirements/requirements-flake8.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.flake8 b/.flake8 index e9e464aed..c32e70008 100644 --- a/.flake8 +++ b/.flake8 @@ -30,7 +30,7 @@ exclude = .venv,.hypothesis,.git,__pycache__,resources.py # D211: No blank lines allowed before class docstring # (PEP257 got changed, but let's stick to the old standard) # D402: First line should not be function's signature (false-positives) -# FI10 - FI15: __future__ import missing +# FI10 - FI17: __future__ import missing # H101: Use TODO(NAME) # H201: bare except # H238: Use new-stule classes @@ -43,7 +43,7 @@ ignore = L101,L102,L103,L201,L202,L203,L204,L207,L302, P101,P102,P103, D102,D103,D104,D105,D209,D211,D402, - FI10,FI11,FI12,FI13,FI14,FI15, + FI10,FI11,FI12,FI13,FI14,FI15,FI16,FI17, H101,H201,H238,H301,H306 max-complexity = 12 putty-auto-ignore = True diff --git a/misc/requirements/requirements-flake8.txt b/misc/requirements/requirements-flake8.txt index bfcc594aa..6f2edee7e 100644 --- a/misc/requirements/requirements-flake8.txt +++ b/misc/requirements/requirements-flake8.txt @@ -4,7 +4,7 @@ flake8-copyright==0.1 flake8-debugger==1.4.0 flake8-deprecated==1.0 flake8-docstrings==0.2.6 -flake8-future-import==0.3.2 +flake8-future-import==0.4.0 flake8-mock==0.2 flake8-pep3101==0.3 flake8-putty==0.3.2