summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/tox.ini
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/tools/tox.ini
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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