Git Tips Slides
PageUp x2: previous · PageDown x2: next · Home: index

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