Enable flake8-bugbear linting rules (#267)

See https://docs.astral.sh/ruff/rules/#flake8-bugbear-b.
This commit is contained in:
Marc Wrobel
2023-12-30 10:03:55 +01:00
parent 26f8db809c
commit 0e8fe135e4
13 changed files with 19 additions and 21 deletions

View File

@@ -23,8 +23,8 @@ def get_latest_minor_versions(versions):
# For each group, find the version with the highest patch version
latest_versions = []
for major_minor, group in version_groups.items():
latest_patch = max(group, key=lambda version: int(version[2]))
for version_group in version_groups.values():
latest_patch = max(version_group, key=lambda v: int(v[2]))
latest_versions.append('.'.join(latest_patch))
return latest_versions