/
tox.ini
69 lines (60 loc) · 1.31 KB
/
tox.ini
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
[tox]
requires =
tox>=4
env_list = type, lint_check, cli, py{310}
[testenv]
description = run unit tests
deps =
pytest==8.0.0
pytest-mock
commands =
pip install -e .
pytest tests/ {posargs}
[testenv:tests]
description = run unit tests only
[testenv:docs]
changedir = docs
deps =
sphinx
sphinx-rtd-theme
setenv =
PYTHONPATH = {toxinidir}
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:lint_update]
description = run linters
deps =
black==23.3.0
commands =
black --extend-exclude external/ -l 120 {posargs:.}
[testenv:lint_check]
description = run linters
deps =
black==23.3.0
commands =
black --extend-exclude external/ --check -l 120 {posargs:.}
[testenv:type]
description = run type checks
deps =
mypy>=0.991
commands =
mypy {posargs:classroom_utils tests examples}
[testenv:cli]
description = run smoke test for cli
deps =
wheel
commands =
python setup.py sdist bdist_wheel install
classroom_utils --version
[testenv:pyinstaller]
description = build executable with pyinstaller
deps =
pyinstaller
commands =
pyinstaller pyinstaller.spec
[testenv:pyinstaller_archive_viewer]
description = Print content of pyinstaller archive
deps =
pyinstaller
commands =
pyi-archive_viewer dist\classroom_utils.exe