Numpy 2.0 + scipy + matplotlib pre-release workflow#89
Numpy 2.0 + scipy + matplotlib pre-release workflow#89mscheltienne merged 37 commits intoMIPLabCH:masterfrom
Conversation
for more information, see https://pre-commit.ci
|
@smoia I could use your input here. This import mechanism you have in the root Lines 13 to 18 in a3ff818 is causing deprecation warnings (or even If you really want to have all functions/members accessible from the Alternatively, I can fix the circular import by keeping the import at the root level ( |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #89 +/- ##
==========================================
+ Coverage 90.85% 90.90% +0.05%
==========================================
Files 14 15 +1
Lines 1236 1287 +51
Branches 0 310 +310
==========================================
+ Hits 1123 1170 +47
- Misses 113 117 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
@smoia If you agree with the proposed import changes above, this PR is good to go. |
|
@mscheltienne do you still need any action on the admin side? I see all checks are successful, but I don't know if you need something more? |
|
@smoia Looks like the codecov token is already setup, the uploads did not fail (CI would have been green anyway, |
|
Nice - can we change the default for failing to true so that we can catch issues if they happen? As for import, breaking API at this stage of development is fine, we just need to signal it with different labels. |
|
Actually, any reason conftest needs to move to root, beside emulation of other packages? |
yes, but in practice it's not a great idea and that's why the default is
To apply the configuration to all tests. For now, it's not that important since you have all tests in the same folder, but it's common to have: And in this case, if |
|
I see, makes sense! I'll have a look this weekend at all the changes! Thank you Mathieu! |
smoia
left a comment
There was a problem hiding this comment.
Feels like much more/slightly different than what described in the title , but thank you for looking into all of this @mscheltienne !
Just a quick change that is more style than anything else.
Is it ready to merge or would you like to do more?
|
Good to merge, |
|
I'll merge as is and open a second PR to replace |
Closes #88
pytestto8.0and above.pytestintroduced backward incompatible changes especially in the handling of warnings throughpytest.warns.conftest.pyto the root of the repository, mimicking the structure from other scientific python project (numpy,scipy,mne, ...)pytestto turn warnings into errors, and add structure inconftest.pyto ignore warnings (example here in MNE: https://github.com/mne-tools/mne-python/blob/90067893e330c1941c055be22bc5f442ad320ec3/mne/conftest.py#L129-L210)numpy 2.0and its numerous API/ABI breaks.compatworkflow on github actionsreadfp(since python 3.2..) fromconfigparserloader.find_modulenp.NINFandnp.trapzcodecovconfigurationChange Type
bugfix(+0.0.1)minor(+0.1.0)major(+1.0.0)refactoring(no version update)test(no version update)infrastructure(no version update)documentation(no version update)other