Functions | |
| scanned_modules () | |
| Resolve the module roots into concrete files and their public dotted names. | |
| set | declared_surfaces () |
| Public surfaces already covered by a registered capability family. | |
| dict | candidate_surfaces () |
| Public choice points in the CLI, found independently of the registry. | |
| tuple | classification_of (entry) |
| Normalize a census entry into a typed classification and reason. | |
| int | main () |
| Report uncovered public selector surfaces, typed. | |
Variables | |
| REPO_ROOT = Path(__file__).resolve().parents[2] | |
| str | REGISTRY = REPO_ROOT / "tests" / "tooling" / "capability_families.json" |
| str | CENSUS = REPO_ROOT / "tests" / "tooling" / "family_census.json" |
| tuple | SCANNED_MODULE_ROOTS = ("picurv_cli/core.py", "picurv_cli/storage", "picurv_cli/cli.py") |
| tuple | CHOICE_SET_SUFFIXES |
| _CHOICE_SET_PATTERN = re.compile(r"[A-Z0-9_]+(" + "|".join(CHOICE_SET_SUFFIXES) + r")$") | |
| tuple | VALID_CLASSIFICATIONS |
| tuple | NEEDS_OWNER = ("parameter_of_entry", "spelling_alias") |
Report public selector surfaces that no capability family covers.
| audit_family_census.scanned_modules | ( | ) |
Resolve the module roots into concrete files and their public dotted names.
(repo-relative path, dotted module name) pairs. Definition at line 24 of file audit_family_census.py.
| set audit_family_census.declared_surfaces | ( | ) |
Public surfaces already covered by a registered capability family.
module::symbol identifiers. Definition at line 42 of file audit_family_census.py.
| dict audit_family_census.candidate_surfaces | ( | ) |
Public choice points in the CLI, found independently of the registry.
A normalize_* function, or a module-level constant whose name ends in one of CHOICE_SET_SUFFIXES, is how this codebase exposes a user-selectable set. Finding them independently of the registry is the point: a registry that only checks itself cannot report a family nobody registered.
module::symbol to a short description. Definition at line 69 of file audit_family_census.py.
| tuple audit_family_census.classification_of | ( | entry | ) |
Normalize a census entry into a typed classification and reason.
Older entries were free-text, which let a pending public family be summarized as "not a public family". A typed record cannot do that.
| [in] | entry | Census entry, either a mapping or a legacy string. |
Definition at line 112 of file audit_family_census.py.
| int audit_family_census.main | ( | ) |
Report uncovered public selector surfaces, typed.
Fails when a surface is undiscovered, when a classification is invalid, when a not_public entry gives no reason, or when any public family remains pending. Publication cannot proceed while a public family is undocumented.
Definition at line 129 of file audit_family_census.py.
| audit_family_census.REPO_ROOT = Path(__file__).resolve().parents[2] |
Definition at line 13 of file audit_family_census.py.
| str audit_family_census.REGISTRY = REPO_ROOT / "tests" / "tooling" / "capability_families.json" |
Definition at line 14 of file audit_family_census.py.
| str audit_family_census.CENSUS = REPO_ROOT / "tests" / "tooling" / "family_census.json" |
Definition at line 15 of file audit_family_census.py.
| tuple audit_family_census.SCANNED_MODULE_ROOTS = ("picurv_cli/core.py", "picurv_cli/storage", "picurv_cli/cli.py") |
Definition at line 21 of file audit_family_census.py.
| tuple audit_family_census.CHOICE_SET_SUFFIXES |
Definition at line 61 of file audit_family_census.py.
|
protected |
Definition at line 66 of file audit_family_census.py.
| tuple audit_family_census.VALID_CLASSIFICATIONS |
Definition at line 99 of file audit_family_census.py.
| tuple audit_family_census.NEEDS_OWNER = ("parameter_of_entry", "spelling_alias") |
Definition at line 109 of file audit_family_census.py.