API Reference¶
This page is auto-generated from Python docstrings.
pup_check ¶
pup-check package.
__main__ ¶
Run as a module.
checks ¶
Checks package.
entry_points ¶
Project entry-point checks.
check_entry_points ¶
Check that declared project-script modules exist.
Source code in src/pup_check/checks/entry_points.py
files ¶
Repository file checks.
check_required_files ¶
Check required project files.
Source code in src/pup_check/checks/files.py
packages ¶
Python package structure checks.
check_package_structure ¶
Check that a src/ repository contains a detectable Python package.
Source code in src/pup_check/checks/packages.py
pyproject ¶
pyproject.toml consistency checks.
check_pyproject ¶
Check that pyproject.toml can be read and identifies the project.
Source code in src/pup_check/checks/pyproject.py
cli ¶
Command-line interface for pup-check.
This module parses arguments and dispatches repository checking behavior.
Commands: uv run pup-check
Equivalent uvx usage after release: uvx pup-check uvx pup-check@latest
build_parser ¶
Build the argument parser.
Source code in src/pup_check/cli.py
main ¶
Run the command-line interface.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
argv
|
Sequence[str] | None
|
Optional command-line arguments. If None, uses sys.argv. |
None
|
Returns:
| Type | Description |
|---|---|
int
|
Exit code from the check command. |
Source code in src/pup_check/cli.py
commands ¶
Command modules.
Each command module exposes a stable run(...) -> int entry point.
The CLI parser lives in pup_check.cli. Behavior lives here.
check ¶
Check the repository for self-consistency.
run ¶
Check a repository for deterministic internal consistency.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root
|
Path | None
|
Repository root. If None, detect the current repository root. |
None
|
Returns:
| Type | Description |
|---|---|
int
|
Process exit code. Zero means all checks passed. |
Source code in src/pup_check/commands/check.py
write ¶
Write package.
terminal ¶
Terminal reporting.
print_check_results ¶
Print repository check results.