feat: create script for updating lists of ecosystems #303
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This introduces a new script to make it easier to ensure all "lists of ecosystems" within this codebase remain up to date, including:
docs/schema.md
validation/schema.json
(both the pattern and the enum being introduced in feat: create dedicated ecosystem name enum with all ecosystems #296)To make it a bit easier, I've introduced a top-level
ecosystems.json
which is a map of defined ecosystems and a markdown description, sorted alphabetically (which the script also ensures) - I felt this was easier than trying to extract the list from markdown or another source, though it does mean double quotes need to be manually escaped.I went with JSON as it can be read without requiring an external dependency, though if we use Python 3.11 we could switch to
toml
instead as that ships withtomllib