Silence F405 errors
The F405 errors that were present in our repository are a common pattern for ansible modules. As such, They have been marked for noqa. Change-Id: Ie161bf38b00f5e798a470b16700925f9ef7b322d Story: #2001985
This commit is contained in:
parent
24c04d93dd
commit
5839bbad39
@ -47,7 +47,7 @@ def get_devices_wwn(devices, module):
|
||||
|
||||
|
||||
def main():
|
||||
module = AnsibleModule(
|
||||
module = AnsibleModule( # noqa This is normal for Ansible modules.
|
||||
argument_spec=dict(
|
||||
devices=dict(required=True, type='list'),
|
||||
),
|
||||
|
@ -61,7 +61,7 @@ def root_hint(hints, devices):
|
||||
|
||||
|
||||
def main():
|
||||
module = AnsibleModule(
|
||||
module = AnsibleModule( # noqa This is normal for Ansible modules.
|
||||
argument_spec=dict(
|
||||
root_device_hints=dict(required=True, type='dict'),
|
||||
ansible_devices=dict(required=True, type='dict'),
|
||||
|
@ -60,7 +60,7 @@ def stream_to_dest(url, dest, chunksize, hash_algo, verify=True, certs=None):
|
||||
|
||||
|
||||
def main():
|
||||
module = AnsibleModule(
|
||||
module = AnsibleModule( # noqa This is normal for Ansible modules.
|
||||
argument_spec=dict(
|
||||
url=dict(required=True, type='str'),
|
||||
dest=dict(required=True, type='str'),
|
||||
|
4
tox.ini
4
tox.ini
@ -106,9 +106,9 @@ commands = {posargs}
|
||||
|
||||
[flake8]
|
||||
# [W503] Line break before binary operator.
|
||||
# NOTE(TheJulia): Adding W606,E501,F405 to the ignore list
|
||||
# NOTE(TheJulia): Adding W606,E501 to the ignore list
|
||||
# until we are able to clean them up in the code base.
|
||||
ignore = E129,W503,W606,E501,F405
|
||||
ignore = E129,W503,W606,E501
|
||||
filename = *.py,app.wsgi
|
||||
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||
import-order-style = pep8
|
||||
|
Loading…
Reference in New Issue
Block a user