Links
AI / Agents
gdtest-auto-include
A synthetic test package testing auto_include override of AUTO_EXCLUDE.
Module exports names that match AUTO_EXCLUDE (config, logging, main) alongside real API (Widget, process). The auto_include config option forces config and logging back into documentation while main remains excluded. Tests selective override of AUTO_EXCLUDE.
Source files
gdtest_auto_include/
__init__.py
"""A test package with auto_include overriding AUTO_EXCLUDE."""
__version__ = "0.1.0"
__all__ = ["Widget", "process", "config", "logging", "main"]
class Widget:
"""
A public widget class.
Parameters
----------
label
Widget label.
"""
def __init__(self, label: str):
self.label = label
def render(self) -> str:
"""
Render the widget.
Returns
-------
str
Rendered HTML.
"""
return f"<widget>{self.label}</widget>"
def process(data: str) -> str:
"""
Process input data.
Parameters
----------
data
Raw input data.
Returns
-------
str
Processed data.
"""
return data.strip()
class config:
"""
Configuration manager for the package.
This is a real public API class that happens to be named ``config``
— a name normally in AUTO_EXCLUDE. The ``auto_include`` option
forces it back into documentation.
Parameters
----------
path
Configuration file path.
"""
def __init__(self, path: str = "config.ini"):
self.path = path
def load(self) -> dict:
"""
Load configuration from file.
Returns
-------
dict
Loaded configuration values.
"""
return {}
class logging:
"""
Logging facade for the package.
This is a real public API class that happens to be named ``logging``
— a name normally in AUTO_EXCLUDE. The ``auto_include`` option
forces it back into documentation.
Parameters
----------
level
Default log level.
"""
def __init__(self, level: str = "INFO"):
self.level = level
def info(self, msg: str) -> None:
"""
Log an informational message.
Parameters
----------
msg
The message to log.
"""
pass
def main():
"""CLI entry point — should still be auto-excluded."""
passREADME.md
# gdtest-auto-include A synthetic test package testing auto_include override of AUTO_EXCLUDE.
great-docs.yml
auto_include: - config - logging