Should all settings classes inherit from Pydantic BaseSettings via HermesSettings
?
#302
Labels
architecture
Describes some architectural decisions that need to be made
question
Further information is requested
Milestone
Currently, the (some?) settings classes for plugin implementations (e.g. for the CFF harvester) inherit from
pydantic.BaseModel
. I believe that this is not correct (see #301).Furthermore, currently
hermes.commands.base.HermesSettings
inherits frompydantic_settings.BaseSettings
. This is clever becauseBaseSettings
allows interaction with env vars. (Also,BaseSettings
inherits fromBaseModel
.)However, e.g.,
hermes.commands.harvest.base.HarvestSettings
again directly inherits fromBaseModel
.Q: Shouldn't we redefine the base settings classes for all commands to inherit from
BaseSettings
rather than fromBaseModel
?The text was updated successfully, but these errors were encountered: