yobot/.pre-commit-config.yaml

35 lines
927 B
YAML

repos:
- repo: builtin
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-case-conflict
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-xml
- id: mixed-line-ending
- id: check-symlinks
- id: check-merge-conflict
- id: detect-private-key
- id: check-executables-have-shebangs
- repo: https://github.com/tsvikas/sync-with-uv
rev: v0.1.0
hooks:
- id: sync-with-uv
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.10
hooks:
# Run the linter.
- id: ruff-check
args: [ "--fix", "--fixable", "I,F401" ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.9.18
hooks:
- id: uv-lock