project_config.config package
Configuration handler.
- class project_config.config.Config(rootdir: str, path: Optional[str])[source]
Bases:
object
Configuration wrapper.
- Parameters
- project_config.config.read_config(custom_file_path: Optional[str] = None) Tuple[str, Any] [source]
Read the configuration from a file.
- project_config.config.read_config_from_pyproject_toml() Optional[Any] [source]
Read the configuration from the pyproject.toml file.
- Returns
None
if not found, configuration data otherwise.- Return type
- project_config.config.validate_cli_config(config_path: str, config: Dict[str, Any]) Dict[str, Any] [source]
Validates the CLI configuration.
- project_config.config.validate_config(config_path: str, config: Any) None [source]
Validate a configuration.
- project_config.config.validate_config_cache(config: Any) List[str] [source]
Validate the
cache
field of a configuration object.
- project_config.config.validate_config_style(config: Any) List[str] [source]
Validate the
style
field of a configuration object.