-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtox.ini
More file actions
75 lines (62 loc) · 1.75 KB
/
tox.ini
File metadata and controls
75 lines (62 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[tox]
envlist = py{310,311,312,313}-{PySide6,cli}
isolated_build = true
[tool:pytest]
;testpath = tests
addopts = --verbose --faulthandler-timeout=10
[testenv]
dependency_groups = test
download=true
commands = {env_bin_dir}{/}pytest --basetemp={envtmpdir} {env:pytest_args:} {posargs}
[testenv:py{38,39,310,311,312,313}-PySide6]
passenv =
XAUTHORITY
DISPLAY
LocalAppData
set_env =
QT_QPA_PLATFORM=offscreen
download=true
dependency_groups = test-gui
extras = QT
commands = {env_bin_dir}{/}pytest --basetemp={envtmpdir} {env:pytest_args:} {posargs}
; ======================== tests ========================
[testenv:docs]
dependency_groups = docs
commands=
sphinx-build {env:sphinx_args:-W -b html -d "{envtmpdir}/doctrees" docs/source "{temp_dir}/docs/html"}
[testenv:mypy]
dependency_groups = type-checking
skip_install=True
setenv = MYPY_CACHE_DIR = {temp_dir}/.mypy_cache
commands = mypy {posargs: -p speedwagon}
[testenv:flake8]
description = check the code style
dependency_groups = code-style
skip_install=True
commands = flake8 {posargs: speedwagon}
[testenv:pylint]
description = check the code style
deps =
pylint
skip_install=True
commands = pylint {posargs: speedwagon} --disable import-error
[testenv:doctest]
skip_install = true
dependency_groups = docs
commands = python -m sphinx -b doctest docs/source "{envtmpdir}/build/docs" -d "{envtmpdir}/build/docs/doctrees"
[testenv:pydocstyle]
skip_install = true
dependency_groups = code-style
commands =
pydocstyle {posargs: {toxinidir}/speedwagon}
[testenv:bandit]
skip_install = true
deps=
bandit
commands =
bandit {posargs: --recursive {toxinidir}/speedwagon}
[testenv:ruff]
skip_install = true
dependency_groups = lint
commands =
ruff check {posargs: {toxinidir}/speedwagon}