-
Notifications
You must be signed in to change notification settings - Fork 8
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
Enable mypy strict mode #115
Conversation
Hi @bruno-pannunzio : are you using a Mac? Do you have any idea why the https://github.com/phasorpy/phasorpy/actions/runs/10841795383/job/30086395612?pr=115#step:5:51 |
Since The decreased test coverage is due to an increase in lines of code for typing, which is not tested. |
Hi @cgohlke. I have no warnings running I think we can skip those tests for Mac as you already did. |
Hi @bruno-pannunzio : thanks for checking. I suspect it is a compiler optimization issue. GitHub Actions might have an older XCode version installed and it looks like this is fixed in the latest version. |
This seems like a good time to revisit the Repo-Review from the Scientific Python Library Development Guide.
@bruno-pannunzio : Any thoughts? |
Hi @cgohlke, sorry I couldn't answer before.
I think
I don't think we need tox or another task runner in our case, as you said, at least for now we are doing finde without it. Maybe we can revisit later if the community asks for it? Regarding
I am not aware of the benefits of using the suggested format for using unique names for "upload-artifact". |
They insert Ads.
I think they are referring to upload-artifact@v4, which requires unique names. Anyway, we already use unique upload names in the wheel builder (release-pypi.yml is outdated): phasorpy/.github/workflows/build_wheels.yml Lines 34 to 37 in 7d845ea
|
Excellent, I totally agree. I then believe that we are covered regarding the Scientific Python Library and have deliberately made the modifications we think are better, at least for now. But maybe it's a good idea to revisit this with some regularity to make sure everything and we are aligned. |
Good idea. I opened issue #118 as a reminder. |
Description
This PR enables stricter
mypy
checks and also tunes somepre-commit
andpytest
settings (follow-up #114):phasorpy._phasorpy
and some third party packages from mypy.ignore[no-any-return]
)._blend_darken
and_blend_lighten
functions.Release note
Summarize the changes in the code block below to be included in the
release notes:
Checklist