-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtox.ini
38 lines (35 loc) · 972 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
[tox]
envlist = check, py{37,38,39}-{asyncio,uvloop}
[testenv]
deps =
pytest == 6.2.4
pytest-asyncio == 0.15.1
pytest-cov == 2.12.0
uvloop: uvloop == 0.15.2
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 =
koshh/aiosnmp:latest
[testenv:check]
deps =
flake8 == 3.9.2
isort == 5.8.0
black == 21.5b1
mypy == 0.812
commands =
flake8 aiosnmp/ tests/ examples/ setup.py
isort -q --check --diff aiosnmp/ tests/ examples/ setup.py
black -l 120 -q --check --diff aiosnmp/ tests/ examples/ setup.py
mypy aiosnmp/
docker =
skip_install = true
[testenv:format]
deps =
isort == 5.8.0
black == 21.5b1
commands =
isort aiosnmp/ tests/ examples/ setup.py
black -l 120 aiosnmp/ tests/ examples/ setup.py
docker =
skip_install = true