Config#

pydantic settings neophile.config.Config#

Configuration for neophile.

Parameters:
Fields:
field allow_expressions: bool = False#

Whether to allow version expressions in dependencies

field cache_enabled: bool = True#

Whether to cache inventory information

field cache_path: Path = PosixPath('/home/runner/.cache/neophile')#

Path to the cache directory

field github_email: Optional[str] = None#

Email address to use for GitHub commits

field github_token: SecretStr = SecretStr('')#

GitHub token for creating pull requests

Constraints:
  • type = string

  • writeOnly = True

  • format = password

field github_user: str = ''#

GitHub user for creating pull requests

field repositories: list[GitHubRepository] [Optional]#

List of repositories to check

field work_area: Path [Optional]#

Path to a writable working directory

classmethod from_file(path)#

Initialize the configuration from a file.

Parameters:

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

Returns:

The configuration.

Return type:

Config