Configuration

class neophile.config.Configuration(_env_file: str | PathLike | List[str | PathLike] | Tuple[str | PathLike, ...] | None = '<object object>', _env_file_encoding: str | None = None, _env_nested_delimiter: str | None = None, _secrets_dir: str | PathLike | None = None, *, allow_expressions: bool = False, cache_enabled: bool = True, cache_path: Path = PosixPath('/home/runner/.cache/neophile'), github_email: str | None = None, github_token: SecretStr = SecretStr(''), github_user: str = '', repositories: List[GitHubRepository] = None, work_area: Path = None)

Bases: BaseSettings

Configuration for neophile.

Methods Summary

from_file(path)

Initialize the configuration from a file.

Methods Documentation

classmethod from_file(path: str) → Configuration

Initialize the configuration from a file.

Parameters:

path (str) – Path to a configuration file in YAML format.

Returns:

config – The configuration.

Return type:

Configuration