Alternatives to pre-commit
A command-line framework for managing and running multi-language Git pre-commit hooks across projects. The listings below can replace it for an important use case. Each note says what changes if you switch.
The original
pre-commit
A command-line framework for managing and running multi-language Git pre-commit hooks across projects.
Replacements
Listings that take over the same core job as pre-commit.
prek
Run code checks using existing pre-commit hooks and configurations.
prek runs the same pre-commit hooks and configurations, so existing setups carry over, though individual hooks may still need their own tools and dependencies installed.
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.
Hadolint
Dockerfile linter that also checks the shell commands inside it.