Contributing
This section is for developers working in the Netherframe monorepo.
See the compatibility policy when changing public interfaces. Record user-visible changes and migration steps in the unreleased notes, and use the publication gate before releasing packages. For vulnerabilities, use private security reporting.
Development Setup
uv sync
uv run poe dev
Common Commands
uv run poe test-core
uv run poe test-cli
uv run poe test-all
uv run poe lint
uv run poe format-check
uv run zensical serve
Docs Layout
- Testing Notes: integration-test and FakeCloud notes
- Runtime Provider Test Notes: external Go provider required by the runtime Terraform integration tests
- Internal Design Notes: implementation details, analysis, and historical references
Building the Documentation
uv run zensical build --clean --strict
API documentation uses the repository's netherframe mkdocstrings handler, available
from the CLI's editable source checkout after uv sync. It keeps Python's normal
rendering and inventories but restricts Griffe collection to the source roots in
zensical.toml. The stock handler also adds sys.path, which causes namespace
packages to pull in every installed generated provider and makes core API collection
extremely slow. Add a source root to that configuration when documenting another
workspace package and include its source directories in project.watch so preview and
cached builds pick up API edits. Generated providers are not needed to build the core API reference.
The small handler lives in
tools/netherframe.cli/mkdocstrings_handlers/netherframe/__init__.py and is not part
of the published CLI wheel. Its regression test checks that an unrelated installed
namespace package is never visited and that the nf.core alias and inherited API
members still resolve.
Documentation Checks
We validate Python examples in docs by running them through the interpreter.
Code Block Conventions
- Use fenced code blocks with
pythonorpyfor examples. - Complete Python examples run by default, each in a separate interpreter.
- Add
<!-- docs:no-exec -->immediately before a context-dependent block to compile it without running it. - Add
docs:skipto skip a block. - For inline control, use
# docs:execor# docs:skipinside the block. - For
pyconblocks, only prompt lines are validated.
Running the Checks
uv run poe docs-verify
By default this executes Python code blocks in the repository environment. Blocks marked
docs:no-exec are compiled only; docs:skip excludes a block. Keep complete examples
self-contained and mark fragments that require reader-provided files or credentials.
Shell examples are not executed by this checker: validate command sequences separately
against a disposable local example when editing a tutorial.