Repository navigation
Description
Every name in nanopynix.__all__ should be reachable from
docs/nanopynix/api/. Forty-six are not, and no check reports it.
Evidence
Measured by resolving the autodoc directives in docs/nanopynix/api/*.md, not
by searching for the text:
__all__ = 120
no documented home = 46
Only five modules carry automodule ... :members::
nanopynix.exceptions nanopynix.inproc nanopynix.primops
nanopynix.protocols nanopynix.stores
Thirty-six further names have an autoclass or autofunction of their own.
Everything else is undocumented.
A text search is the wrong check, and reports the wrong number. The docs
use Sphinx autodoc, so a name is documented without appearing in the Markdown.
A substring test reports 78 missing, and most of those are false. The test must
read the directives and resolve them.
The forty-six, by home
A directive is missing, and the module is already there (14). These cost
one line each:
| module | names |
|---|---|
nanopynix.primops.yaml |
from_yaml, from_yaml11, from_yaml11_stream, from_yaml_stream, to_yaml, yaml_primops |
nanopynix.namespace |
NamespaceSupport, OverlayNamespace, enter_overlay_namespace, probe_namespace_support |
nanopynix.verbosity |
LogLevelInput, normalize_log_level |
nanopynix.models |
DerivedPath |
nanopynix.store_impl |
StoreImpl |
nanopynix.primops is autodoc-ed with :members:, and the yaml submodule is
not covered by that.
The bindings (22). A separate issue covers these, because they need
reference text and not a directive.
Ten that raise a question of their own. Each of these is a public name, and
each has an answer to give before it gets a page:
set_manager_titlelives innanopynix._process_title, a private module. A
public name with a private home.strip_ansiis re-exported from a third-party package of the same name. Does
__all__promise a function this project does not own?DISPATCHABLE_METHODSandrpchave no__module__.LogLevel,ResultType,ValueHandle,GcAction,GcRootcome from
nanopynix_proto, andinit_libstoreis defined on the package itself.
Those belong to #44, which owns the question of what is public.
Scope
Add the check, with a ledger of the names that have no home yet. The ledger can
only get shorter.
- A test that reads each
automodule,autoclassandautofunctionin
docs/nanopynix/api/, resolves it, and reports each__all__name that no
directive reaches. - A restated literal of the names that are known to have no home. The test
fails when a name that is not in that list has no home, and it fails again
when a name in the list becomes documented and the list is stale. - Correct the fourteen one-line cases, and take them out of the ledger.
The ledger is what makes this landable now. Without it the test cannot go green
until every page is written, so it would not be added at all.
Depends on
Nothing. It is independent of #44, although #44 answers the question that ten
of the names raise.
Acceptance criteria
- The test resolves directives, and does not search for text.
- The fourteen one-line names are documented and out of the ledger.
- A new entry in
__all__with no documented home fails the suite. - The ledger holds only the bindings and the ten open questions.
Tests
tests/meta/, beside the other self-checks. See #70.
Activity
docs(api): give the compiled bindings a reference page
test(meta): give every public name a page, or an entry saying why not
docs(api): give the compiled bindings a reference page