-
Notifications
You must be signed in to change notification settings - Fork 34
/
tox.ini
44 lines (40 loc) · 1.03 KB
/
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 =
py3{8, 9, 10}-pylint{215, 30}-pytest{7}
py3{8, 9, 10, 11}-pylint{215, latest, main}-pytest{7, latest, main}
py3{12}-pylint{latest, main}-pytest{7, latest, main}
coverage
qa
skip_missing_interpreters = true
[testenv]
usedevelop = true
deps =
pylint215: pylint~=2.15.10
pylint30: pylint~=3.0
pylintlatest: pylint
pylintmain: git+https://github.com/PyCQA/pylint.git@main#egg=pylint
pylintmain: git+https://github.com/PyCQA/astroid.git@main#egg=astroid
pytest7: pytest~=7.0.0
pytestlatest: pytest
pytestmain: git+https://github.com/pytest-dev/pytest.git@main#egg=pytest
coverage
commands =
coverage run -m pytest {posargs}
[testenv:coverage]
depends = py3{7, 8, 9, 10, 11}-pylint{215, latest, main}-pytest{71, latest, main}
commands =
coverage combine
coverage report
coverage html -d htmlcov
[testenv:qa]
skip_install=true
deps =
black
flake8
isort
commands =
flake8 .
black --check .
isort --check-only --diff .
[pytest]
addopts = --pylint