-
Notifications
You must be signed in to change notification settings - Fork 299
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
MyPy in CI [WIP] #378
MyPy in CI [WIP] #378
Conversation
Codecov Report
@@ Coverage Diff @@
## master #378 +/- ##
==========================================
- Coverage 95.50% 93.31% -2.19%
==========================================
Files 19 19
Lines 4805 4847 +42
Branches 0 483 +483
==========================================
- Hits 4589 4523 -66
+ Misses 216 210 -6
- Partials 0 114 +114
Continue to review full report at Codecov.
|
@jmwright could you take a look at the changes in geom? I like having type annotations in the code, but I'm curious what other people think. |
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.
@adam-urbanczyk Looks good, but I'm curious what prompted the interest in static typing. There is probably an issue somewhere that led to this, but I can't recall.
BTW: I'm also experimenting with generating stubs for OCP. |
Ok, +1 for merging this once the checks pass.
Sounds good. Is your work viewable anywhere, or are you just experimenting on your local machine? |
Not yet, though the modified tool to make them is pushed: https://github.com/CadQuery/pybind11-stubgen . There are still some fine points related to deploying them. |
@jmwright I added the OCP stubs here: https://github.com/CadQuery/OCP-stubs . It was necessary to make this thing work. I did manage to find one bug in the geom.py code that way, I think this will be very helpful in the long run. Do you want to take another look, or should I merge as is? |
I'm good with merging. |
OK, if this round passes (black was complaining) I'll merge |
Just running mypy over the codebase. There are no annotations yet.
EDIT:
I added some annotations in geom.