-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtox.ini
More file actions
67 lines (60 loc) · 1.47 KB
/
tox.ini
File metadata and controls
67 lines (60 loc) · 1.47 KB
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
# for moving this file into pyproject.toml, see https://github.com/tox-dev/tox/issues/999
[tox]
envlist =
py, py39, py310, py311, pypy3
build, format, generate-integration-files, lint, type
[testenv]
package = wheel
wheel_build_env = .pkg # reuse same wheel across envs
deps =
pytest==7.2.1
pytest-cov==4.0.0
passenv = PY_COLORS
setenv =
COVERAGE_FILE = {toxworkdir}/{envname}/.coverage
PYTHONDEVMODE = 1
commands =
pytest {posargs:-vv --cov-fail-under=100}
py: -coverage html
[testenv:build]
basepython = python3.11
skip_install = true
deps =
build==1.3.0
commands =
python -m build
[testenv:format]
basepython = python3.11
skip_install = true
deps =
black==23.1.0
isort==5.12.0
commands =
black {posargs:--check --diff} src tests
isort {posargs:--check --diff} src tests
[testenv:generate-integration-files]
basepython = python3.11
deps =
pytest==7.2.1
pytest-cov==4.0.0
passenv = PY_COLORS
setenv =
PYTEST_ADDOPTS = --no-cov
PYTHONDEVMODE = 1
commands = pytest -vv -m generate_integration_files --generate-integration-files
[testenv:lint]
basepython = python3.11
deps =
pylint==2.16.2
pytest==7.2.1 # to avoid import errors
commands =
pylint src
pylint -d duplicate-code,too-many-statements,use-implicit-booleaness-not-comparison tests
[testenv:type]
basepython = python3.11
deps =
mypy==1.0.1
pytest==7.2.1 # for typing
commands =
mypy
mypy --namespace-packages --explicit-package-bases tests