-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
78 lines (70 loc) · 1.47 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
73
74
75
76
77
78
; Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
; SPDX-License-Identifier: Apache-2.0
[tox]
env_list =
lint
type
py3{10,11}
minversion = 4.0.13
[testenv:lint]
description = run lint checks
skip_install = true
deps =
isort
black
pytest
moto==4.1.10
commands =
isort --check source
black --check source
pytest source/tests/header.py
pytest source/tests/mock_glacier_data.py
[testenv:type]
description = run type checks
package = wheel
wheel_build_env = .pkg
extras =
dev
deps =
mypy
commands =
mypy --strict source
[testenv:py3{10,11}]
description = run the tests with pytest
package = wheel
wheel_build_env = .pkg
extras =
dev
commands =
pytest source/tests/unit {posargs}
[testenv:build]
description = build package
skip_install = true
deps =
build
commands =
python -m build
[testenv:integration]
description = run integration tests
package = wheel
wheel_build_env = .pkg
pass_env =
*
extras =
dev
commands =
pytest source/tests/integration -k="not cloudwatch_dashboard" {posargs}
[testenv:bandit]
description = run bandit scan
deps =
bandit
commands =
# fails the scan if high severity issues are encountered. Can be expanded to support failure on medium severity issues.
bandit -c pyproject.toml -r source -lll
[testenv:pip-audit]
description = run pip-audit scan
deps =
pip-audit
commands =
# this assumes pyproject.toml is in the current directory
pip-audit . --desc