-
Notifications
You must be signed in to change notification settings - Fork 49
/
tox.ini
43 lines (38 loc) · 1.05 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
[tox]
skipsdist=True
envlist=pycodestyle,pylint,yamllint,policy
[test-deps]
deps =
-cconstraints.txt
-raws/requirements.txt
[testenv:pylint]
description = Check with Pylint
deps =
# PyYAML is only used by clean.py, we don't want to add it in
# aws/requirements.txt or it will end up in the Lambda package.
PyYAML
{[test-deps]deps}
pylint
commands = pylint --rcfile {toxinidir}/pylint.rc {toxinidir}/aws
[testenv:pycodestyle]
description = Check with pycodestyle
deps =
{[test-deps]deps}
pycodestyle
commands = pycodestyle --config {toxinidir}/pycodestyle.ini {toxinidir}/aws
[testenv:yamllint]
description = Check with YAMLlint
deps =
{[test-deps]deps}
yamllint
commands = yamllint --config-file {toxinidir}/.yamllint {toxinidir}
[testenv:policy]
description = Run the test-policies playbook
deps =
{[test-deps]deps}
ansible-core
commands =
ansible-galaxy collection install -r {toxinidir}/requirements.yml
ansible-playbook -i localhost {toxinidir}/hacking/aws_config/test-policies.yml
setenv =
ANSIBLE_COLLECTIONS_PATHS={toxworkdir}/ansible