-
Notifications
You must be signed in to change notification settings - Fork 906
/
tox.ini
70 lines (63 loc) · 1.3 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
70
# Tox (https://tox.wiki/) - run tests in isolation using virtualenv.
# Also contains config settings for tools that don't look into pyproject.toml.
[tox]
envlist =
ruff
py2{7}
pypy2{7}
py3{5,6,7,8,9,10,11}
pypy3{8,9}
package
clean
[gh-actions]
python =
2.7: py27
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
pypy-2.7: pypy27
pypy-3.8: pypy38
pypy-3.9: pypy39
[testenv]
description = Unit tests and test coverage
deps =
py27: mock
pypy27: mock
coverage[toml]
pytest
commands =
coverage run -m pytest {posargs}
coverage xml
coverage report
extras = scipy
[testenv:clean]
description = Clean up bytecode and build artifacts
skip_install = true
deps = pyclean
commands = pyclean {posargs:. --debris --erase junit-report.xml --yes}
[testenv:ruff]
description = Lightening-fast linting for Python
skip_install = true
deps = ruff
commands = ruff {posargs:.}
[testenv:package]
description = Build package and check metadata (or upload package)
skip_install = true
deps =
build
twine
commands =
python -m build
twine {posargs:check --strict} dist/*
passenv =
TWINE_USERNAME
TWINE_PASSWORD
TWINE_REPOSITORY_URL
[pytest]
addopts =
--color=yes
--junitxml=junit-report.xml