forked from XKNX/xknx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
31 lines (27 loc) · 780 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
[tox]
envlist = py37, py38, py39, typing, pylint, lint
skip_missing_interpreters = True
[testenv]
setenv =
PYTHONPATH = {toxinidir}
commands =
pytest --cov --cov-report= {posargs}
whitelist_externals = make
deps = -rrequirements/testing.txt
[testenv:lint]
basepython = python3
commands =
pre-commit run flake8 {posargs: --all-files}
pre-commit run pyupgrade {posargs: --all-files}
pre-commit run black {posargs: --all-files}
pre-commit run isort {posargs: --all-files}
pre-commit run check-json {posargs: --all-files}
pre-commit run trailing-whitespace {posargs: --all-files}
[testenv:pylint]
basepython = python3
commands =
make pylint
[testenv:typing]
basepython = python3
commands =
pre-commit run mypy {posargs: --all-files}