forked from aeye-lab/pymovements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
101 lines (87 loc) · 1.87 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[tox]
isolated_build = True
skip_missing_interpreters = True
envlist =
py39
py310
py311
py312
build
docs
coverage
integration
pylint
[testenv]
deps =
.[test]
setenv =
COVERAGE_FILE = .coverage.{envname}
commands =
pytest \
--ignore=tests/integration \
--tb=long \
--cov --cov-append \
--cov-report term-missing \
--cov-report html:htmlcov \
--cov-report xml \
{posargs:.}
[testenv:build]
usedevelop = False
skip_install = True
deps =
build
commands =
{envpython} -c \
"import shutil; \
shutil.rmtree('{toxinidir}{/}dist{/}', ignore_errors=True)"
{envpython} -m build \
--outdir '{toxinidir}{/}dist{/}' \
{posargs:--sdist --wheel} \
'{toxinidir}'
[testenv:coverage]
deps =
coverage[toml]
skip_install = True
setenv =
COVERAGE_FILE = .coverage
commands =
coverage combine --keep
coverage html
coverage report -m
[testenv:docs]
deps =
.[docs]
commands =
sphinx-build \
--color \
-W \
--keep-going \
-d "{toxinidir}/docs/doctree" \
-b html \
"{toxinidir}/docs/source" \
"{toxinidir}/docs/build" \
{posargs}
[testenv:integration]
deps =
.[test]
commands =
pytest \
--ignore=src \
--ignore=tests/functional \
--ignore=tests/unit \
-v \
--tb=long \
{posargs:.}
[testenv:pylint]
deps =
pylint
pytest
changedir = {toxinidir}
commands =
pylint --rcfile=pylintrc --output-format=parseable --ignore-paths={toxinidir}/src/pymovements/_version.py \
{toxinidir}/src/pymovements
pylint --rcfile=pylintrc --output-format=parseable \
--disable=missing-class-docstring,missing-function-docstring,protected-access {toxinidir}/tests
[flake8]
exclude=.venv,.git,.tox,build,dist,docs,*egg,*.ini
max-line-length = 100