-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtox.ini
executable file
·55 lines (48 loc) · 1.26 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
45
46
47
48
49
50
51
52
53
54
55
[tox]
envlist = py311, py312, pylint, lint, typing, black, isort
skip_missing_interpreters = True
[gh-actions]
python =
3.11: py311, pylint, lint, typing, black, isort
3.12: py312, pylint, lint, typing, black, isort
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/zoneminder
commands =
pytest {posargs} tests
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
[testenv:pylint]
basepython = {env:PYTHON3_PATH:python3}
# ignore_errors = True
deps =
-r{toxinidir}/requirements_test.txt
commands =
pylint {posargs} zoneminder
[testenv:lint]
basepython = {env:PYTHON3_PATH:python3}
deps =
-r{toxinidir}/requirements_test.txt
commands =
flake8 zoneminder tests
pydocstyle zoneminder tests
[testenv:typing]
basepython = {env:PYTHON3_PATH:python3}
allowlist_externals=/bin/bash
deps =
-r{toxinidir}/requirements_test.txt
commands =
/bin/bash -c 'mypy zoneminder/*.py'
[testenv:black]
basepython = {env:PYTHON3_PATH:python3}
deps =
-r{toxinidir}/requirements_test.txt
commands =
black --check --diff zoneminder
[testenv:isort]
basepython = {env:PYTHON3_PATH:python3}
deps =
-r{toxinidir}/requirements_test.txt
commands =
isort --check-only --diff zoneminder tests