-
Notifications
You must be signed in to change notification settings - Fork 17
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
👌 IMPROVE: Add full typing, type checking and test coverage #180
Conversation
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 Chris! Looks good to me, let see if the others are happy before merging.
Codecov Report
@@ Coverage Diff @@
## develop #180 +/- ##
==========================================
Coverage ? 90.94%
==========================================
Files ? 22
Lines ? 2922
Branches ? 0
==========================================
Hits ? 2657
Misses ? 265
Partials ? 0 Continue to review full report at Codecov.
|
This is not covered by testing, so is likely to be a legitimate bug (potentially related to aiidateam/aiida-core#3888) |
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 @chrisjsewell, this really a helpful feature to have type hint. Just some minor request.
Out of curious, when we calling methods with the wrong type, what information will be given to the user? Is type hint only a hint or it really do the type check?
right this all works now, and requests have been addressed, so I will be merging very shortly; so speak now or for ever hold your peace 😉
type hinting is not used at all at runtime, it is effectively stripped from the code. Once this is released, I can add proper type hinting/checking to the aiida-core engine code, which I think will be very useful for users/plugin developers writing workflows etc |
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! all looks good to me.
Hey guys, as the title suggests!
I've also dropped python 3.5 support (as we have also done in aiida-core), added a tox testing configuration, added codecov reporting, and updated the documentation build/ci.
All the tests should pass, except I have left some
# TODO
s regarding some type clarifications and possible errors detected:over to you 😬