# See https://pre-commit.com for more information, specially https://pre-commit.com/#pre-commit-run for manual trigger # Some example useful invocations: # pre-commit install: this will install the pre-commit hooks in this file. # pre-commit run: this is what pre-commit runs by default when committing. This will run all hooks against currently staged files. # pre-commit run --all-files: run all the hooks against all the files. This is a useful invocation if you are using pre-commit in CI. repos: - repo: https://github.com/codespell-project/codespell rev: v2.4.2 hooks: - id: codespell # See pyproject.toml for args additional_dependencies: - tomli # We run BOTH flake8 and ruff-check until we add ruff-format. - repo: https://github.com/pycqa/flake8 rev: 7.3.0 hooks: - id: flake8 - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.15.7 hooks: - id: ruff-check - repo: https://github.com/sphinx-contrib/sphinx-lint rev: v1.0.2 hooks: - id: sphinx-lint args: - --disable=missing-final-newline - --disable=trailing-whitespace