forked from aws-solutions/amazon-s3-glacier-refreezer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
64 lines (57 loc) · 1.03 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
; Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
; SPDX-License-Identifier: Apache-2.0
[tox]
env_list =
lint
type
py3{9,10,11}
minversion = 4.0.13
[gh-actions]
python =
3.9: py39, lint, type
3.10: py310
3.11: py311
[testenv:lint]
description = run lint checks
skip_install = true
deps =
black
pytest
commands =
black --check source
pytest source/tests/header.py
[testenv:type]
description = run type checks
package = wheel
wheel_build_env = .pkg
extras =
dev
deps =
mypy
commands =
mypy --strict source
[testenv:py3{9,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 =
*
deps =
pytest
commands =
pytest source/tests/integration {posargs}