-
Notifications
You must be signed in to change notification settings - Fork 37
/
tox.ini
61 lines (55 loc) · 1013 Bytes
/
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
[tox]
envlist = py{39,310,311,312},lint
skip_missing_interpreters = true
tox_pip_extensions_ext_venv_update = true
[testenv]
commands = pytest -v --cache-clear --cov={toxinidir} --cov-config={toxinidir}/pyproject.toml --cov-report=term-missing {posargs}
deps =
pytest
pytest-cov
pytest-mock
passenv =
BUILD_CACHE
CI
CI_*
CODECOV_*
TOXENV
TRAVIS
TRAVIS_*
TWINE_*
VCS_*
usedevelop = true
[testenv:codecov]
commands =
codecov
deps =
coverage[toml]
skip_install = true
allowlist_externals =
codecov
[testenv:lint]
commands =
pre-commit run -a {posargs}
deps =
pre-commit
skip_install = true
[testenv:mypy]
commands =
mypy --install-types --non-interactive {posargs}
deps =
mypy==v1.11.2
usedevelop = true
[testenv:pylint]
commands =
pylint -j 0 {posargs}
deps =
pylint==3.2.7
usedevelop = true
[testenv:pypi]
commands =
python -m build
twine upload --skip-existing dist/*
deps =
build
twine
skip_install = true