-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
38 lines (33 loc) · 921 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 = py311, py312, typing, pylint, lint
skip_missing_interpreters = True
[flake8]
max-line-length = 88
#[testenv]
#setenv =
# PYTHONPATH = {toxinidir}
#commands =
# pytest --cov python_freeathome_local --cov-report= {posargs}
#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}
allowlist_externals = pre-commit
[testenv:pylint]
basepython = python3
commands =
make pylint
allowlist_externals =
pre-commit
make
[testenv:typing]
basepython = python3
commands =
pre-commit run mypy {posargs: --all-files}
allowlist_externals = pre-commit