-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
44 lines (35 loc) · 757 Bytes
/
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
[tox]
envlist = py{311}-{flake8,pytest,mypy}
[testenv]
setenv =
PYTHONPATH={toxinidir}
[testenv:py{311}-flake8]
deps =
flake8
commands =
flake8 {toxinidir}/lsp {toxinidir}/tests {toxinidir}/examples
[testenv:py{311}-mypy]
deps =
mypy
pytest
pytest-asyncio
hypothesis
more-itertools
commands =
mypy --install-types --non-interactive {toxinidir}/lsp {toxinidir}/tests {toxinidir}/examples
[testenv:py{311}-pytest]
deps =
pytest
pytest-asyncio
more-itertools
hypothesis
coverage
commands =
coverage run -m pytest {toxinidir}/tests
coverage report
[testenv:wheel]
deps = build[virtualenv]
commands =
python -m build --wheel -o {toxworkdir}/dist
[flake8]
max-line-length = 120