Check
check
Check models — Grade, CheckResult, ProjectResult, CategoryScore.
CategoryScore
Bases: BaseModel
Aggregated score verdict for a category.
When the summed weight of applicable checks is 0 the category is
not applicable (N/A): :attr:applicable is False and both
:attr:score and :attr:grade are None — a distinct status, not a
numeric 0/100. An applicable category where every check fails still
scores a real 0 / Grade F (:attr:applicable stays True).
Note: type: ignore[explicit-any] flags pydantic BaseModel
internals (third-party).
Source code in packages/axm-init/src/axm_init/models/check.py
applicable
property
Whether any applicable checks ran (summed weight > 0).
False marks a not-applicable (N/A) verdict: the category had no
weighted checks to score, which is distinct from a real 0/100.
grade
property
Letter grade, or None when not applicable (no numeric grade).
not_applicable
property
Inverse of :attr:applicable — True when no weighted checks ran.
score
property
0-100 weighted score, or None when not applicable.
None (never a numeric 0) is the N/A signal; an applicable
category where every check fails still scores a real 0.
from_checks(category, checks)
classmethod
Build the category verdict from its checks.
Sums the weighted results; the applicability/N/A status and the
derived score/grade fall out of :attr:total (0 → N/A).
Source code in packages/axm-init/src/axm_init/models/check.py
CheckResult
Bases: BaseModel
Result of a single audit check.
Note: type: ignore[explicit-any] flags pydantic BaseModel
internals (third-party).
Source code in packages/axm-init/src/axm_init/models/check.py
earned
property
Points earned: weight if passed, 0 otherwise.
Grade
ProjectResult
Bases: BaseModel
Complete project check result with score and grade.
Note: type: ignore[explicit-any] flags pydantic BaseModel
internals (third-party).
Source code in packages/axm-init/src/axm_init/models/check.py
applicable
property
Whether any weighted check ran (summed check weight > 0).
False is a not-applicable (N/A) verdict for the whole run — e.g.
check --category workspace on a standalone project skips every
workspace check, leaving nothing to score. Distinct from a real
0/100 where checks ran but all failed.
not_applicable
property
Inverse of :attr:applicable — True when no weighted checks ran.
from_checks(project_path, checks, *, context=None, workspace_root=None, excluded_checks=None)
classmethod
Compute score, grade, and category breakdowns from check results.
Source code in packages/axm-init/src/axm_init/models/check.py
compute_grade(score)
Map a 0-100 score to a Grade.