dotfiles/.pre-commit-config.yaml

34 lines
782 B
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
- id: check-executables-have-shebangs
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
exclude: ^\.config/fcitx5/
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.8
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.0
hooks:
- id: mypy
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.18
hooks:
- id: forbid-binary
- id: shellcheck
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
- repo: https://github.com/google/keep-sorted
rev: v0.7.1
hooks:
- id: keep-sorted