Zerum
Zerum is a Rust-native, deterministic-first code governance platform for Python.
It combines:
- Native deterministic checks (ZR001–ZR010) — complexity, design, warnings, AI placeholders, architecture imports
- External checker orchestration (planned) — Ruff, Mypy, Bandit, and others
- Auditable LLM-assisted review (planned, opt-in only)
Zerum is not a Ruff clone. It focuses on explainable governance, maintainability, and architectural boundaries.
Quick start
zerum init writes zerum.toml from zerum.toml.example. You can also copy the example file manually.
Exit codes (check)
| Code | Meaning |
|---|---|
| 0 | No issues |
| 1 | Issues found |
| 2 | Operational error (missing path, parse/read failure on all files, CLI error) |
zerum review uses the same analysis and reporters but exits 0 when issues are found (only 2 on operational failure).
Checks (v0.1.0)
| ID | Name |
|---|---|
| ZR001 | too-many-branches |
| ZR002 | too-many-arguments |
| ZR003 | long-function |
| ZR004 | nested-conditionals |
| ZR005 | broad-except |
| ZR006 | print-debugging |
| ZR007 | mutable-default-argument |
| ZR008 | god-class |
| ZR009 | ai-generated-placeholder-comment |
| ZR010 | forbidden-architecture-import |
Output formats
Tutorial
Educational material lives under docs/tutorial/:
- 00 — Introduction
- 01 — Static analysis basics
- 02 — Parsing Python in Rust
- 03 — Building a rule engine
- 12 — Roadmap
Development
Changelog
See CHANGELOG.md for release history. Full v0.1.0 notes: docs/RELEASE_v0.1.0.md.
License
MIT — see LICENSE.