Skip to content

Commit a501093

Browse files
Format Python
1 parent 7ecf373 commit a501093

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

dotfiles/.claude/hooks/session-title.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,7 @@ def is_user_rename(current: object) -> bool:
376376
and must be left alone.
377377
"""
378378
return (
379-
isinstance(current, str)
380-
and bool(current)
381-
and not TIMESTAMP_RE.match(current)
379+
isinstance(current, str) and bool(current) and not TIMESTAMP_RE.match(current)
382380
)
383381

384382

dotfiles/.claude/hooks/wrapup-session-nudge.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ def recently_nudged(session_id: str) -> bool:
156156
"""Whether this session already got a nudge inside the dedupe window."""
157157
now = time.time()
158158
try:
159-
previous_id, previous_stamp = LAST_NUDGE_PATH.read_text(encoding="UTF-8").split()
159+
previous_id, previous_stamp = LAST_NUDGE_PATH.read_text(
160+
encoding="UTF-8"
161+
).split()
160162
if previous_id == session_id and now - float(previous_stamp) < DEDUPE_SECONDS:
161163
return True
162164
except (OSError, ValueError):

0 commit comments

Comments
 (0)