Merge "Update to ansible-lint 4.1.0"
This commit is contained in:
commit
9867d6c6bb
@ -4,7 +4,7 @@
|
|||||||
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
||||||
bashate>=0.2 # Apache-2.0
|
bashate>=0.2 # Apache-2.0
|
||||||
PyYAML>=3.10.0 # MIT
|
PyYAML>=3.10.0 # MIT
|
||||||
ansible-lint<4.0.0
|
ansible-lint>=4.1.0
|
||||||
openstacksdk
|
openstacksdk
|
||||||
zuul-sphinx>=0.2.3
|
zuul-sphinx>=0.2.3
|
||||||
testtools
|
testtools
|
||||||
|
18
tox.ini
18
tox.ini
@ -22,10 +22,26 @@ commands =
|
|||||||
#
|
#
|
||||||
# ANSIBLE0010: Package installs should not use latest
|
# ANSIBLE0010: Package installs should not use latest
|
||||||
# We often deploy latest pip packages
|
# We often deploy latest pip packages
|
||||||
|
#
|
||||||
|
# 204: Lines < 160
|
||||||
|
# Things like keys, script lines, etc exceed this. We have good
|
||||||
|
# taste and only use long lines where appropriate.
|
||||||
|
#
|
||||||
|
# 206: {{var}} should have spaces {{ var }}
|
||||||
|
# This rule seems sane, but it appears there's no way to convince
|
||||||
|
# ansible-lint perfectly good things that are *not* ansible (like
|
||||||
|
# exim configs) in YAML shouldn't have to follow this rule. See
|
||||||
|
# https://github.com/ansible/ansible-lint/issues/534; might be able
|
||||||
|
# to turn on if fixed.
|
||||||
|
#
|
||||||
|
# 306: shells with pipes should use pipefail
|
||||||
|
# This requires running the shell as /bin/bash. There is a small
|
||||||
|
# possibility to hide errors, but we can rely on
|
||||||
|
# developers to decide when to explicitly check for failures.
|
||||||
bash -c "find roles playbooks -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \
|
bash -c "find roles playbooks -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \
|
||||||
ansible-lint -x ANSIBLE0004 -x ANSIBLE0006 -x ANSIBLE0007 -x ANSIBLE0010 \
|
ansible-lint -x ANSIBLE0004 -x ANSIBLE0006 -x ANSIBLE0007 -x ANSIBLE0010 \
|
||||||
-x ANSIBLE0011 -x ANSIBLE0012 -x ANSIBLE0013 -x ANSIBLE0015 \
|
-x ANSIBLE0011 -x ANSIBLE0012 -x ANSIBLE0013 -x ANSIBLE0015 \
|
||||||
-x 304"
|
-x 204 -x 206 -x 304 -x 306"
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user