Skip to content

chore: add Codex Stop hook for targeted Ruff tidy#2795

Merged
seratch merged 2 commits into
mainfrom
chore/codex-stop-hook-ruff-tidy
Mar 27, 2026
Merged

chore: add Codex Stop hook for targeted Ruff tidy#2795
seratch merged 2 commits into
mainfrom
chore/codex-stop-hook-ruff-tidy

Conversation

@seratch

@seratch seratch commented Mar 27, 2026

Copy link
Copy Markdown
Member

This pull request adds repo-local Codex hook support to run targeted Ruff cleanup for touched Python files whenever the Stop hook fires. It enables Codex hooks in .codex/config.toml, registers the Stop hook in .codex/hooks.json, and adds .codex/hooks/stop_repo_tidy.py to fingerprint touched Python paths, persist per-session tidy state, and block wrap-up when ruff format or ruff check --fix changes files or fails.

@github-actions github-actions Bot added the enhancement New feature or request label Mar 27, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: be1a66605a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .codex/hooks/stop_repo_tidy.py Outdated
@seratch seratch merged commit 9ed6dad into main Mar 27, 2026
9 checks passed
@seratch seratch deleted the chore/codex-stop-hook-ruff-tidy branch March 27, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant