Development Setup¶
Prerequisites¶
- Python 3.12 or later
gitpip
Clone the repository¶
Create a virtual environment¶
Install development dependencies¶
This installs the package in editable mode along with pytest, ruff, and other dev tooling.
Run the test suite¶
Expect 734 tests passing across 19 test files.
Run a single test¶
Lint the codebase¶
Run evaluation locally¶
Evaluation recomputes the baseline against the pinned corpus:
The corpus is gitignored, so rebuild it from the lock first:
python scripts/build_corpus.py --from-manifest \
--manifest tests/fixtures/corpus.lock \
--out tests/fixtures/benign-corpus
See Re-baselining for details.
Debug a single package¶
This runs the full analysis pipeline on one AUR package and prints the per-rule breakdown, evidence, and final score.