Skip to content

Commit 793be24

Browse files
committed
fix review comments
1 parent be1a666 commit 793be24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.codex/hooks/stop_repo_tidy.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,6 @@ def main() -> None:
188188
*current_paths,
189189
)
190190

191-
updated_paths = lint_fix_paths(repo_root)
192-
updated_fingerprint = fingerprint_for_paths(repo_root, updated_paths)
193-
state.last_tidy_fingerprint = updated_fingerprint
194-
save_state(session_id, repo_root, state)
195-
196191
if format_result.returncode != 0:
197192
write_stop_block(
198193
"`uv run ruff format -- ...` failed for the touched Python files. "
@@ -209,6 +204,11 @@ def main() -> None:
209204
)
210205
return
211206

207+
updated_paths = lint_fix_paths(repo_root)
208+
updated_fingerprint = fingerprint_for_paths(repo_root, updated_paths)
209+
state.last_tidy_fingerprint = updated_fingerprint
210+
save_state(session_id, repo_root, state)
211+
212212
if updated_fingerprint != current_fingerprint:
213213
write_stop_block(
214214
"I ran targeted tidy steps on the touched Python files "

0 commit comments

Comments
 (0)