plesty check#
Validate a project against the Plesty compliance standard. Runs a suite of static analysis and runtime gates organised into two enforcement tiers.
plesty check [--standard LEVEL]
Options#
Option |
Default |
Description |
|---|---|---|
|
|
Compliance level: |
Enforcement tiers#
Gates are divided into two tiers depending on whether they require network access or a clean install environment:
[SDK]— enforced locally byplesty check; pure static analysis, no network. The pre-push git hook installed byplesty initruns these gates automatically before every push.[SDK+CI]— enforced locally and repeated by CI in a clean environment as the authoritative final gate.
Compliance levels#
Pixel#
Metadata and code hygiene only — fast check suitable for pre-commit hooks.
Gate |
Tier |
What is checked |
|---|---|---|
Metadata & Namespace |
|
|
Code Hygiene |
|
|
Nebula#
All Pixel gates plus the remaining [SDK] gates. This is the standard enforced by the
pre-push hook.
Gate |
Tier |
What is checked |
|---|---|---|
API Interface Matching |
|
Classes that import from |
Data Layer Compliance |
|
All public methods have explicit return type annotations; no class redefines a plesty-lib schema model ( |
Documentation Completeness |
|
|
Dependency Coexistence |
|
No exact pins ( |
Quantum#
Everything in Nebula plus the [SDK+CI] gates, run locally for full verification before a
release. This is the default plesty check standard.
Gate |
Tier |
What is checked |
|---|---|---|
Automated Test Coverage |
|
|
Semantic Versioning |
|
Reminder to tag a new release when commits exist since the last tag; API-level diff against the published PyPI release runs in CI |
Licensing Compliance |
|
|
Vulnerability Audit |
|
No known CVEs in declared dependencies; queries the OSV database via |
Docs Build |
|
Full Sphinx build must complete with zero errors and zero warnings |
Module-type gates#
Quantum additionally runs gates scoped to the module_type declared in [tool.plesty];
they report N/A for every other module type.
Gate |
Applies to |
What is checked |
|---|---|---|
d1 — Device API Pipeline |
|
The eight |
d2 — Device Status Contract |
|
Overrides of |
e1 — Experiment Contract |
|
The five |
e2 — Experiment Persistence |
|
No ad-hoc persistence in the module package ( |
Examples#
# Default quantum check in the current directory
plesty check
# Quick pixel check (metadata + code hygiene only)
plesty check --standard pixel
# Full quantum check on a project in another directory
plesty --project-dir ../plesty-power-meter check --standard quantum