-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add jsonschema entrypoint to CLI #154
Conversation
- Overhauled argument parsing for CLI - Better error message for top-level CLI call - Automatic dispatch to different entrypoints in __main__.py file
Part of #151 |
ruff is pretty nice, super fast, and configurable with pyproject.toml! I think we should consider replacing pylint, pydocstyle, and flake8 with ruff, also in our CI.
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.
That's a very nice addition! I'm still debating whether it should be metasynth jsonschema
, or metasynth schema
, maybe the second also covers it? I didn't know myself about the sub parsers, but I think it would fit well in our project to use them!
synthesize accepts None now too!
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.
Looks good!!
# deduplicated list of plugins for schema | ||
plugins_avail = {entry.name for entry in entry_points(group="metasynth.distribution_provider")} | ||
|
||
if args.list: |
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 think for now it's okay to make "builtin" special, but I think if other packages are coming up, we might want to not make it special.
__main__.py
file