forked from dianagudu/ofcli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
56 lines (47 loc) · 1.01 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
[tox]
minversion = 3.10.0
envlist = pylint,py{38,39,310,311,312},black,coverage
skipsdist = True
skip_missing_interpreters = True
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310, pylint, black, coverage
3.11: py311
3.12: py312
[base]
deps = -r requirements.txt
module = src/ofcli
[testenv]
deps =
pip
setuptools
{[base]deps}
-r test-requirements.txt
commands =
pytest
[testenv:py310]
commands =
pytest --cov={[base]module} --cov-report=term-missing:skip-covered
coverage lcov
[testenv:coverage]
deps =
{[testenv]deps}
coverage-badge
commands =
pytest --cov={[base]module} --cov-report=term-missing:skip-covered
coverage-badge -f -o coverage.svg
[testenv:pylint]
deps =
{[base]deps}
pylint
commands = pylint --exit-zero {[base]module}
[testenv:black]
deps = black
commands = black --check --diff {[base]module}
[testenv:pyright]
deps =
{[base]deps}
pyright
commands = pyright {[base]module}