forked from mliljedahl/telldus-core-mqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
45 lines (39 loc) · 908 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
[tox]
minversion = 2.0
envlist = py38,flake8,pylint,bandit,lint
skipsdist = True
[testenv:flake8]
skip_install = true
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
commands = flake8 main.py src
[testenv:pylint]
skip_install = true
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
commands = pylint --rcfile=tox.ini main.py src
[testenv:lint]
skip_install = true
deps =
{[testenv:flake8]deps}
{[testenv:pylint]deps}
{[testenv:bandit]deps}
commands =
{[testenv:flake8]commands}
{[testenv:pylint]commands}
{[testenv:bandit]commands}
[testenv:bandit]
skip_install = true
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
commands =
bandit -r main.py src
# Flake8 Configuration
[flake8]
ignore = W503,W504
# Pylint
[MESSAGES CONTROL]
disable = C0209,R,C0116,C0115,C0114,C0103,W0621