Skip to content

Commit 2ff14aa

Browse files
committed
ci: constrain dependency versions used by tox where appropriate
1 parent a45aa52 commit 2ff14aa

1 file changed

Lines changed: 20 additions & 11 deletions

File tree

tox.ini

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ envlist = py{39,310,311,312,313}-{PySide6,cli}
33
isolated_build = true
44

55
[tool:pytest]
6-
;testpath = tests
76
addopts = --verbose --faulthandler-timeout=10
87

98
[testenv]
109
deps =
1110
pytest
1211
pytest-mock
12+
-c requirements-dev.txt
1313

1414
download=true
1515
commands = {env_bin_dir}{/}pytest --basetemp={envtmpdir} {env:pytest_args:} {posargs}
@@ -23,15 +23,20 @@ set_env =
2323
QT_QPA_PLATFORM=offscreen
2424
download=true
2525
deps =
26-
-r requirements-dev.txt
27-
-r requirements-gui.txt
26+
pytest
27+
pytest-mock
28+
PySide6
29+
pytest-qt
30+
-c requirements-dev.txt
31+
-c requirements-gui.txt
2832
commands = {env_bin_dir}{/}pytest --basetemp={envtmpdir} {env:pytest_args:} {posargs}
29-
33+
extras = QT
3034
; ======================== tests ========================
3135
[testenv:docs]
3236
deps=
3337
sphinx
3438
sphinx-argparse
39+
-c requirements-dev.txt
3540
commands=
3641
sphinx-build {env:sphinx_args:-W -b html -d "{envtmpdir}/doctrees" docs/source "{distdir}/html"}
3742

@@ -41,7 +46,7 @@ deps =
4146
lxml
4247
types-PyYAML
4348
types-requests
44-
49+
-c requirements-dev.txt
4550
skip_install=True
4651
setenv = MYPY_CACHE_DIR = {temp_dir}/.mypy_cache
4752
commands = mypy {posargs: -p speedwagon}
@@ -50,44 +55,48 @@ commands = mypy {posargs: -p speedwagon}
5055
description = check the code style
5156
deps =
5257
flake8
58+
-c requirements-dev.txt
5359
skip_install=True
5460
commands = flake8 {posargs: speedwagon}
5561

56-
5762
[testenv:pylint]
5863
description = check the code style
5964
deps =
6065
pylint
66+
-c requirements-dev.txt
6167
skip_install=True
6268
commands = pylint {posargs: speedwagon} --disable import-error
6369

64-
6570
[testenv:doctest]
66-
skip_install = true
6771
deps=
6872
sphinx
6973
sphinx-argparse
70-
PyYAML
71-
pluggy
72-
-r requirements-vendor.txt
74+
-c requirements-dev.txt
7375
commands = python -m sphinx -b doctest docs/source "{envtmpdir}/build/docs" -d "{envtmpdir}/build/docs/doctrees"
76+
7477
[testenv:pydocstyle]
7578
skip_install = true
7679
deps=
7780
pydocstyle
7881
toml
82+
-c requirements-dev.txt
7983
commands =
8084
pydocstyle {posargs: {toxinidir}/speedwagon}
85+
8186
[testenv:bandit]
8287
skip_install = true
8388
deps=
8489
bandit
90+
-c requirements-dev.txt
91+
8592
commands =
8693
bandit {posargs: --recursive {toxinidir}/speedwagon}
8794

8895
[testenv:ruff]
8996
skip_install = true
9097
deps=
9198
ruff
99+
-c requirements-dev.txt
100+
92101
commands =
93102
ruff check {posargs: {toxinidir}/speedwagon}

0 commit comments

Comments
 (0)