-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtox.ini
60 lines (54 loc) · 1.06 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
[tox]
min_version = 4.0
env_list =
py39
format-check
lint
isolated_build = True
[testenv]
description = run unit tests
deps =
python-dotenv
pytest
pytest-cov
passenv = TOKEN
commands =
pytest --cov=onc
[testenv:format]
description = run black and isort
skip_install = true
deps =
black[jupyter]
isort
commands = black src tests doc
isort src tests
[testenv:format-check]
description = run black and isort check
skip_install = true
deps =
black[jupyter]
isort
commands = black --check --diff src tests doc
isort --check --diff src tests
[testenv:lint]
description = run ruff
skip_install = true
deps =
ruff
commands = ruff check {posargs:src tests}
[testenv:doc-autobuild]
description = run sphinx-autobuild
skip_install = true
deps =
sphinx-autobuild
myst_nb
sphinx-autoapi
sphinx_copybutton
sphinx_rtd_theme
commands = sphinx-autobuild -W doc/source doc/build/html --watch "*.md" --watch src
[gh]
python =
3.9 = py39
3.10 = py310, format-check, lint
3.11 = py311
3.12 = py312