-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtox.ini
75 lines (68 loc) · 1.24 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
71
72
73
74
75
[tox]
envlist = py{39,310,311,312},lint
minversion = 3.2
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 =
freezegun
pytest
pytest-cov
pytest-mock
pytest-recording
requests-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.13.0
usedevelop = true
[testenv:pylint]
commands =
pylint {posargs}
deps =
pylint==3.3.2
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
max-line-length = 88
show-source = true