Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tyre
· 11mo ago · 0 comments
allow me to introduce you to the lord and savior,
https://pre-commit.com/
Comments
[–]
adamcharnock
11mo ago
Agreed. Also Lefthook:
https://github.com/evilmartians/lefthook
[–]
robertfw
11mo ago
and if your pre-commit runs fast (thank you, ruff), you can set this up as a post-edit hook in claude code
[–]
jswny
11mo ago
I would not recommend this. A hook that modifies files causes Claude to have to re-read the file before modifying it again, which can build up your context window fast