stubber.utils.config
¶
stubber configuration
Module Contents¶
Classes¶
stubber configuration class |
Functions¶
|
read the configuration from the pyproject.toml file |
Attributes¶
stubber configuration singleton |
- class stubber.utils.config.StubberConfig(section_name: str | None = None, sources: List[typedconfig.source.ConfigSource] | None = None, provider: typedconfig.provider.ConfigProvider | None = None)¶
Bases:
typedconfig.config.Config
stubber configuration class
- Parameters:
section_name (Optional[str]) –
sources (Optional[List[typedconfig.source.ConfigSource]]) –
provider (Optional[typedconfig.provider.ConfigProvider]) –
- stub_path¶
a Path to the stubs directory
- fallback_path¶
a Path to the fallback stubs directory
- repo_path¶
a Path to the repo directory
- mpy_path¶
a Path to the micropython folder in the repos directory
- mpy_lib_path¶
a Path to the micropython-lib folder in the repos directory
- publish_path¶
a Path to the folder where all stub publication artefacts are stored
- template_path¶
a Path to the publication folder that has the template files
- stable_version¶
last published stable
- all_versions¶
list of recent versions
- BLOCKED_PORTS = ['minimal', 'bare-arm']¶
ports that should be ignored as a source of stubs
- stubber.utils.config.readconfig(filename: str = 'pyproject.toml', prefix: str = 'tool.', must_exist: bool = True)¶
read the configuration from the pyproject.toml file
- stubber.utils.config.CONFIG¶
stubber configuration singleton