Enable SIM in flake8 and ruff
This commit is contained in:
parent
5dce8e6645
commit
007998372f
1 changed files with 33 additions and 36 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue