-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
70 lines (62 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
[general]
install_requires =
name = glob2regex
[tox]
envlist = lint, py36, py37, py38, py39
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
[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
#flake8 --application-import-names={[general]name},tests
pylint --rcfile=tox.ini setup.py {[general]name}
bandit -r {[general]name} -s B410
mypy .
deps =
{[general]install_requires}
flake8-docstrings==1.6.0
flake8-import-order==0.18.1
flake8==3.9.2
mypy==0.812
pycodestyle==2.7.0
pep8-naming==0.11.1
pylint==2.8.3
bandit==1.7.0
[flake8]
exclude = .tox/*,build/*,docs/*,venv/*,get-pip.py
import-order-style = smarkets
max-line-length = 120
statistics = True
[pylint]
disable =
locally-disabled,
missing-docstring,
protected-access,
too-many-instance-attributes,
bad-whitespace,
invalid-name,
too-few-public-methods,
too-many-public-methods,
too-many-branches,
duplicate-code
ignore = .tox/*,build/*,docs/*,venv/*,get-pip.py
max-args = 7
max-line-length = 130
reports = no
ignore-imports=yes
extension-pkg-whitelist=lxml
[run]
branch = True