-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
61 lines (53 loc) · 1.28 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
[tox]
envlist = lint, py{39,310,311,312,313}, changelog, docs, coverage-report, pypi-description, build
isolated_build = True
[testenv]
extras = tests
commands =
python -m pytest -v -s tests
[testenv:py{39, 310, 311, 312, 313}]
install_command = pip install --no-compile {opts} {packages}
setenv =
PYTHONWARNINGS=d
extras = tests
commands =
coverage run -p --source mlnext -m pytest
[testenv:coverage-report]
skip_install = true
deps = coverage
commands =
coverage combine
coverage report -i
coverage xml -i
[testenv:lint]
skip_install = true
deps = pre-commit
passenv = HOMEPATH # needed on Windows
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
extras = docs
setenv =
HOME = {env:HOME:.tmp}
commands =
sphinx-build -b html -d {envtmpdir}/doctrees docs/source docs/_build/html
; sphinx-build -b rinoh -d {envtmpdir}/doctrees docs/source docs/_build/rinoh
[testenv:changelog]
deps = towncrier
extra = docs
commands = towncrier --draft
[testenv:pypi-description]
skip_install = true
deps =
twine
pip >= 18.0.0
commands =
pip wheel -w {envtmpdir}/build --no-deps .
twine check {envtmpdir}/build/*
[testenv:build]
skip_install = true
deps =
pip
build
commands =
python -m build --wheel --sdist --installer=pip