forked from diodonfrost/terraform-aws-lambda-nuke
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
69 lines (62 loc) · 1.31 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
[tox]
minversion=2.3.1
envlist = py35,py36,py37,py38,pytest,black,flake8,pylint,bandit,mypy
skipsdist = True
[testenv:pytest]
basepython = python3
skip_install = true
deps =
pytest==6.1.1
pytest-cov==2.10.1
pytest-pythonpath==0.7.3
botocore==1.18.16
boto3==1.15.16
moto==1.3.14
commands =
coverage run -m pytest tests/unit --disable-pytest-warnings --cov package
[testenv:black]
basepython = python3
skip_install = true
deps =
black==20.8b1
commands =
black package/ --line-length 79 --check
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8==3.8.4
flake8-colors==0.1.6
flake8-docstrings==1.5.0
pydocstyle==5.1.1
flake8-import-order==0.18.1
flake8-typing-imports==1.10.0
pep8-naming==0.11.1
commands =
flake8 package/
[testenv:pylint]
basepython = python3
skip_install = true
deps =
pyflakes==2.2.0
pylint==2.6.0
commands =
pylint package/ --rcfile=tests/sanity/.pylintrc
[testenv:bandit]
basepython = python3
skip_install = true
deps =
bandit==1.6.2
commands =
bandit -r package/ -c tests/sanity/.bandit.yml
[testenv:mypy]
basepython = python3
skip_install = true
deps =
mypy==0.790
commands =
mypy --ignore-missing-imports package/
[flake8]
ignore = D401, W503
max-complexity = 10
exclude = package/nuke/timeparse.py