-
Notifications
You must be signed in to change notification settings - Fork 14
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
Enforce mypy
checks
#87
Labels
Comments
This was referenced May 13, 2024
This was referenced May 14, 2024
Once #94 is merged, there will just be a few left. Found 4 errors in 1 file (checked 7 source files) (click me)
|
🎉 This issue has been resolved in version 1.13.11 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The Python code in this project should be checked with
mypy
. It isn't currently checked by any static type-checker.Benefits of this work
Acceptance Criteria
mypy
is configured to run over this project's Python code viapre-commit
Approach
Keep as much configuration as possible in
pyproject.toml
, the rest inpre-commit
's config. e.g.https://github.com/rapidsai/cudf/blob/149253b2e9f3801fdcc88c17e31a25788fe6381a/pyproject.toml#L3
https://github.com/rapidsai/cudf/blob/149253b2e9f3801fdcc88c17e31a25788fe6381a/.pre-commit-config.yaml#L32
Notes
As of this writing, the latest version of
mypy
(v1.10)`, run like this in a Python 3.10 environment ...... yields the following
Found 26 errors in 2 files (checked 7 source files) (click me)
And another 25 or so if using
mypy --strict
.The text was updated successfully, but these errors were encountered: