.pre-commit-config.yaml•944 B
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: check-case-conflict
- id: check-json
- id: check-toml
- id: debug-statements
# Go hooks - only include the ones that work without external tools
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
- id: go-mod-tidy
- id: go-unit-tests
- id: go-build
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types: [markdown, yaml]
additional_dependencies:
- prettier@3.1.0
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
language_version: python3
types: [python]