-
Notifications
You must be signed in to change notification settings - Fork 968
Add critical instructions and hooks for Claude Code #8715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: unstable
Are you sure you want to change the base?
Changes from all commits
55e86ba
a19cb0d
0f81ae7
d17d63f
351d0e8
2017fb4
8717b1a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "hooks": { | ||
| "PostToolUse": [ | ||
| { | ||
| "matcher": "Edit|Write", | ||
| "hooks": [ | ||
| { | ||
| "type": "command", | ||
| "command": "echo '\n[Reminder] Run: cargo fmt --all && make lint-fix && cargo check'" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated this format until my local claude CLI accepted the format. |
||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,6 +120,7 @@ bytes = "1.11.1" | |
| # Turn off c-kzg's default features which include `blst/portable`. We can turn on blst's portable | ||
| # feature ourselves when desired. | ||
| c-kzg = { version = "2.1", default-features = false } | ||
| cargo-husky = { version = "1", default-features = false, features = ["precommit-hook", "run-cargo-fmt"] } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm I'm not sure if it's worth introducing a dependency for this. It's also unmaintained, but I see benefits over native git hooks - without devs having to manually set it up. Now i feel like it might be better to just include it in the AI file you originally suggested. With
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can add a make command to add it your local dir, and then we expect team members to add it |
||
| cargo_metadata = "0.19" | ||
| clap = { version = "4.5.4", features = ["derive", "cargo", "wrap_help"] } | ||
| clap_utils = { path = "common/clap_utils" } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need cargo check if we already run clippy