-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
executable file
·116 lines (101 loc) · 2.74 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[tox]
envlist = py37,coverage,coveralls
skip_missing_interpreters = True
ignore_basepython_conflict = True
[testenv]
description = default settings for unspecified tests
usedevelop = False
skip_install = False
passenv = *
basepython = python3.7
[testenv:py37]
deps =
-r{toxinidir}/requirements/development.txt
-r{toxinidir}/requirements/tests.txt
commands =
pytest tests/ --cov=app --basetemp={envtmpdir}
[testenv:py38]
deps =
-r{toxinidir}/requirements/development.txt
-r{toxinidir}/requirements/tests.txt
commands =
pytest tests/ --cov=app --basetemp={envtmpdir}
[testenv:coverage]
description = create report for coverage
deps =
-r{toxinidir}/requirements/development.txt
-r{toxinidir}/requirements/tests.txt
commands =
pytest tests/ --cov=app --cov-report=term-missing --cov-report=xml --cov-report=html
[testenv:coveralls]
description = create reports for coveralls
deps =
-r{toxinidir}/requirements/development.txt
-r{toxinidir}/requirements/tests.txt
commands =
pytest tests/ --doctest-modules -v --cov=app
[testenv:pylint]
description = pylint for linting
deps =
-r{toxinidir}/requirements/development.txt
-r{toxinidir}/requirements/lint.txt
commands =
pylint app/
pylint tests/
[testenv:black]
description = black for auto-formatting
deps =
-r{toxinidir}/requirements/development.txt
-r{toxinidir}/requirements/lint.txt
commands =
black app/
black tests/
[testenv:pydocstyle]
description = pydocstyle for auto-formatting
-r{toxinidir}/requirements/development.txt
-r{toxinidir}/requirements/lint.txt
commands =
pydocstyle app/
pydocstyle tests/
[testenv:radonmc]
description = Radon McCabe number
deps =
-r{toxinidir}/requirements/development.txt
-r{toxinidir}/requirements/lint.txt
commands =
radon cc app/ -a
[testenv:radonmi]
description = Radon Maintainability Index
deps =
-r{toxinidir}/requirements/development.txt
-r{toxinidir}/requirements/lint.txt
commands =
radon mi app/
radon mi tests/
[testenv:radonraw]
description = Radon raw metrics
deps =
-r{toxinidir}/requirements/development.txt
-r{toxinidir}/requirements/lint.txt
commands =
radon raw app/
radon raw tests/
[testenv:radonhal]
description = Radon Halstead metrics
deps =
-r{toxinidir}/requirements/development.txt
-r{toxinidir}/requirements/lint.txt
commands =
radon hal app/
radon hal tests/
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
deps =
-r{toxinidir}/requirements/development.txt
-r{toxinidir}/requirements/docs.txt
commands =
sphinx-build -d app/docs/build/docs_doctree app/docs/source docs/build/html --color -b html {posargs}
[testenv:pre-commit]
deps = pre-commit
commands =
pre-commit run --all-files