Clean Code Pre Commit Integration

Sub-skill of clean-code: Pre-commit Integration.

vamseeachanta a53e5ce 785 B Updated

File contents

Pre-commit Integration

Pre-commit Integration

Add to .pre-commit-config.yaml to catch new violations before they land:

repos:
  - repo: local
    hooks:
      - id: file-size-check
        name: Python file size check (400 line limit)
        language: system
        entry: bash -c 'find src/ -name "*.py" -exec wc -l {} + | awk "$1 > 400 {print $1, $2; found=1} END {exit found+0}" | sort -rn'
        pass_filenames: false
        types: [python]

      - id: validate-file-placement
        name: Validate file placement
        language: system
        entry: bash scripts/operations/validate-file-placement.sh
        pass_filenames: false

vamseeachanta/workspace-hub/tree/main/.agents/skills/_archive/workspace-hub/clean-code/pre-commit-integration commit a53e5cebd4

Frequently asked questions

npx skillmds@latest add vamseeachanta/clean-code-pre-commit-integration