Comment by JoshTriplett
Comment by JoshTriplett 10 hours ago
I think there's value in git hooks, but pre-commit is the wrong hook. This belongs in a hook that runs on attempted push, not on commit.
Comment by JoshTriplett 10 hours ago
I think there's value in git hooks, but pre-commit is the wrong hook. This belongs in a hook that runs on attempted push, not on commit.
formatting should definitely be in pre-commit though, otherwise you'll destroy diffs.
There's a config option for that :) https://prek.j178.dev/configuration/#default_install_hook_ty...