Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DavidSouther
Copy link
Contributor

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.

@DavidSouther DavidSouther self-assigned this Feb 19, 2025
@DavidSouther DavidSouther added the Enhancement A general update to the code base. label Feb 19, 2025
Copy link
Contributor

@Laren-AWS Laren-AWS left a 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] = []
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A general update to the code base.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants