-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract ConfigLoaders, and add Github config loader for raw user content #144
base: main
Are you sure you want to change the base?
Conversation
bb01b7e
to
da64362
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It all looks good to me, but this feels like the kind of change that'll have to be pretty thoroughly tested in all the places (GitHub validation action, WRITEME, internal validation, directories, etc.).
def languages(self) -> Set[str]: | ||
languages: Set[str] = set() | ||
def languages(self) -> List[str]: | ||
languages: List[str] = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the switch to List?
Although I can't find where languages
is used so it might not matter.
This extracts the Config loaders out from several direct "open" calls to a module Loader class. It then adds a requests-backed loader from raw.githubusercontent.com, defaulting to the main branch in -tools. This is pretty flexible with pretty little abstraction cost, and importantly, means that the -tools package's config folder on main is de-facto instant update. This allows us to later extract a -data package.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.