-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
51 lines (46 loc) · 1.04 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
[tox]
envlist =
py, py37, py38, py39, py310, py311, pypy3
generate-integration-files, type, lint, format
[testenv]
deps =
pytest
pytest-cov
passenv = PY_COLORS
setenv =
COVERAGE_FILE = {toxworkdir}/{envname}/.coverage
PYTHONDEVMODE = 1
commands =
pytest {posargs:-vv --cov-fail-under=100}
py: -coverage html
[testenv:generate-integration-files]
deps =
pytest
pytest-cov
passenv = PY_COLORS
setenv =
PYTEST_ADDOPTS = --no-cov
PYTHONDEVMODE = 1
commands = pytest -vv -m generate_integration_files --generate-integration-files
[testenv:type]
deps =
mypy
pytest # for typing
commands =
mypy
mypy --namespace-packages --explicit-package-bases tests
[testenv:lint]
deps =
pylint
pytest # to avoid import errors
commands =
pylint src
pylint -d duplicate-code,too-many-statements,use-implicit-booleaness-not-comparison tests
[testenv:format]
skip_install = true
deps =
black
isort
commands =
black {posargs:--check --diff} src tests
isort {posargs:--check --diff} src tests