@@ -3,13 +3,13 @@ envlist = py{39,310,311,312,313}-{PySide6,cli}
33isolated_build = true
44
55[tool:pytest]
6- ; testpath = tests
76addopts = --verbose --faulthandler-timeout =10
87
98[testenv]
109deps =
1110 pytest
1211 pytest-mock
12+ -c requirements-dev.txt
1313
1414download =true
1515commands = {env_bin_dir}{/}pytest --basetemp ={envtmpdir} {env:pytest_args:} {posargs}
@@ -23,15 +23,20 @@ set_env =
2323 QT_QPA_PLATFORM =offscreen
2424download =true
2525deps =
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
2832commands = {env_bin_dir}{/}pytest --basetemp ={envtmpdir} {env:pytest_args:} {posargs}
29-
33+ extras = QT
3034; ======================== tests ========================
3135[testenv:docs]
3236deps =
3337 sphinx
3438 sphinx-argparse
39+ -c requirements-dev.txt
3540commands =
3641 sphinx-build {env:sphinx_args:-W -b html -d " {envtmpdir}/doctrees" docs/source " {distdir}/html" }
3742
4146 lxml
4247 types-PyYAML
4348 types-requests
44-
49+ -c requirements-dev.txt
4550skip_install =True
4651setenv = MYPY_CACHE_DIR = {temp_dir}/.mypy_cache
4752commands = mypy {posargs: -p speedwagon}
@@ -50,44 +55,48 @@ commands = mypy {posargs: -p speedwagon}
5055description = check the code style
5156deps =
5257 flake8
58+ -c requirements-dev.txt
5359skip_install =True
5460commands = flake8 {posargs: speedwagon}
5561
56-
5762[testenv:pylint]
5863description = check the code style
5964deps =
6065 pylint
66+ -c requirements-dev.txt
6167skip_install =True
6268commands = pylint {posargs: speedwagon} --disable import-error
6369
64-
6570[testenv:doctest]
66- skip_install = true
6771deps =
6872 sphinx
6973 sphinx-argparse
70- PyYAML
71- pluggy
72- -r requirements-vendor.txt
74+ -c requirements-dev.txt
7375commands = python -m sphinx -b doctest docs/source " {envtmpdir}/build/docs" -d " {envtmpdir}/build/docs/doctrees"
76+
7477[testenv:pydocstyle]
7578skip_install = true
7679deps =
7780 pydocstyle
7881 toml
82+ -c requirements-dev.txt
7983commands =
8084 pydocstyle {posargs: {toxinidir}/speedwagon}
85+
8186[testenv:bandit]
8287skip_install = true
8388deps =
8489 bandit
90+ -c requirements-dev.txt
91+
8592commands =
8693 bandit {posargs: --recursive {toxinidir}/speedwagon}
8794
8895[testenv:ruff]
8996skip_install = true
9097deps =
9198 ruff
99+ -c requirements-dev.txt
100+
92101commands =
93102 ruff check {posargs: {toxinidir}/speedwagon}
0 commit comments