Add pre-commit hook for formatting, linting, and sorting#172
Add pre-commit hook for formatting, linting, and sorting#172jking-aus merged 5 commits intosigp:unstablefrom
Conversation
|
I think invoking the appropriate commands in the Makefile would be more appropriate, in order to use the flags specified there. i.e. |
I agree. Are they |
|
@dknopik should we get it merged like this? |
|
@diegomrsantos how about the switch to invoking the |
The make targets have an error that causes the script to fail. Additionally, the fmt and lint ones only check and don't apply fixes. |
|
The make targets work fine on my end, and are also what's used in CI. But I will likely not use this anyway 🤷♂️ |
Proposed Changes
Create a pre-commit file in
.githooks. You only need to rungit config core.hooksPath .githooksand the old days of CI failures are over.