Skip to content

Commit 65e4037

Browse files
style: apply ruff auto-fixes (SIM118, F841) (#5)
1 parent 6050ccc commit 65e4037

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

whatdidyougetdone.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def get_aw_activity(
343343

344344
# Get buckets for window activity
345345
buckets = aw.get_buckets()
346-
window_buckets = [bid for bid in buckets.keys() if "window" in bid.lower()]
346+
window_buckets = [bid for bid in buckets if "window" in bid.lower()]
347347

348348
if not window_buckets:
349349
print("Warning: No ActivityWatch window buckets found")
@@ -606,7 +606,7 @@ def generate_report(
606606
"chore": [],
607607
"other": [],
608608
}
609-
for pr_url, pr in seen_prs.items():
609+
for _pr_url, pr in seen_prs.items():
610610
title = pr["title"].lower()
611611
if title.startswith("feat"):
612612
pr_categories["feat"].append(pr)
@@ -616,7 +616,7 @@ def generate_report(
616616
pr_categories["docs"].append(pr)
617617
elif title.startswith("test"):
618618
pr_categories["test"].append(pr)
619-
elif title.startswith("chore") or title.startswith("refactor"):
619+
elif title.startswith(("chore", "refactor")):
620620
pr_categories["chore"].append(pr)
621621
else:
622622
pr_categories["other"].append(pr)

0 commit comments

Comments
 (0)