forked from redhat-cop/cloud.aws_ops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
45 lines (37 loc) · 906 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
[tox]
minversion = 1.4.2
skipsdist = True
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install {opts} {packages}
[testenv:black]
deps =
black >= 22.0, < 23.0
commands =
black {toxinidir}/plugins {toxinidir}/tests
[testenv:ansible-lint]
deps =
ansible-lint==6.16.0
changedir = {toxinidir}
commands =
ansible-lint
[testenv:linters]
deps =
yamllint
flake8
{[testenv:black]deps}
commands =
black -v --check --diff {toxinidir}/plugins {toxinidir}/tests
yamllint -s {toxinidir}
flake8 {toxinidir}
[testenv:py39-sanity]
deps = ansible
commands = ansible-test sanity --debug --requirements --local --skip-test future-import-boilerplate --skip-test metaclass-boilerplate --python 3.9
setenv =
HOME = /tmp
[flake8]
exclude = .git,.tox,tests/output
ignore = E501, W503, W504, E402
max-line-length = 160
builtins = _