repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: trailing-whitespace exclude: ^python/quantum-pecos/docs/reference/_autosummary/ - id: end-of-file-fixer exclude: | (?x)^( python/quantum-pecos/docs/reference/_autosummary/| .*\.rs$| crates/.*/LICENSE$| python/.*/LICENSE$| python/quantum-pecos/NOTICE$| python/quantum-pecos/README\.md$ ) - id: check-toml - id: check-yaml args: [--unsafe] - id: check-added-large-files - id: check-case-conflict - id: check-merge-conflict - id: detect-private-key # Python-specific - id: check-ast - id: check-docstring-first - id: debug-statements - repo: https://github.com/crate-ci/typos rev: v1.44.0 hooks: - id: typos args: ["--force-exclude"] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.15.7 hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black rev: 26.3.1 hooks: - id: black - repo: https://github.com/keewis/blackdoc rev: v0.4.6 hooks: - id: blackdoc args: [--line-length=120] additional_dependencies: - black==25.9.0 - repo: local hooks: - id: dependency-integrity-check name: dependency integrity check entry: scripts/dependency-integrity-check.sh language: system pass_filenames: false always_run: true # Ruff's TID251 ban covers .py and .ipynb but not Markdown, and the doctests # generated from docs/ are not committed, so docs need their own check. - id: check-docs-no-numpy name: no numpy in documentation snippets entry: scripts/check-docs-no-numpy.sh language: system pass_filenames: false files: ^docs/.*\.md$