cachix / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments
https://devenv.sh
Apache License 2.0
4.16k stars 313 forks source link

PreCommit Configured as a Script #1346

Open rawkode opened 2 months ago

rawkode commented 2 months ago

I have a monorepository and pre-commit hooks just don't work at this level.

However, I do wish to make it trivial to check changes before pushing.

I'd like to be able to configure pre-commit to install a script in the project, such as check so that developers can run all the checks with a single command.

domenkozar commented 2 months ago

We could have a setting that prevents installing into git hooks, but you can still run pre-commit run -a.

rawkode commented 2 months ago

That would be good