-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathtox.ini
39 lines (34 loc) · 940 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
[tox]
envlist = py39, py310, py311, lint
skip_missing_interpreters = True
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/nexia
allowlist_externals = /usr/bin/env
install_command = /usr/bin/env LANG=C.UTF-8 pip install {opts} {packages}
commands =
py.test --basetemp={envtmpdir} --cov --cov-report term-missing
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_tests.txt
[testenv:codecov]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/nexia
allowlist_externals = /usr/bin/env
install_command = /usr/bin/env LANG=C.UTF-8 pip install {opts} {packages}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_tests.txt
commands =
pytest --cov --cov-report=xml {posargs}
[testenv:lint]
ignore_errors = True
commands =
flake8 nexia
pylint nexia
mypy nexia
[flake8]
max-line-length = 120
[pytest]
asyncio_default_fixture_loop_scope = session
asyncio_mode = auto