---
ci:
  # https://pre-commit.ci/#configuration
  autoupdate_schedule: weekly
  autofix_prs: false

# https://pre-commit.com/#adding-pre-commit-plugins-to-your-project
repos:
  - repo: https://github.com/astral-sh/ruff-pre-commit
    # WARNING: Ruff version should be the same as in `pyproject.toml`
    rev: v0.5.4
    hooks:
      - id: ruff
        args: ["--fix"]
  - repo: https://github.com/psf/black-pre-commit-mirror
    # WARNING: Black version should be the same as in `pyproject.toml`
    rev: "24.4.2"
    hooks:
    - id: black
      pass_filenames: false
      require_serial: true
      args: ["."]
  - repo: https://github.com/python-poetry/poetry
    rev: 1.8.3
    hooks:
    - id: poetry-check
    - id: poetry-lock
      # sadly `--no-update` does not work on pre-commit.ci
      args: ["--check"]
