A lightweight automated code-quality and patch-validation pipeline.
CodeGuardian watches a target repository, validates incoming patches, applies them safely, runs static analysis + tests, and reports the results.
It is designed to simulate a mini CI/CD workflow locally.
Patch Parsing & Verification
Ensures patches follow correct unified diff format.
Automatic Patch Application
Applies patches to the target repo safely using git apply.
Code Quality Checks
Runs flake8 and pytest over the patched repository.
Repository Watcher
Processes patches from an incoming directory.
Structured JSON Output
Saves pipeline results with status messages.