materialsproject / maggma

Building blocks for scientific data pipelines
https://materialsproject.github.io/maggma/
Other
38 stars 32 forks source link

pre-commit updates and Numpy 2.0 support #971

Closed rkingsbury closed 5 months ago

rkingsbury commented 5 months ago

Summary

The recent release of numpy 2.0 caused one thing to break in the Open Data store (see failure in #965 ). This PR updates pyproject.toml and the pre-commit configuration to fix any numpy 2.0-incompatible code and applies fixes recommended by ruff.

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.

Project coverage is 88.76%. Comparing base (57fb676) to head (c450ad5). Report is 1 commits behind head on main.

Files Patch % Lines
src/maggma/stores/advanced_stores.py 0.00% 1 Missing :warning:
src/maggma/stores/open_data.py 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #971 +/- ## ========================================== - Coverage 88.77% 88.76% -0.01% ========================================== Files 46 46 Lines 3981 3979 -2 ========================================== - Hits 3534 3532 -2 Misses 447 447 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.