-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
72 lines (65 loc) · 1.29 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
72
[tox]
minversion=2.3.1
envlist = py35,py36,py37,py38,pytest,flake8,black,bandit,pylint,mypy
skipsdist = True
# Unit tests
[testenv:pytest]
basepython = python3
skip_install = true
deps =
botocore==1.18.3
boto3==1.15.3
moto==1.3.16
pytest==6.0.2
pytest-cov==2.10.1
pytest-pythonpath==0.7.3
commands =
coverage run -m pytest tests/unit --cov package
# Autoformatter
[testenv:black]
basepython = python3
skip_install = true
deps =
black>=20.8b1
commands =
black package/ --check
# Linters
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8==3.8.3
flake8-colors==0.1.6
flake8-docstrings==1.5.0
flake8-import-order==0.18.1
flake8-typing-imports==1.9.0
pep8-naming==0.11.1
pycodestyle==2.6.0
commands =
flake8 package/
[testenv:pylint]
basepython = python3
skip_install = true
deps =
pyflakes==2.2.0
pylint==2.4.4
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.782
commands =
mypy --ignore-missing-imports package/
[flake8]
ignore = D401
max-complexity = 10
max-line-length = 88