-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathtox.ini
70 lines (63 loc) · 1.18 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
[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 --basetemp="{envtmpdir}" {posargs} --disable-pytest-warnings
deps =
pytest
pytest-cov
passenv =
BUILD_CACHE
CI
CODECOV_*
TOXENV
TRAVIS
TRAVIS_*
TWINE_*
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.10.1
usedevelop = true
[testenv:pylint]
commands =
pylint {posargs}
deps =
pylint==3.2.5
usedevelop = true
[testenv:pypi]
commands =
python -m build
twine upload --skip-existing dist/*
deps =
build
twine
skip_install = true
[flake8]
# E203, W503, and W504 are all black compat
ignore =
E203
W503
enable =
W504
per-file-ignores =
*/__init__.py: F401
max-line-length = 88
show-source = true