-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
pre-commit is a framework for managing and maintaining multi-language pre-commit (and others) git hooks
pre-commit supports run javascript code via https://pre-commit.com/#node
pre-commit supports create hooks for the git pre-commit, pre-merge-commit, pre-push, prepare-commit-msg, commit-msg, post-checkout, post-commit, post-merge:
https://pre-commit.com/#pre-commit-install
https://pre-commit.com/#confining-hooks-to-run-at-certain-stages
- Create
.pre-commit-config.yamlon repository root.
The.pre-commit-config.yamlfile should contain:
repos:- Append the pre-commit
eslinthook config to.pre-commit-config.yam. https://github.com/pre-commit/mirrors-eslint - Append the pre-commit
blackhook config to.pre-commit-config.yam.. https://github.com/psf/black#version-control-integration - Append the pre-commit
flake8hook config to.pre-commit-config.yam.. https://flake8.pycqa.org/en/latest/user/using-hooks.html#usage-with-the-pre-commit-git-hooks-framework - Add how to setup on README
Metadata
Metadata
Assignees
Labels
No labels