-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor into submodules #90
Conversation
Before this the `mypy_json_report` module was a single file. By using a `mypy_json_report` package we'll be able to split logic up into multiple files, and maintain the current namespace.
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.
You should change the entrypoint for the package so it points at the new location for the main
function:
mypy-json-report/pyproject.toml
Line 37 in 94a9aa0
mypy-json-report = "mypy_json_report:main" |
"Nothing is something!"
This is consistent with the name of the class.
This will make working with these types easier, and better allows for future expansion.
Previously, we composed our parsing objects in the same function as we executed the parsing logic. This change separates those concerns, and will make splitting up this file easier.
These tests were only concerned with the parse command, so this name is more fitting.
While these are not (currently) explicitly used, it's nice to have them here for reference.
3ec3a5c
to
0ef89af
Compare
Thanks @Tenzer. I think I've addressed your points now. |
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.
Thanks!
This is mostly just moving code around, but does add a "SUCCESS" return-code, and do a couple of renames.
I intend to add more commands (as a re-work of #18), and getting this out of the way will make that simpler.