DEV: Update lefthook to run lints only on pre-push. (PR #9502)

GitHub

The code is fine but we should decide if this is what we actually want :slight_smile:

Closing this for now while we figure out a way to make it configurable in the dev env.