From ba697466a3f0869bb0e6fac4d61f29ca2136c07b Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman Date: Tue, 15 Dec 2020 18:42:36 -0300 Subject: [PATCH] [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. --- tests/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils.py b/tests/utils.py index bd1bbf53..d681b0d6 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -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)