Repository navigation
build(nix): add ast-grep to home packages - #427
Conversation
Refs furedea/agent-config#74 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Review summary: no findings. This PR adds one line, Blocking findings (P0/P1): 0 |
## 概要 agent-config を最新にして,編集のたびに共通の ast-grep 規則(agent-config#117,#121)が動くようにする.`ast-grep` は #427 で PATH に入っている. | 項目 | 前 | 後 | | --- | --- | --- | | agent-config | eae1408(共通の規則なし) | #117 まで | | 編集後の hook | ast-grep を動かさない | 共通の規則で ast-grep を動かし,指摘を返す(止めない) | ## 検証 - [x] `darwin-rebuild switch` で適用済み(ユーザー) - [x] 配られた `hooks/lint/sgconfig.yml` で,`@staticmethod` を含む試しのファイルに `py_no_staticmethod` が出ることを確認 Refs furedea/agent-config#74 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
概要
agent-config の
lint_formatフック (furedea/agent-config#74) は,エージェントの編集後に共有ルールでast-grep scanを実行する.しかし ast-grep がユーザーの日常 PATH になく,フックが何もせずに終わっていた.nixpkgs の
ast-grepをnix/home/default.nixのhome.packagesに追加した.配置は「Code quality」グループで,actionlintとzizmorの間に置き,既存のアルファベット順を保っている.Refs furedea/agent-config#74
検証
nix flake check: all checks passed (aarch64-darwin)nixfmt --check nix/home/default.nix: 差分なしdarwin-rebuild switch/home-manager switchは未実行.適用はユーザーが行う.計画からの変更
なし.
🤖 Generated with Claude Code