-
Notifications
You must be signed in to change notification settings - Fork 58
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
Partially added Python type hints and enabled mypy in CI #521
Partially added Python type hints and enabled mypy in CI #521
Conversation
Excluded all plugins that are not yet type-hinted from mypy execution. Co-authored-by: Sigurd Pettersen <sigurd.pettersen@ceetronsolutions.com>
Conflict with webviz-config regarding type hints. Co-authored-by: Sigurd Pettersen <sigurd.pettersen@ceetronsolutions.com>
- Added type hints - Moved hex_to_rgba to _utils/colors - Pylint fixes - Pylint work-around for mypy related imports yielding cyclic-import errors Co-authored-by: Sigurd Pettersen <sigurd.pettersen@ceetronsolutions.com>
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.
Awesome work 🎉 Could not find any big things to comment on (minor comments only).
Line 18 in the GitHub workflow can perhaps be reactivated now (since it is a PR)? And we can generalize the workflow in a separate PR to also work without a PR.
@asnyv 's PR will fix webviz-config
, we do a release, and can then enable 93+94 as well.
🚀
Added newline to .pylintrc.
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.
Great work! LGTM
@rubenthoms @sigurdp Is CI (or local testing on your side) happy with this PR if we revert back to running |
Just tested running |
Same here. Ready to be taken in :) I'd wait until this is merged in before starting with the new PVT plot features in order to have the type hints included. |
…viz-config's type hints into account
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.
🎉
3d90d0a
to
ed44fa4
Compare
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.
Great work @rubenthoms and @sigurdp 🎉 Feel free to merge when 🟢
This closes #483. Probably requires a new issue addressing type hinting of the remaining files.