-
-
Notifications
You must be signed in to change notification settings - Fork 92
/
tox.ini
71 lines (64 loc) · 1.42 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
[general]
install_requires =
requests
xmltodict
pycryptodomex
name = huawei_lte_api
[tox]
envlist = lint, py38, py39, py310, py311, py312
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311, lint
3.12: py312
[testenv]
commands =
py.test --cov-report term-missing --cov-report xml --cov {[general]name} --cov-config tox.ini {posargs:tests}
deps =
{[general]install_requires}
pytest-cov==2.12.1
usedevelop = True
[testenv:lint]
commands =
python setup.py check --strict
python setup.py check --strict -m
python setup.py check --strict -s
pylint --rcfile=tox.ini setup.py {[general]name}
bandit -r {[general]name}
mypy .
deps =
{[general]install_requires}
flake8-docstrings==1.6.0
flake8-import-order==0.18.1
flake8==3.9.2
mypy==1.10.0
types-requests
types-dataclasses
pycodestyle==2.7.0
pep8-naming==0.11.1
pylint==3.2.3
bandit==1.7.4
[flake8]
exclude = .tox/*,build/*,docs/*,venv/*,get-pip.py
import-order-style = smarkets
max-line-length = 170
statistics = True
[pylint]
disable =
locally-disabled,
missing-docstring,
protected-access,
too-many-instance-attributes,
invalid-name,
too-few-public-methods,
too-many-public-methods,
ignore = .tox/*,build/*,docs/*,venv/*,get-pip.py
max-args = 10
max-line-length = 170
reports = no
ignore-signatures = yes
py-version = 3.4
[run]
branch = True