-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
57 lines (52 loc) · 1.3 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
[tox]
env_list =
py310
lint
type
integration
minversion = 4.0.3
isolated_build = True
[gh-actions]
python =
3.10: py310, lint, type, integration
; pytest and pytest-lazy-fixture are frozen due to compatibility issues
[testenv]
description = run the tests with pytest
package = wheel
wheel_build_env = .pkg
deps =
pytest==7.3.2
flake8
black
isort
pydocstyle
mypy
coverage
types-PyYAML
pytest-lazy-fixture==0.6.3
passenv = CODECOV_*
commands =
coverage run -m pytest -s -v -m "not gpu and not verifier" {tty:--color=yes} {posargs}
coverage report --rcfile pyproject.toml
coverage xml --rcfile pyproject.toml
[testenv:lint]
description = check the code style
commands =
flake8 --config .flake8 autoverify tests
black --line-length 80 --check --diff --color autoverify tests
isort --line-length 80 --profile black --check --diff autoverify tests
pydocstyle --config=pyproject.toml autoverify
[testenv:type]
description = type check ourselves
passenv =
TERM
MYPY_FORCE_COLOR
MYPY_FORCE_TERMINAL_WIDTH
commands =
python -m mypy --config-file pyproject.toml autoverify
[testenv:integration]
description = test the dockerfile
allowlist_externals = docker
commands =
docker build -t tox_av_app .
docker image rm tox_av_app --force