-
Notifications
You must be signed in to change notification settings - Fork 29
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
Incorporate stac-check linting tool #254
Conversation
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.
This looks great, only issue now is that the the test with "data-files/linting/20201211_223832_cs2.json"
fails. Looks like that item is missing a self
link:
$ stac lint tests/data-files/linting/20201211_223832_cs2.json
WARNING A link to 'self' in links is strongly recommended
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.
Ah thanks, I might have had an old version of stac-check
installed, so that was probably my mistake.
I'm do think I'm going to open an issue on stac-check
re: self links -- though it says they're strongly recommended in the spec documents themselves, the best practices have many cases where they say a self
link should only be used in one spot (for relative published catalogs) or never (for self-contained catalogs). I think it's an issue w/ the spec too.
Adds a CLI command to run linting on a stac object.
It's already in setup.cfg so we don't need it here.
Ok awesome for sure. |
Before you submit a pull request, please fill in the following:
Related Issue(s):
#230
Description:
PR checklist:
scripts/format
).scripts/lint
).scripts/test
).