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

Allow for linting in-memory dictionaries #94

Merged
merged 12 commits into from
Nov 29, 2022
Merged

Allow for linting in-memory dictionaries #94

merged 12 commits into from
Nov 29, 2022

Conversation

jonhealy1
Copy link
Collaborator

#91

@jonhealy1 jonhealy1 marked this pull request as draft November 26, 2022 12:03
@jonhealy1 jonhealy1 marked this pull request as ready for review November 26, 2022 12:54
assert linter.valid_stac == True
assert linter.asset_type == "COLLECTION"
assert linter.check_catalog_id_file_name() == False
assert linter.create_best_practices_dict()["check_catalog_id"] == ["Object should be called 'collection.json' not 'simple-collection.json'"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Collections usually have descriptive IDs, e.g. https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-2-l2a. I think this lint is incorrect.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This project was an attempt to follow the STAC Best Practices document. I think in the document this advice is only for static catalogs? https://github.com/radiantearth/stac-spec/blob/master/best-practices.md#static-catalogs

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. I'm changing the check so that it only activates with a static file.

@jonhealy1 jonhealy1 requested a review from gadomski November 29, 2022 08:05
@jonhealy1 jonhealy1 merged commit 4a8c71d into main Nov 29, 2022
@jonhealy1 jonhealy1 deleted the in_memory branch October 9, 2024 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants