repos:
    - repo: https://github.com/pre-commit/pre-commit-hooks
      rev: v5.0.0
      hooks:
          - id: trailing-whitespace
          - id: end-of-file-fixer
          - id: check-yaml

    - repo: https://github.com/astral-sh/ruff-pre-commit
      # Ruff version.
      rev: v0.8.1
      hooks:
          # Run the linter.
          - id: ruff
          # Run the formatter.
          - id: ruff-format
