Skip to content
Snippets Groups Projects
Unverified Commit 5634f94e authored by Thomas Woerner's avatar Thomas Woerner Committed by GitHub
Browse files

Merge pull request #471 from rjeffman/tools_flake8_bugbear

Tools flake8 bugbear
parents eba38e30 97b06ff6
No related branches found
No related tags found
No related merge requests found
......@@ -30,4 +30,4 @@ jobs:
uses: ibiqlik/action-yamllint@v1
- name: Run Python linters
uses: rjeffman/python-lint-action@master
uses: rjeffman/python-lint-action@v2
......@@ -1375,8 +1375,7 @@ def define_commands_for_present_state(module, zone_name, entry, res_find):
# remove record from args, as it will not be used again.
del args[record]
else:
for f in part_fields:
_args = {k: args[k] for k in part_fields}
_args = {k: args[k] for k in part_fields if k in args}
_args['idnsname'] = name
_commands.append([zone_name, 'dnsrecord_add', _args])
# clean used fields from args
......
-r requirements-tests.txt
ipdb
pre-commit
flake8-bugbear
......@@ -169,7 +169,7 @@ def list_test_yaml(dir_path):
`test_` and the extension is `.yml`.
"""
yamls = []
for root, dirs, files in os.walk(dir_path):
for root, _dirs, files in os.walk(dir_path):
for yaml_name in files:
if yaml_name.startswith("test_") and yaml_name.endswith(".yml"):
test_yaml_path = os.path.join(root, yaml_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment