# See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks ci: autoupdate_commit_msg: "chore: update pre-commit hooks" autofix_commit_msg: "style: pre-commit fixes" autofix_prs: true repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.15.1" hooks: - id: ruff types_or: [python, pyi, jupyter] args: [--fix, --show-fixes] - id: ruff-format types_or: [python, pyi, jupyter] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: trailing-whitespace exclude: '.*\.fits$' - id: end-of-file-fixer exclude_types: [csv] exclude: '.*\.fits$' - id: check-yaml # prevent addition of (presumably data) files >= 10 MB # (for such files, see https://learn.astropy.org/contributing/how-to-contribute) - id: check-added-large-files args: ["--maxkb=10000"] - repo: https://github.com/kynan/nbstripout rev: 0.9.0 hooks: - id: nbstripout args: ["--extra-keys=metadata.kernelspec metadata.language_info.version metadata.toc"]