427 B

prek

Create Git hooks that run before commits. More information: https://prek.j178.dev/reference/cli/.

  • Install prek into your Git hooks:

prek install

  • Run prek hooks on all staged files:

prek run

  • Run prek hooks on all files, staged or unstaged:

prek run {{[-a|--all-files]}}

  • Clean prek cache:

prek cache clean

  • Update prek configuration file to the latest repos' versions:

prek auto-update