As documented, tox should respect the "ignore" field in a
tox.ini config file. tox 1.8.1 does not seem to do that.
Here is a minimal reproduction of the bug: https://github.com/Ayrx/tox-bug-repro. I would expect that tox passes without flagging the unused import here. However, I get the following results.
$ tox -e pep8 pep8 runtests: PYTHONHASHSEED='2632284098' pep8 runtests: commands | flake8 . ./test.py:1:1: F401 'sys' imported but unused ERROR: InvocationError: '/home/ayrx/code/tox-bug-repro/.tox/pep8/bin/flake8 .' ___________________________________ summary ____________________________________ ERROR: pep8: commands failed $ flake8 . ./test.py:1:1: F401 'sys' imported but unused
Here are the packages installed in my virtualenv.
$ pip list flake8 (2.3.0) mccabe (0.3) pep8 (1.6.2) pip (6.0.8) py (1.4.26) pyflakes (0.8.1) setuptools (12.2) tox (1.8.1) virtualenv (12.0.7)
Let me know if more information is needed.