bibclean.config.load_config¶
- bibclean.config.load_config(file)[source]¶
Load the
bibclean
configuration form a TOML file.The loaded configuration is merged with the default TOML configuration, overwriting the defaults with the provided configuration.
- Parameters:
- Returns:
- required_fields
dict
Required fields for each entry type. If None, a default configuration is loaded. The dictionary is defined with the entry-type as key (
str
) and the required fields as value (set
ofstr
).- keep_fields
dict
Fields to keep for each entry type. If None, a default configuration is loaded. The dictionary is defined with the entry-type as key (
str
) and the required fields as value (set
ofstr
).- exclude
list
ofstr
List of entries to ignore. An entry is specified by its cite key.
- required_fields