pre-commit.com
I use pre-commit.com.
It is a simple way to run checks automatically before creating a commit.
That means:
- feedback comes early
- trivial issues get caught before CI
- the local workflow gets closer to the CI workflow
Example from this repo: .pre-commit-config.yaml