Repository navigation
refactor(hooks): define the model-rule fixture path once - #172
Conversation
The Stop model-rule file selection and the verification planner each carried their own pattern and matcher for the same concept. Move it to model_rule_fixtures.is_model_rule_fixture and use it from both. A fixtures directory outside model-rules stays a normal path. Refs #74 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Review summary (read-only): no findings.
I couldn't run the tests in this environment. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
「モデル判定の eval 用 fixture のパス」の定義を 1 か所にまとめ,Stop の対象選択と検証計画の両方が同じ関数で判定するようにします.挙動は変えません.
model_rules_files.RULE_FIXTURES(full_match)とcheck_selection.MODEL_RULE_FIXTURES(fnmatch)の 2 つmodel_rule_fixtures.is_model_rule_fixtureの 1 つPurePosixPath.full_matchtests/fixturesなど別の場所model-rules外のfixtures,fixtures直下でない規則ファイルをテストで確認(tests/hooks/test_model_rule_fixtures.py)test_model_rules.py,test_go_check_selection.py,test_check_selection.py,test_related_test_extensions.py)が通る(186 件)ruff check,lefthook の pre-commit(ruff・ty・file-length など)が通る範囲・前提
pyproject.tomlのknown_first_partyに追加した.related_test_extensions.jsonは,テスト名の対応でtest_model_rule_fixtures.pyが選ばれるため変更なし🤖 Generated with Claude Code