- Use zuul_return fake module to make ansible lint happy, this allows to remove Zuul import. - While ansible-lint 4.2.0 is now able to detect playbooks/roles, this is broken, so don't use it - move its config out of tox.ini so it can be used by any tools, or without tox Change-Id: Ie8935f47db855647e19ae091044e5ac1871f1551 Co-Authored-By: Sorin Sbarnea <ssbarnea@redhat.com> Co-Authored-By: Andreas Jaeger <aj@suse.com>changes/75/702575/7
parent
13ade443d5
commit
0326363e48
@ -0,0 +1,12 @@
|
||||
exclude_paths:
|
||||
- zuul.d/
|
||||
- grafana/
|
||||
- nodepool/
|
||||
- ../../opendev
|
||||
parseable: true
|
||||
quiet: false
|
||||
skip_list:
|
||||
- '204' # [E204] Lines should be no longer than 120 chars
|
||||
- '301' # [E301] Commands should not change things if nothing needs doing
|
||||
- '306' # [E306] Shells that use pipes should set the pipefail option
|
||||
verbosity: 1
|
@ -0,0 +1,12 @@
|
||||
# This is a fake zuul_return to make ansible-lint happy
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
|
||||
def main():
|
||||
return AnsibleModule(
|
||||
argument_spec=dict(
|
||||
data=dict(default=None),
|
||||
path=dict(default=None, type=str),
|
||||
file=dict(default=None, type=str),
|
||||
)
|
||||
)
|
Loading…
Reference in new issue