зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1504375 [wpt PR 13865] - Consolidate the flake8 setup into tools/tox.ini and config files, a=testonly
Automatic update from web-platform-testsConsolidate the flake8 setup into tools/tox.ini and config files (#13865) flake8 is still run as part of the "tools/ unittests (Python 2)" job in Travis, because `run_applicable_tox` in tools/ci/ci_tools_unittest.sh will turn `TOXENV=py27` into `TOXENV=py27,py27-flake8`. Splitting flake8 into a separate job entirely is left for later. -- wpt-commits: a54a387e5d474670fbe0431eb8a898df603ec0eb wpt-pr: 13865
This commit is contained in:
Родитель
79446ad356
Коммит
141dbc8466
|
@ -82,7 +82,7 @@ matrix:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- libnss3-tools
|
- libnss3-tools
|
||||||
env: JOB=wpt_integration TOXENV=py27,py27-flake8 SCRIPT=tools/ci/ci_wpt.sh
|
env: JOB=wpt_integration TOXENV=py27 SCRIPT=tools/ci/ci_wpt.sh
|
||||||
- name: "resources/ tests"
|
- name: "resources/ tests"
|
||||||
if: type = pull_request
|
if: type = pull_request
|
||||||
os: linux
|
os: linux
|
||||||
|
|
|
@ -18,4 +18,10 @@ select = E,W,F,N
|
||||||
# N801: class names should use CapWords convention
|
# N801: class names should use CapWords convention
|
||||||
# N802: function name should be lowercase
|
# N802: function name should be lowercase
|
||||||
ignore = E128,E129,E221,E226,E231,E251,E265,E302,E303,E305,E402,E731,E901,W601,N801,N802
|
ignore = E128,E129,E221,E226,E231,E251,E265,E302,E303,E305,E402,E731,E901,W601,N801,N802
|
||||||
|
exclude =
|
||||||
|
.tox,
|
||||||
|
pywebsocket,
|
||||||
|
third_party,
|
||||||
|
wptserve/docs/conf.py,
|
||||||
|
wptserve/tests/functional/docroot/invalid.py
|
||||||
max-line-length = 141
|
max-line-length = 141
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
flake8==3.5.0
|
||||||
|
pycodestyle==2.3.1
|
||||||
|
pyflakes==1.6.0
|
||||||
|
pep8-naming==0.4.1
|
|
@ -1,26 +1,20 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py27,py36,pypy
|
envlist = py27,py36,pypy,py27-flake8
|
||||||
skipsdist=True
|
skipsdist=True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
# flake8 versions should be kept in sync across tools/tox.ini, tools/wpt/tox.ini, and tools/wptrunner/tox.ini
|
|
||||||
deps =
|
deps =
|
||||||
flake8==3.5.0
|
|
||||||
pycodestyle==2.3.1
|
|
||||||
pyflakes==1.6.0
|
|
||||||
pep8-naming==0.4.1
|
|
||||||
pytest
|
pytest
|
||||||
pytest-cov
|
pytest-cov
|
||||||
mock
|
mock
|
||||||
hypothesis
|
hypothesis
|
||||||
pytest-catchlog
|
pytest-catchlog
|
||||||
|
|
||||||
commands =
|
commands = pytest --cov {posargs}
|
||||||
pytest --cov {posargs}
|
|
||||||
flake8 --append-config=flake8.ini
|
|
||||||
|
|
||||||
passenv =
|
passenv =
|
||||||
HYPOTHESIS_PROFILE
|
HYPOTHESIS_PROFILE
|
||||||
|
|
||||||
[flake8]
|
[testenv:py27-flake8]
|
||||||
exclude = .tox,html5lib,third_party,pywebsocket,six,_venv,webencodings,wptserve/docs,wptserve/tests/functional/docroot/,wpt,wptrunner
|
deps = -r{toxinidir}/requirements_flake8.txt
|
||||||
|
commands = flake8 --append-config={toxinidir}/flake8.ini {posargs}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py27,py27-flake8
|
envlist = py27
|
||||||
skipsdist=True
|
skipsdist=True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
@ -14,14 +14,3 @@ deps =
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
pytest --cov {posargs}
|
pytest --cov {posargs}
|
||||||
|
|
||||||
[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 --append-config=../flake8.ini {posargs}
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
xfail_strict=true
|
xfail_strict=true
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist = {py27}-{base,chrome,edge,firefox,ie,opera,safari,sauce,servo},py27-flake8
|
envlist = py27-{base,chrome,edge,firefox,ie,opera,safari,sauce,servo}
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
|
@ -23,14 +23,3 @@ deps =
|
||||||
commands = pytest {posargs:--cov}
|
commands = pytest {posargs:--cov}
|
||||||
|
|
||||||
setenv = CURRENT_TOX_ENV = {envname}
|
setenv = CURRENT_TOX_ENV = {envname}
|
||||||
|
|
||||||
[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 --append-config=../flake8.ini
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче