-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtox.ini
41 lines (37 loc) · 1003 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
[tox]
envlist = check, py{37,38,39,310,311}-{asyncio,uvloop}
[testenv]
deps =
pytest == 7.2.0
pytest-asyncio == 0.20.2
pytest-cov == 4.0.0
uvloop: uvloop == 0.17.0
commands =
asyncio: pytest -v --durations=5 --cov=aiosnmp --cov-report=term-missing --event-loop=asyncio {posargs}
uvloop: pytest -v --durations=5 --cov=aiosnmp --cov-report=term-missing --event-loop=uvloop {posargs}
docker =
aiosnmp
[testenv:check]
deps =
flake8 == 5.0.4
isort == 5.10.1
black == 22.10.0
mypy == 0.991
commands =
flake8 aiosnmp/ tests/ examples/ setup.py
isort -q --check --diff aiosnmp/ tests/ examples/ setup.py
black -q --check --diff aiosnmp/ tests/ examples/ setup.py
mypy aiosnmp/
docker =
skip_install = true
[testenv:format]
deps =
isort == 5.10.1
black == 22.10.0
commands =
isort aiosnmp/ tests/ examples/ setup.py
black aiosnmp/ tests/ examples/ setup.py
docker =
skip_install = true
[docker:aiosnmp]
image = koshh/aiosnmp:latest