-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
56 lines (49 loc) · 1.08 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
[tox]
envlist =
lint
mypy
cov-clean
py{312,311,310,39,38}
cov-report
skip_missing_interpreters = true
minversion = 3.0.0
[testenv]
usedevelop = true
extras = dev
commands = pytest --cov=src --cov-append --cov-report= {posargs}
depends =
py{38,39,310,311,312}: cov-clean
cov-report: py{38,39,310,311,312}
[testenv:cov-clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:cov-report]
deps = coverage
skip_install = true
commands = coverage report --skip-covered
[testenv:lint]
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files
[testenv:mypy]
deps = mypy
commands = mypy src/
[testenv:twine-check]
skip_install = true
deps = twine
build
allowlist_externals = rm
commands_pre = rm -rf dist/
# check that twine validating package data works
commands = python -m build
twine check dist/*
[testenv:publish-release]
skip_install = true
deps = twine
build
# clean the build dir before rebuilding
allowlist_externals = rm
commands_pre = rm -rf dist/
commands = python -m build
twine upload dist/*