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
pre-commitis a framework for managing and maintaining multi-language pre-commit (and others) git hookspre-commitsupports run javascript code via https://pre-commit.com/#nodepre-commitsupports create hooks for the gitpre-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
.pre-commit-config.yamlon repository root.The
.pre-commit-config.yamlfile should contain:repos:eslinthook config to.pre-commit-config.yam. https://github.com/pre-commit/mirrors-eslintblackhook config to.pre-commit-config.yam.. https://github.com/psf/black#version-control-integrationflake8hook config to.pre-commit-config.yam.. https://flake8.pycqa.org/en/latest/user/using-hooks.html#usage-with-the-pre-commit-git-hooks-framework