-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
108 lines (96 loc) · 1.73 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[tox]
envlist = py3,help,version,ruff,type,cov
isolated_build = true
[tox:.package]
basepython = python3
[testenv]
setenv =
package = bio_qcmetrics_tool
PYTHONHASHSEED = 0
passenv = PIP_EXTRA_INDEX_URL
skip_install =
false
install_command = python -m pip install {opts} {packages}
extras = test
commands = pytest -vv {posargs}
[testenv:dev]
basepython = python3.11
extras =
dev
test
[testenv:requirements]
deps = pip-tools
skip_install =
true
commands =
pip-compile -o requirements.txt pyproject.toml
[testenv:help]
skip_install =
false
deps =
commands =
python -m {env:package} --help
[testenv:cov]
deps =
extras = test
commands =
coverage run -m pytest tests/
coverage combine
coverage report -m
coverage xml
coverage xml -o test-reports/results.xml
[testenv:ruff]
ignore_outcome=true
skip_install=true
deps =
ruff
commands =
ruff {env:package}/ tests/
[testenv:type]
ignore_outcome = true
skip_install = false
deps=
mypy
commands =
python -m mypy {env:package}/
[testenv:build]
skip_install= true
isolated_build = false
install_command = python -m pip install {opts} {packages}
deps=
flit
setuptools_scm
commands =
python -m setuptools_scm
python -m flit build
[testenv:publish]
isolated_build=False
skip_install=true
passenv =
TWINE_USERNAME
TWINE_PASSWORD
TWINE_REPOSITORY_URL
install_command = python -m pip install {opts} {packages}
deps=
setuptools_scm
flit
twine
commands =
python -m setuptools_scm
python -m flit build
twine check dist/*
twine upload dist/*
[testenv:version]
skip_install=True
allowlist_externals =
git
deps =
commands =
git describe --tags --always
[testenv:cruft]
skip_install=True
deps = cruft
allowlist_externals =
git
commands =
cruft check