project_config.config package
Configuration handler.
- class project_config.config.Config(rootdir: str, path: Optional[str])[source]
Bases:
objectConfiguration wrapper.
- Parameters
- project_config.config.initialize_config(config_filepath: str) str[source]
Initialize the configuration.
- 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(filepath: str = 'pyproject.toml') Optional[Any][source]
Read the configuration from the pyproject.toml file.
- Returns
Noneif 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
cachefield of a configuration object.
- project_config.config.validate_config_style(config: Any) List[str][source]
Validate the
stylefield of a configuration object.