forked from FutureTense/keymaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
36 lines (32 loc) · 751 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
[tox]
skipsdist = true
envlist = py310, py311, py312, lint, mypy
skip_missing_interpreters = True
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312, lint, mypy
[testenv]
commands =
pytest --asyncio-mode=auto --timeout=30 --cov=custom_components/keymaster --cov-report=xml {posargs}
deps =
-rrequirements_test.txt
[testenv:lint]
basepython = python3
ignore_errors = True
commands =
black --check custom_components/
black --check tests/
flake8 custom_components/keymaster
pylint custom_components/keymaster
pydocstyle custom_components/keymaster tests
deps =
-rrequirements_test.txt
[testenv:mypy]
basepython = python3
ignore_errors = True
commands =
mypy custom_components/keymaster
deps =
-rrequirements_test.txt