diff --git a/setup.cfg b/setup.cfg index b5cf191ed..606640d42 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,13 +30,15 @@ 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 ignore = E128,E226,E265,E501,E402,E266, F401, N802, L101,L102,L103,L201,L202,L203,L204,L207,L302, P101,P102,P103, - D102,D103,D104,D105,D209,D211,D402 + D102,D103,D104,D105,D209,D211,D402, + FI10,FI11,FI12,FI13,FI14,FI15 max-complexity = 12 putty-ignore = /# pylint: disable=invalid-name/ : +N801,N806 @@ -50,7 +52,7 @@ putty-ignore = tests/*/*/test_*.py : +D100,D101,D401 tests/*/test_*.py : +D100,D101,D401 tests/unit/browser/http/test_content_disposition.py : +D400 - scripts/dev/ci/install.py : +C901 + scripts/dev/ci/install.py : +C901,FI53 copyright-check = True copyright-regexp = # Copyright [\d-]+ .* copyright-min-file-size = 110 diff --git a/tox.ini b/tox.ini index feac78771..c66fc9af5 100644 --- a/tox.ini +++ b/tox.ini @@ -160,6 +160,7 @@ deps = flake8-docstrings==0.2.5 flake8-tuple==0.2.9 flake8-tidy-imports==1.0.0 + flake8-future-import==0.3.0 pep257==0.7.0 # still needed by flake8-docstrings but ignored pydocstyle==1.0.0 commands =