-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
81 lines (73 loc) · 2.02 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
76
77
78
79
80
81
[tox]
envlist =
coverage
linting
spellchecking
testing
typechecking
isolated_build = True
skip_missing_interpreters = True
skipsdist = True
[testenv]
commands = python -m pip install --upgrade pip
[testenv:coverage]
deps =
{[testenv:testing]deps}
-r dev_requirements/requirements-coverage.txt
setenv = PYTHONPATH = {toxinidir}
commands =
coverage run -m pytest --basetemp={envtmpdir} unittests {posargs}
coverage html --omit .tox/*,tests/*
coverage report --fail-under 80 --omit .tox/*,tests/*
[testenv:linting]
deps =
{[testenv:testing]deps}
-r dev_requirements/requirements-linting.txt
setenv = PYTHONPATH = {toxinidir}
commands =
pylint chonk
pylint unittests --rcfile=unittests/.pylintrc
[testenv:spellchecking]
setenv = PYTHONPATH = {toxinidir}
deps =
-r requirements.txt
-r dev_requirements/requirements-spellchecking.txt
commands =
codespell chonk/
codespell unittests/
codespell README.md
[testenv:testing]
deps =
-r requirements.txt
-r dev_requirements/requirements-testing.txt
setenv = PYTHONPATH = {toxinidir}
commands = python -m pytest -x --basetemp={envtmpdir} unittests {posargs}
[testenv:typechecking]
setenv = PYTHONPATH = {toxinidir}
deps =
{[testenv:testing]deps}
-r dev_requirements/requirements-typechecking.txt
commands =
mypy --show-error-codes chonk --strict
mypy --show-error-codes unittests --strict
[testenv:dev]
deps =
{[testenv:coverage]deps}
{[testenv:linting]deps}
{[testenv:packaging]deps}
{[testenv:spellchecking]deps}
{[testenv:testing]deps}
{[testenv:typechecking]deps}
-r dev_requirements/requirements-formatting.txt
pip-tools
commands =
python -m pip install --upgrade pip
pip-compile requirements.in --no-strip-extras
pip install -r requirements.txt
[testenv:packaging]
skip_install = true
deps =
-r dev_requirements/requirements-packaging.txt
commands =
pdm build
twine check dist/*