-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
86 lines (78 loc) · 1.43 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[tox]
envlist =
ruff
clean
pylint
flake8
py311
py312
py313
report
skip_missing_interpreters = True
#requires =
# tox-pip-extensions
basepython =
py311: python3.11
py312: python3.12
py313: python3.13
[gh-actions]
python =
3.11: py311
3.12: py312, clean, pylint, flake8, report, ruff
3.13: py313
[testenv]
deps =
pytest
pytest-cov
responses
commands =
pip install -e .
pytest --cov --cov-append --ignore .tox
norecursedirs = .tox
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:report]
passenv = TOXENV,CI,GITHUB_*,CODECOV_*
deps =
coverage
codecov
skip_install = true
commands =
coverage report --omit='.tox/*'
coverage html --omit='.tox/*'
codecov -e TOXENV
[testenv:flake8]
basepython = python3.12
deps = flake8
flake8-isort
flake8-black
flake8-blind-except
flake8-builtins
flake8-docstrings
flake8-bugbear
flake8-mypy
pep8-naming
flake8-assertive
#flake8-mock
#flake8-bandit
commands = flake8
[testenv:pylint]
deps =
pylint
-rrequirements.txt
commands = pylint controlmyspa
[flake8]
exclude = .tox,venv,*.egg*,.git,__pycache__,*.pyc*,build,dist
max-line-length = 88
select = C,E,F,G,W,B,B902,B950
ignore = E501,W503, BLK100
per-file-ignores =
tests/test_controlmyspa.py:B950
[ruff]
deps = ruff
skip_install = true
commands =
ruff check .
ruff format --check .