#046
gdtest_kitchen_sink
OK
CONFIG
Maximum feature coverage โ every major feature at once
Maximum coverage: src/ layout, 10 exports, Pipeline as a big class with 6+ methods, user guide (3 pages), all supporting pages (License, Citation, Contributing, Code of Conduct), author metadata in sidebar, display_name 'Kitchen Sink'. Every feature should work together without conflicts.
Build Mode
● Has great-docs.yml
This package ships a pre-supplied config.
The great-docs init step is skipped and
great-docs build uses the spec-defined configuration directly.
Tests specific config options and their rendered output.
Dimensions
A2 B1 C4 D1 F1 G1 H1 H2 H3 H4 H6
A2src/ layoutlayout
B1Explicit __all__exports
C4Mixed class+funcobjects
D1NumPydocstrings
F1Auto-discoveruser_guide
G1README.mdlanding
H1LICENSEextras
H2CITATION.cffextras
H3CONTRIBUTING.mdextras
H4CODE_OF_CONDUCT.mdextras
H6assets/extras
Source Files
assets/
logo.txt
โโโโโโโโโโโโโโโ โ Kitchen Sink โ โโโโโโโโโโโโโโโ
src/
gdtest_kitchen_sink/
__init__.py
"""
Kitchen Sink โ a comprehensive test package.
This package exercises every major Great Docs feature in a single
codebase.
"""
__version__ = "1.0.0"
__all__ = [
"Pipeline",
"Config",
"Status",
"Result",
"run_pipeline",
"validate_config",
"format_output",
"parse_input",
"helper_a",
"helper_b",
]
from dataclasses import dataclass, field
from enum import Enum
# โโ Big class (>5 methods โ separate method section) โโโโโโโโโโ
class Pipeline:
"""
A data processing pipeline with many operations.
Parameters
----------
name
Pipeline name.
"""
def __init__(self, name: str):
self.name = name
self._steps = []
def add_step(self, step) -> "Pipeline":
"""
Add a processing step.
Parameters
----------
step
The step to add.
Returns
-------
Pipeline
Self, for chaining.
"""
self._steps.append(step)
return self
def remove_step(self, index: int) -> "Pipeline":
"""
Remove a step by index.
Parameters
----------
index
The step index to remove.
Returns
-------
Pipeline
Self, for chaining.
"""
self._steps.pop(index)
return self
def run(self) -> "Result":
"""
Execute the pipeline.
Returns
-------
Result
The pipeline result.
"""
return Result(status=Status.SUCCESS, message="done")
def validate(self) -> bool:
"""
Check that the pipeline is correctly configured.
Returns
-------
bool
True if valid.
"""
return len(self._steps) > 0
def reset(self) -> None:
"""Clear all steps from the pipeline."""
self._steps.clear()
def summary(self) -> dict:
"""
Return a summary of the pipeline.
Returns
-------
dict
Summary with name, step count, etc.
"""
return {"name": self.name, "steps": len(self._steps)}
# โโ Small class (โค5 methods โ inline docs) โโโโโโโโโโโโโโโโโโโโ
class Config:
"""
Configuration container for a pipeline.
Parameters
----------
settings
A dictionary of settings.
"""
def __init__(self, settings: dict | None = None):
self._settings = settings or {}
def get(self, key: str, default=None):
"""
Get a config value.
Parameters
----------
key
Setting key.
default
Default if key not found.
Returns
-------
object
The setting value.
"""
return self._settings.get(key, default)
def set(self, key: str, value) -> None:
"""
Set a config value.
Parameters
----------
key
Setting key.
value
New value.
"""
self._settings[key] = value
# โโ Enum โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
class Status(Enum):
"""
Pipeline execution status.
"""
SUCCESS = "success"
FAILURE = "failure"
PENDING = "pending"
SKIPPED = "skipped"
# โโ Dataclass โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
@dataclass
class Result:
"""
The result of a pipeline execution.
Parameters
----------
status
Execution status.
message
Human-readable message.
errors
List of error strings, if any.
"""
status: Status
message: str = ""
errors: list[str] = field(default_factory=list)
# โโ Functions โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
def run_pipeline(name: str, **kwargs) -> Result:
"""
High-level function to create and run a pipeline.
Parameters
----------
name
Pipeline name.
**kwargs
Passed to Pipeline constructor.
Returns
-------
Result
The execution result.
"""
return Pipeline(name).run()
def validate_config(config: Config) -> bool:
"""
Validate a configuration object.
Parameters
----------
config
The config to validate.
Returns
-------
bool
True if valid.
"""
return True
def format_output(result: Result, fmt: str = "text") -> str:
"""
Format a result for display.
Parameters
----------
result
The result to format.
fmt
Output format (text, json, html).
Returns
-------
str
Formatted output.
"""
return str(result)
def parse_input(raw: str) -> dict:
"""
Parse raw input into a structured dict.
Parameters
----------
raw
Raw input string.
Returns
-------
dict
Parsed data.
"""
return {"raw": raw}
def helper_a() -> None:
"""
A general-purpose helper function.
Returns
-------
None
"""
pass
def helper_b() -> None:
"""
Another general-purpose helper.
Returns
-------
None
"""
passuser_guide/
01-introduction.qmd
--- title: Introduction --- Welcome to Kitchen Sink! This is a comprehensive test package.
02-quickstart.qmd
---
title: Quick Start
---
Get started with Kitchen Sink in minutes.
```python
from gdtest_kitchen_sink import Pipeline
p = Pipeline("my-pipeline")
result = p.run()
```03-advanced.qmd
--- title: Advanced Usage --- Advanced topics for power users.
CITATION.cff
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
title: "Kitchen Sink"
version: "1.0.0"
date-released: "2026-01-15"
authors:
- family-names: Author
given-names: Test
orcid: "https://orcid.org/0000-0000-0000-0001"CODE_OF_CONDUCT.md
# Code of Conduct Be kind. Be respectful. Be constructive.
CONTRIBUTING.md
# Contributing We welcome contributions! Please open an issue or pull request. ## Development Setup ```bash pip install -e ".[dev]" ```
LICENSE
MIT License Copyright (c) 2026 Test Author Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction.
README.md
# Kitchen Sink A comprehensive test package exercising all Great Docs features. ## Features - Pipeline processing - Configuration management - Status tracking - Result formatting
great-docs.yml
display_name: Kitchen Sink
parser: numpy
authors:
- name: Test Author
email: test@example.com
role: Lead Developer
github: testauthor
funding:
name: Test Foundation
roles:
- Funder
homepage: "https://example.com/foundation"
source:
enabled: true
branch: main