3 ms·
Rather than bake that into the prompt - wouldn’t it be better to just set up a pre commit hook that runs tests and linting?
by iamflimflam1 3mo ago
Rather than bake that into the prompt - wouldn’t it be better to just set up a pre commit hook that runs tests and linting?
- mh- 3mo agoMaybe, depends on their workflow. In my human workflow, I tend to use commits as checkpoints and then squash before pushing. I'd usually only run time-consuming tests before squash+push. But yes, anything you want to ensure really needs to be a hook. edit: realizing with "precommit" you probably meant a git hook not one in their harness. I'd have written the same response more or less though. :)
- iamflimflam1 3mo agoOh yes - definitely the git kind of hook. Also, I always forget that there’s a pre-push hook as well. So you don’t need to do things every commit. But then you could just be storing up a lot of problems…
- mh- 3mo agoIndeed. That's why I think it depends on the individual's workflow where it should live.