-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
82 lines (69 loc) · 1.57 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
[tox]
minversion = 3.10.0
envlist =
pylint,
# py{37,38,39,310},
pyright,
black,
# docs,
# coverage,
build,
install
skipsdist = True
skip_missing_interpreters = True
[gh-actions]
python =
# 3.7: py37
# 3.8: py38
# 3.9: py39
3.10: pylint, black, pyright, build, install # , py310, coverage
[testenv]
module = mccli
deps =
-r requirements.txt
py{37,38,39}: pytest, pytest-cov
py310: pytest, pytest-cov, coverage
coverage: pytest, pytest-cov, coverage-badge
pyright: pyright
pylint: pylint
[testenv:py{37,38,39}]
commands =
pytest
[testenv:py310]
commands =
pytest --cov={[testenv]module} --cov-report=term-missing:skip-covered
coverage lcov
[testenv:coverage]
commands =
pytest --cov={[testenv]module} --cov-report=term-missing:skip-covered
coverage-badge -f -o coverage.svg
[testenv:pylint]
commands = pylint --exit-zero {[testenv]module}
[testenv:black]
deps = black
commands = black --check --diff {[testenv]module}
[testenv:pyright]
commands = pyright {[testenv]module}
[testenv:docs]
deps =
-r requirements.txt
-r doc/source/requirements.txt
commands = sphinx-build doc/source doc/build
[testenv:build]
deps =
build
twine
commands =
python -m build --sdist .
twine check dist/*
[testenv:install]
deps =
build
twine
pip
allowlist_externals =
bash
commands =
python -m build --sdist .
bash -c 'pip install dist/mccli-*.tar.gz'
{[testenv]module} --version