| [pytest] |
| xfail_strict=true |
| |
| [tox] |
| envlist = {py27,pypy}-{base,chrome,firefox,servo},py27-flake8 |
| |
| [testenv] |
| deps = |
| pytest>=2.9 |
| pytest-cov |
| pytest-xdist |
| -r{toxinidir}/requirements.txt |
| chrome: -r{toxinidir}/requirements_chrome.txt |
| firefox: -r{toxinidir}/requirements_firefox.txt |
| servo: -r{toxinidir}/requirements_servo.txt |
| |
| commands = pytest --cov |
| |
| [testenv:py27-flake8] |
| # flake8 versions should be kept in sync across tools/tox.ini, tools/wpt/tox.ini, and tools/wptrunner/tox.ini |
| deps = |
| flake8==3.5.0 |
| pycodestyle==2.3.1 |
| pyflakes==1.6.0 |
| pep8-naming==0.4.1 |
| |
| commands = |
| flake8 |
| |
| [flake8] |
| # flake8 config should be kept in sync across tools/tox.ini, tools/wpt/tox.ini, and tools/wptrunner/tox.ini |
| select = E,W,F,N |
| # E128: continuation line under-indented for visual indent |
| # E129: visually indented line with same indent as next logical line |
| # E221: multiple spaces before operator |
| # E226: missing whitespace around arithmetic operator |
| # E231: missing whitespace after ‘,’, ‘;’, or ‘:’ |
| # E251: unexpected spaces around keyword / parameter equals |
| # E265: block comment should start with ‘# ‘ |
| # E302: expected 2 blank lines, found 0 |
| # E303: too many blank lines (3) |
| # E305: expected 2 blank lines after end of function or class |
| # E402: module level import not at top of file |
| # E731: do not assign a lambda expression, use a def |
| # E901: SyntaxError or IndentationError |
| # W601: .has_key() is deprecated, use ‘in’ |
| # F401: module imported but unused |
| # F403: ‘from module import *’ used; unable to detect undefined names |
| # F405: name may be undefined, or defined from star imports: module |
| # F841: local variable name is assigned to but never used |
| # N801: class names should use CapWords convention |
| # N802: function name should be lowercase |
| ignore = E128,E129,E221,E226,E231,E251,E265,E302,E303,E305,E402,E731,E901,W601,F401,F403,F405,F841,N801,N802 |
| max-line-length = 141 |