repos:
  - repo: https://github.com/psf/black
    rev: '24.10.0'
    hooks:
      - id: black
        args: [--line-length=100, --target-version=py311]

  - repo: https://github.com/astral-sh/ruff-pre-commit
    # Bumped from v0.8.0 so the hook recognises UP045
    # (non-pep604-annotation-optional), which the v0.13+ ruff split off
    # from UP007. Pyproject.toml extend-selects both rules.
    rev: v0.15.12
    hooks:
      - id: ruff
        args: [--line-length=100, --target-version=py311]
