Skip to content

dycw/pre-commit-hooks

Repository files navigation

pre-commit-hooks

Overview

My pre-commit hooks.

Installation

  1. Install pre-commit.

  2. Add the following to your .pre-commit-config.yaml:

    repos:
      - repo: https://github.com/dycw/pre-commit-hooks
        rev: master
        hooks:
          - id: run-bump2version
            args: [--setup-cfg]
          - id: run-dockfmt
          - id: run-hatch-version
          - id: run-ruff-format
          - id: run-uv-pip-compile
            args: [--python-version=3.9]
  3. Update your .pre-commit-config.yaml:

    pre-commit autoupdate