-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (42 loc) · 935 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
39
40
41
42
43
44
45
46
47
48
[tox]
isolated_build = True
envlist = py39, py310, lint, black, isort
skip_missing_interpreters = True
[flake8]
ignore = E226,E302,E41, W503
max-line-length = 110
exclude = tests/*
max-complexity = 10
[gh-actions]
python =
3.9: py39
3.10: py310, lint, isort, black
[testenv]
deps =
-r{toxinidir}/requirements_test.txt
commands =
pytest --force-sugar --timeout=30 --cov-report term {posargs}
setenv =
PYTHONPATH = {toxinidir}
[testenv:lint]
#basepython = {env:PYTHON3_PATH:python3}
deps =
-r{toxinidir}/requirements_test.txt
commands =
pflake8 .
mypy .
pylint pymeteobridgedata tests
[testenv:isort]
#basepython = {env:PYTHON3_PATH:python3}
deps =
isort
commands =
isort --version-number
isort --check-only --quiet pymeteobridge tests
[testenv:black]
#basepython = {env:PYTHON3_PATH:python3}
deps =
black
commands =
black --version
black --check pymeteobridgedata tests