# Pre-commit hooks -- run `pre-commit install` once, then they run on every commit. # See https://pre-commit.com for details. repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-toml - id: check-added-large-files args: ["--maxkb=2048"] - id: detect-private-key - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.6.9 hooks: - id: ruff args: ["--fix"] - repo: https://github.com/psf/black rev: 24.10.0 hooks: - id: black