summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/tools/tox.ini')
-rw-r--r--testing/web-platform/tests/tools/tox.ini24
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/web-platform/tests/tools/tox.ini b/testing/web-platform/tests/tools/tox.ini
new file mode 100644
index 0000000000..b4c250bee4
--- /dev/null
+++ b/testing/web-platform/tests/tools/tox.ini
@@ -0,0 +1,24 @@
+[tox]
+envlist = py36,py37,py38,py39,py310,{py36,py37,py38,py39,py310}-{flake8,mypy}
+skipsdist=True
+skip_missing_interpreters=False
+
+[testenv]
+deps =
+ !flake8-!mypy: -r{toxinidir}/requirements_pytest.txt
+ !flake8-!mypy: -r{toxinidir}/requirements_tests.txt
+ flake8: -r{toxinidir}/requirements_flake8.txt
+ mypy: -r{toxinidir}/requirements_mypy.txt
+
+changedir =
+ mypy: {toxinidir}/..
+
+commands =
+ !flake8-!mypy: pytest --cov=tools --cov-report=term {posargs}
+ flake8: flake8 --append-config={toxinidir}/flake8.ini {posargs}
+ mypy: mypy --config-file={toxinidir}/mypy.ini tools/
+
+passenv =
+ HYPOTHESIS_PROFILE
+ PY_COLORS
+ TASKCLUSTER_ROOT_URL