bibclean.config.load_config¶
- bibclean.config.load_config(file)[source]¶
Load the
bibcleanconfiguration 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 (setofstr).- 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 (setofstr).- exclude
listofstr List of entries to ignore. An entry is specified by its cite key.
- required_fields