-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathtox.ini
47 lines (40 loc) · 819 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
46
47
[tox]
skipsdist=True
envlist = lint
[vars]
all_path = {toxinidir}/get-addon-templates {toxinidir}/cdk-addons/
[testenv]
basepython = python3
setenv =
PYTHONPATH={toxinidir}
[testenv:lint]
deps =
codespell
ruff
isort
black
commands =
codespell {[vars]all_path}
ruff check {[vars]all_path}
isort --check-only --diff {[vars]all_path}
black --check --diff {[vars]all_path}
[testenv:format]
deps =
ruff
isort
black
commands =
isort {[vars]all_path}
black {[vars]all_path}
ruff check --fix {[vars]all_path}
[testenv:fetch]
passenv = *
deps = pyyaml
commands = python ./get-addon-templates
[testenv:unit]
commands= python3 -c 'print("!! cdk-addons has no tests")'
[isort]
line_length=99
multi_line_output=3
include_trailing_comma=True
use_parentheses=True