1[tox]
2envlist = py{36,37,38,39}, py{37,38,39}-uvloop, lint, cover
3skipsdist = true
4
5[testenv]
6passenv = TOXENV
7commands =
8    py{36,37,38,39}: pip install -e '.[dev,sqlite,redis]'
9    py{37,38,39}-uvloop: pip install -e '.[dev,sqlite,redis,uvloop]'
10    pytest .
11
12[testenv:lint]
13basepython = python3.9
14commands =
15    pip install -e '.[dev,sqlite,redis]'
16    pylint --reports=n --rcfile=.pylintrc postfix_mta_sts_resolver
17
18[testenv:cover]
19passenv = TOXENV
20basepython = python3.9
21commands =
22    pip install -e ".[dev,sqlite,redis]"
23    pytest --cov . --cov-append --cov-report= .
24    coverage report --fail-under=97 --include="postfix_mta_sts_resolver/*" --show-missing
25