autodoc2.config
#
The configuration for the extension.
Module Contents#
Classes#
A package-level config item. |
|
The configuration for autoapi. |
Functions#
Coerce the packages config option to a set. |
|
Validate that an item is a list of tuples. |
|
Validate that the hidden objects config option is a set. |
|
Validate that an item is a list of regexes. |
|
Validate that an item is a list of (regex, str) tuples. |
|
Load a renderer class. |
|
Load a list of (regex, renderer). |
Data#
API#
- exception autodoc2.config.ValidationError[source]#
Bases:
Exception
An error validating a config value.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- autodoc2.config.CONFIG_PREFIX = 'autodoc2_'#
- autodoc2.config._coerce_packages(name: str, item: Any) list[autodoc2.config.PackageConfig] [source]#
Coerce the packages config option to a set.
- autodoc2.config._validate_replace_list(name: str, item: Any) list[tuple[str, str]] [source]#
Validate that an item is a list of tuples.
Validate that the hidden objects config option is a set.
- autodoc2.config._validate_regex_list(name: str, item: Any) list[Pattern[str]] [source]#
Validate that an item is a list of regexes.
- autodoc2.config._validate_list_tuple_regex_str(name: str, item: Any) list[tuple[Pattern[str], str]] [source]#
Validate that an item is a list of (regex, str) tuples.
- autodoc2.config._load_renderer(name: str, item: Any) type[autodoc2.render.base.RendererBase] [source]#
Load a renderer class.
- autodoc2.config._load_regex_renderers(name: str, item: Any) list[tuple[Pattern[str], type[autodoc2.render.base.RendererBase]]] [source]#
Load a list of (regex, renderer).
- class autodoc2.config.Config[source]#
The configuration for autoapi.
- packages: list[autodoc2.config.PackageConfig] = 'field(...)'#
- render_plugin: type[autodoc2.render.base.RendererBase] = 'field(...)'#
- render_plugin_regexes: list[tuple[Pattern[str], type[autodoc2.render.base.RendererBase]]] = 'field(...)'#