-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
70 lines (58 loc) · 1.44 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
; SPDX-FileCopyrightText: 2021-2023 Constantine Evans <qslib@mb.costi.net>
;
; SPDX-License-Identifier: EUPL-1.2
[tox]
isolated_build = True
minversion = 3.15
envlist = default
[testenv]
description = invoke pytest to run automated tests
setenv =
TOXINIDIR = {toxinidir}
passenv =
HOME
extras =
testing
commands =
pytest --cov --cov-report=xml {posargs:-vv}
[testenv:black]
description = run black with check-only under {basepython}
commands = black --check --color --diff src/ tests/
deps = black
skip_install = true
extras = testing
[testenv:codecov]
skip_install = true
passenv = TOXENV CI CODECOV_*
deps = codecov>=1.4.0
commands = codecov -e TOXENV
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage html
coverage report --fail-under=85
[testenv:mypy]
deps =
mypy
numpy
extras = testing
skip_install = true
commands =
mypy --pretty --show-error-context --ignore-missing-imports src
[testenv:publish]
description =
Publish the package you have been developing to a package index server.
By default, it uses testpypi. If you really want to publish your package
to be publicly accessible in PyPI, use the `-- --repository pypi` option.
skip_install = True
changedir = {toxinidir}
passenv =
TWINE_USERNAME
TWINE_PASSWORD
TWINE_REPOSITORY
deps = twine
commands =
python -m twine check dist/*
python -m twine upload {posargs:--repository testpypi} dist/*