Settings#

class gafaelfawr.config.Settings(**data)#

Bases: CamelCaseModel

pydantic model of Gafaelfawr configuration file.

This describes the configuration file as parsed from disk. This model will be converted to a Config dataclass for internal use so that some settings can be duplicated, rewritten, or parsed into internal formats for later convenience.

Several fields use an empty dictionary or empty list as a default value. Due to a quirk in how Python handles empty dict and list constructors, the caller must be careful to never modify those fields and instead treat the value as read-only. In practice, this isn’t much of a concern since this object is only used to convert to a Config object.

Parameters:

data (Any) –