Some checks failed
- Add 32 pages to nav: architecture (9), modules (1), migrations (1), testing (3), proposals (8), archive (11) - Fix absolute link in jinja-macros.md that mkdocs couldn't validate - Exclude mkdocs.yml from check-yaml hook (uses !!python/name tags) - Result: mkdocs build with zero warnings Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# Pre-commit hooks configuration
|
|
# Install: pip install pre-commit
|
|
# Setup: pre-commit install
|
|
# Run manually: pre-commit run --all-files
|
|
|
|
repos:
|
|
# Architecture validation
|
|
- repo: local
|
|
hooks:
|
|
- id: validate-architecture
|
|
name: Validate Architecture Patterns
|
|
entry: python scripts/validate/validate_architecture.py
|
|
language: python
|
|
pass_filenames: false
|
|
always_run: true
|
|
additional_dependencies: [pyyaml]
|
|
verbose: true
|
|
|
|
# Python code quality
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
exclude: mkdocs.yml # Uses Python tags (!!python/name) unsupported by basic YAML checker
|
|
- id: check-added-large-files
|
|
args: ['--maxkb=1000']
|
|
- id: check-json
|
|
- id: check-merge-conflict
|
|
- id: debug-statements
|
|
|
|
# Ruff - linting and import sorting (replaces black + isort)
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.8.4
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix, --exit-non-zero-on-fix]
|