Enable SIM in flake8 and ruff

This commit is contained in:
Alexander Hess 2026-11-30 20:57:31 +01:00
commit 007998372f
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -100,10 +100,7 @@ def make_comment(
is_latest = pinned_version == latest_version
if is_latest:
comment = "up-to-date"
else:
comment = f"< {latest_version:<8}"
comment = "up-to-date" if is_latest else f"< {latest_version:<8}"
if years_since_release > PKG_CONSIDERED_OLD:
comment += f" {years_since_release} years ago"