-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathtox.ini
142 lines (126 loc) · 2.61 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[tox]
envlist = py39,py310,py311,py312,py313,pypy3.10
[testenv]
deps =
pytest-docker~=3.1
allowlist_externals =
find
sed
bash
extras =
test
commands =
{posargs:py.test} tests/unit/ tests/integration/ -o log_cli=true
passenv =
GITHUB_*
MBTEST_*
usedevelop=True
[testenv:coverage]
envlist = py313
extras =
test
coverage
commands =
pytest --cov {envsitepackagesdir}/mbtest --durations=10 --cov-report term-missing --cov-fail-under 100 --basetemp={envtmpdir} {posargs}
usedevelop=False
[testenv:publish-coverage]
envlist = py313
passenv = CODACY_*
extras =
test
coverage
commands =
pytest --cov {envsitepackagesdir}/mbtest --cov-report xml --cov-fail-under 100 --basetemp={envtmpdir} {posargs}
sed -i 's/\/home\/travis\/build\/brunns\/mbtest\/.tox\/publish-coverage\/lib\/python3..\/site-packages/src/g' coverage.xml
bash -c "python-codacy-coverage -r coverage.xml || true"
usedevelop=False
[coverage:run]
branch = True
omit = */matcher.py
[testenv:mypy]
basepython = python3
skip_install = false
extras =
test
install
deps =
mypy~=0.942
types-requests
commands =
mypy src/ {posargs}
[testenv:pyright]
basepython = python3
skip_install = false
extras =
test
install
deps =
pyright==1.1.391
types-requests
commands =
pyright src/ {posargs}
[testenv:pipdeptree]
basepython = python3
deps =
pipdeptree
commands =
pipdeptree
usedevelop=False
[testenv:pydeps]
basepython = python3
deps =
pydeps
commands =
pydeps src/mbtest --cluster --rmprefix mbtest.
usedevelop=False
[testenv:mutmut]
basepython = python3
extras =
test
deps =
mutmut
commands =
mutmut {posargs}
[testenv:mutmut-single]
allowlist_externals =
rm
killall
commands_post =
- rm -r .mbdb
- killall node
[testenv:piprot]
basepython = python3
deps =
piprot
commands =
piprot
usedevelop=False
[testenv:format]
basepython = python3
skip_install = true
deps =
ruff
commands =
ruff format .
ruff check . --fix-only
[testenv:check-format]
basepython = python3
skip_install = true
deps = {[testenv:format]deps}
commands =
ruff format . --check
ruff check .
[tool:isort]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=100
[testenv:docs]
description = Invoke sphinx-build to build the HTML docs
basepython = python3
extras =
install
docs
commands = sphinx-build docs "{toxinidir}/build_docs" --color -W -bhtml {posargs}
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxinidir}") / "build_docs" / "index.html"))'