Repository navigation
Separate config loading from core into cli - #134
Conversation
|
Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry. |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
looks good, mostly. see below
i pushed one small change that seemed more consistent to me.
i think from_config is the most likely entrypoint now, so id vote that we put all default kwargs needed for libraries into the configs.
from_confignever gets extra args, defaults come from user configslibrary.__init__has no default values for args.
Perspective questions as prep for multi-library support:
do we want each library to rely more strongly on their config object? that would solve this consistently, and avoid the extra attributes i touched for traktor and plex.
feels sensible to me, now that we added the config protocol to library class.
ef4a643 to
bab4e9c
Compare
I would only strongly rely on the config in the public interface (i.e. if needed by the abstraction). I guess we should not rely on it too much for normal api or library methods. We should enable all functionality without the need for a config somehow and only have the config for convenience/abstraction imo. |
43e4bf4 to
c555b27
Compare
… yaml config loading layer.
removed default traktor bool kwarg. from_config is the most likely entrypoint now.
c555b27 to
2e14c41
Compare
Refactors the configuration management by consolidating CLI-specific configuration logic into a new
plistsync/cli/config.pymodule. Improves the overall structure and clarity of config handling.Core abstractions do not depend on eyconf and the global config object anymore!
closes #115