jgstew / pre-commit-jgstew

custom pre-commit hooks
MIT License
0 stars 0 forks source link

pre-commit-hooks

custom pre-commit hooks by JGStew.

This repository contains hooks for pre-commit that may be useful to devs.

Requirements

To use these hooks, you first need to install pre-commit using the instructions here: https://pre-commit.com/#install

Adding hooks to your pre-commit config

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.

Test commands:

Related: