custom pre-commit hooks by JGStew.
This repository contains hooks for pre-commit that may be useful to devs.
To use these hooks, you first need to install pre-commit using the instructions here: https://pre-commit.com/#install
For any hook in this repo you wish to use, add the following to your pre-commit config file .pre-commit-config.yaml
:
---
repos:
- repo: https://github.com/jgstew/pre-commit-jgstew
rev: v1.0.0
hooks:
- id: minimum-changes
After adding a hook to your pre-commit config, it's not a bad idea to run pre-commit autoupdate
to ensure you have the latest version of the hooks.
python -c "import pre_commit_hooks; print(pre_commit_hooks.__version__)"
python setup.py --version
version = attr: pre_commit_hooks.__version__
python .\setup.py build
python -m build
pre-commit try-repo .