Alternatives to prek
Run code checks using existing pre-commit hooks and configurations. The listings below can replace it for an important use case. Each note says what changes if you switch.
The original
prek
Run code checks using existing pre-commit hooks and configurations.
Replacements
Listings that take over the same core job as prek.
pre-commit
A command-line framework for managing and running multi-language Git pre-commit hooks across projects.
pre-commit is the original framework prek is compatible with, requires Python to run, and installs hook environments for many languages automatically, with a slower first run.
Similar software
Related functionality, not a direct replacement.
Ruff
Lint and format Python code with one fast command-line tool.
ShellCheck
Catch common shell-script mistakes before running them.
detect-secrets
A command-line tool from Yelp that detects and prevents secrets such as keys being committed to code.
ESLint
A pluggable linter that finds and automatically fixes problems in JavaScript and JSX code.
Prettier
An opinionated code formatter for JavaScript, TypeScript, CSS, HTML, Markdown and other languages.
yamlfmt
Format YAML files consistently from the command line.