django-react-boilerplate icon indicating copy to clipboard operation
django-react-boilerplate copied to clipboard

Migrate from `husky` to `pre-commit`

Open luzfcb opened this issue 4 years ago • 1 comments

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.yaml on repository root. The .pre-commit-config.yaml file should contain:
repos:
  • [ ] Append the pre-commit eslint hook config to .pre-commit-config.yam. https://github.com/pre-commit/mirrors-eslint
  • [ ] Append the pre-commit black hook config to .pre-commit-config.yam.. https://github.com/psf/black#version-control-integration
  • [ ] Append the pre-commit flake8 hook 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

luzfcb avatar May 04 '21 21:05 luzfcb

this issue can replace and/or close #31

luzfcb avatar May 10 '21 19:05 luzfcb