-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
56 lines (49 loc) · 1.05 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
[tox]
envlist=lint,py37,py39,py310
[testenv]
deps =
-r ./requirements/develop.txt
commands =
pytest --cov=octoprint_psucontrol_meross --cov-report=term-missing --no-cov-on-fail {posargs}
[testenv:lint]
skip_install = false
deps =
black
flake8
flake8-import-order
# pep8-naming
flake8-comprehensions
flake8-bugbear
flake8-print
commands =
black --check src/ test/
flake8 {posargs} src/ test/
[testenv:black]
skip_install = false
deps =
black
commands = black setup.py setup.py src/ test/ {posargs}
[testenv:dev]
basepython = python3.7
usedevelop = True
deps =
-r ./requirements/develop.txt
build
bump2version
OctoPrint[develop,plugins,docs]
[pytest]
asyncio_mode=strict
[flake8]
max-line-length=120
import-order-style=edited
application-import-names=octoprint_psucontrol_meross
ignore=
N807, F401 **/__init__.py
W503 ; line break before binary operator (black)
T test/meross_cli.py ; Allow print() in the CLI app
## GitHub CI
[gh-actions]
python =
3.7: py37,lint
3.9: py39
3.10: py310