default_language_version:
    python: python3.11

repos:
    -   repo: https://github.com/pre-commit/pre-commit-hooks
        rev: v4.5.0
        hooks:
        -   id: check-yaml
        -   id: end-of-file-fixer
        -   id: trailing-whitespace
    -   repo: https://github.com/asottile/blacken-docs
        rev: 1.16.0
        hooks:
        -   id: blacken-docs
            args: [--skip-errors]
    -   repo: https://github.com/pycqa/flake8
        rev: 7.0.0
        hooks:
        -   id: flake8
            additional_dependencies: [flake8-comprehensions>=3.1.0]
        -   id: flake8
            name: flake8-pyx
            files: \.(pyx|pxd)$
            types:
            - file
            args: [--append-config=flake8/cython.cfg]
    -   repo: https://github.com/codespell-project/codespell
        rev: v2.2.6
        hooks:
        -   id: codespell
    -   repo: https://github.com/astral-sh/ruff-pre-commit
        rev: v0.11.10
        hooks:
        - id: ruff-check
        - id: ruff-format
