-
Notifications
You must be signed in to change notification settings - Fork 7
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
Create configuration file option #77
Conversation
Co-authored-by: Pete Gadomski <pete.gadomski@gmail.com>
stac_check/lint.py
Outdated
with open(default_config_file) as f: | ||
default_config = yaml.load(f, Loader=yaml.FullLoader) |
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.
If STAC_CHECK_CONFIG
isn't set, and stack-check.config.yml
doesn't exist in the user's current working directory, this will error, no?
You might need to use something like pkg_resources
to include the configuration file in the installed package (one example of using pkg_resources
in such a way is here: https://github.com/stactools-packages/noaa-c-cap/blob/main/src/stactools/noaa_c_cap/utils.py).
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.
Good call! I think it's fine now with the MANIFEST.in file. Thank you
lgtm, but I'll defer to Pete's approval |
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.
I fixed up the default config file to use pkg_resources
, should be good to go.
@gadomski awesome thanks |
#76