forked from moralmunky/Home-Assistant-Mail-And-Packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
38 lines (34 loc) · 899 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]
skipsdist = true
envlist = py39, py310, lint, mypy
skip_missing_interpreters = True
ignore_basepython_conflict = True
[gh-actions]
python =
3.9: py39, lint, mypy
3.10: py310
[testenv]
pip_version = pip>=21.0,<22.1
install_command = python -m pip install {opts} {packages}
commands =
pytest --timeout=30 --cov=custom_components/mail_and_packages/ --cov-report=xml {posargs}
deps =
-rrequirements_test.txt
[testenv:lint]
basepython = python3
ignore_errors = True
commands =
black --check custom_components/mail_and_packages/
flake8 custom_components/mail_and_packages/
pylint custom_components/mail_and_packages/
pydocstyle custom_components/mail_and_packages/ tests/
deps =
-rrequirements_format.txt
-rrequirements_test.txt
[testenv:mypy]
basepython = python3
ignore_errors = True
commands =
mypy custom_components/mail_and_packages/
deps =
-rrequirements_format.txt