ci:
autofix_commit_msg: "ci(pre-commit): auto fixes from pre-commit hooks"
autoupdate_commit_msg: "ci(pre-commit): pre-commit autoupdate"
skip:
- cspell
- poetry-lock
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
- repo: https://github.com/cmhughes/latexindent.pl
rev: V3.23.6
hooks:
- id: latexindent
files: \.(tex|sty|cls|bib)$
types:
- text
args:
- --overwriteIfDifferent
- --silent
- --local
- --cruft=/tmp/latexindent
- --modifylinebreaks
- --GCString
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.15.0
hooks:
- id: commitizen
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.9.0
hooks:
- id: shellcheck
files: \.(bash|sh|zsh)(\.tmpl)?$
types:
- text
- repo: https://github.com/liblaf/pre-commit-hooks
rev: v0.1.0
hooks:
- id: cargo-check
- id: cargo-clippy
- id: cargo-fmt
- id: cargo-test
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
hooks:
- id: clang-format
types_or:
- c
- c++
- cuda
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
stages:
- pre-commit
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args:
- --maxkb=4096
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
exclude: ^tsconfig\.json$
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
args:
- --unsafe
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: name-tests-test
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.0
hooks:
- id: check-dependabot
- id: check-github-actions
- id: check-github-workflows
- repo: https://github.com/python-poetry/poetry
rev: 1.7.1
hooks:
- id: poetry-check
- id: poetry-export
args:
- --output=requirements.txt
- --without-hashes
- --without-urls
- id: poetry-install
- id: poetry-lock
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.8.0-1
hooks:
- id: shfmt
files: \.(bash|sh|zsh)(\.tmpl)?$
types:
- text
args:
- --write
- --simplify
- --indent=2
- --case-indent
- --space-redirects
- repo: https://github.com/sirosen/texthooks
rev: 0.6.4
hooks:
- id: alphabetize-codeowners
- id: fix-ligatures
- id: fix-spaces
- id: forbid-bidi-controls
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.4.0
hooks:
- id: cspell