[flake8-bugbear] Fix unused loop variable.

This commit change the name of a variable to make it more clear that it
is not required in the for-loop, removing a bugbear B007 warning.
This commit is contained in:
Rafael Guterres Jeffman
2020-12-15 18:42:36 -03:00
parent 7415280728
commit ba697466a3

View File

@@ -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)