-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
67 lines (58 loc) · 1.17 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
[tox]
envlist = py37, py38, py39, py310, py311, lint
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310, lint
3.11: py311
[testenv]
setenv =
# for integration test passthru
COVERAGE_RCFILE={toxinidir}/tox.ini
deps =
pytest
pytest-cov
pytest-randomly
tox >= 4
# pytest-xdist
commands =
pytest {posargs:--cov tox_ignore_env_name_mismatch}
[testenv:publish]
passenv = TWINE_*
deps =
build ~= 0.9.0
twine ~= 4.0.1
commands =
{envpython} -m build --outdir {distdir} .
twine {posargs:check} {distdir}/*.whl {distdir}/*.tar.gz
[testenv:lint]
deps =
black ~= 22.10.0
flake8 ~= 5.0.4
mypy > 0.990, < 0.999
# tox3 is not py.typed
tox >= 4.0.0
commands =
black --check setup.py src/ tests/
flake8 setup.py src/ tests/
mypy --strict src/
[flake8]
exclude = docs
max-line-length = 100
extend-ignore =
W503,E402
[pytest]
testpaths = tests
addopts = -rsxX -l --tb=short --strict-markers
[coverage:run]
branch = True
parallel = True
[coverage:report]
show_missing = True
[coverage:paths]
# this maps paths in the `.tox` directory to the top level when combining
source =
src/
.tox/*/lib/python*/site-packages/