-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fix NumPy deprecations and enforce CI failure on warnings #10283
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
Conversation
Signed-off-by: Emmanuel Ferdman <[email protected]>
akihironitta
left a comment
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, this is great! Could we also fail the CI when there's DeprecationWarning raised from our tests by listing the warning here?
pytorch_geometric/pyproject.toml
Line 194 in 272a844
| filterwarnings = [ |
|
It'd be good to update the changelog as well. |
Signed-off-by: Emmanuel Ferdman <[email protected]>
|
@akihironitta sure, added all 😄 |
|
Sorry about the delay. Thanks, I'll check during the weekend :) |
…geometric into emmanuel-ferdman/master
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #10283 +/- ##
==========================================
- Coverage 86.11% 85.58% -0.53%
==========================================
Files 496 498 +2
Lines 33655 34146 +491
==========================================
+ Hits 28981 29223 +242
- Misses 4674 4923 +249 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…0283) Co-authored-by: Rishi Puri <[email protected]> Co-authored-by: Akihiro Nitta <[email protected]>
PR Summary
This small PR resolves deprecation warnings caused by the use of
numpy.in1d:Please note that
in1dis deprecated from NumPy 1.19.0 and removed in 2.0.0.isinavailable since Python 1.13.0.