# 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_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 - id: check-added-large-files args: ['--maxkb=1000'] - id: check-json - id: check-merge-conflict - id: debug-statements # Python formatting (optional - uncomment if you want) # - repo: https://github.com/psf/black # rev: 23.12.1 # hooks: # - id: black # language_version: python3 # Python import sorting (optional) # - repo: https://github.com/pycqa/isort # rev: 5.13.2 # hooks: # - id: isort