add flake8-bugbear linter

This commit is contained in:
Willi Ballenthin
2023-07-06 19:30:51 +02:00
parent a43d2c115f
commit 982dc46623
15 changed files with 58 additions and 40 deletions

View File

@@ -888,7 +888,7 @@ def collect_samples(path) -> Dict[str, Path]:
recurse through the given path, collecting all file paths, indexed by their content sha256, md5, and filename.
"""
samples = {}
for root, dirs, files in os.walk(path):
for root, _, files in os.walk(path):
for name in files:
if name.endswith(".viv"):
continue