materialsproject / api

New API client for the Materials Project
https://materialsproject.github.io/api/
Other
105 stars 34 forks source link

Pydantic 2 support #847

Closed munrojm closed 9 months ago

munrojm commented 9 months ago

This PR adds support for pydantic 2 update of the MP stack

codecov-commenter commented 9 months ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (ffd9713) 70.39% compared to head (0401931) 70.42%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #847 +/- ## ========================================== + Coverage 70.39% 70.42% +0.02% ========================================== Files 51 51 Lines 2483 2482 -1 ========================================== Hits 1748 1748 + Misses 735 734 -1 ``` | [Files](https://app.codecov.io/gh/materialsproject/api/pull/847?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=materialsproject) | Coverage Δ | | |---|---|---| | [mp\_api/client/core/client.py](https://app.codecov.io/gh/materialsproject/api/pull/847?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=materialsproject#diff-bXBfYXBpL2NsaWVudC9jb3JlL2NsaWVudC5weQ==) | `82.87% <100.00%> (ø)` | | | [mp\_api/client/core/settings.py](https://app.codecov.io/gh/materialsproject/api/pull/847?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=materialsproject#diff-bXBfYXBpL2NsaWVudC9jb3JlL3NldHRpbmdzLnB5) | `92.59% <100.00%> (+0.28%)` | :arrow_up: | | [mp\_api/client/mprester.py](https://app.codecov.io/gh/materialsproject/api/pull/847?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=materialsproject#diff-bXBfYXBpL2NsaWVudC9tcHJlc3Rlci5weQ==) | `65.81% <ø> (ø)` | | | [...pi/client/routes/materials/electronic\_structure.py](https://app.codecov.io/gh/materialsproject/api/pull/847?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=materialsproject#diff-bXBfYXBpL2NsaWVudC9yb3V0ZXMvbWF0ZXJpYWxzL2VsZWN0cm9uaWNfc3RydWN0dXJlLnB5) | `87.78% <100.00%> (ø)` | | | [mp\_api/client/core/utils.py](https://app.codecov.io/gh/materialsproject/api/pull/847?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=materialsproject#diff-bXBfYXBpL2NsaWVudC9jb3JlL3V0aWxzLnB5) | `62.26% <78.57%> (+0.44%)` | :arrow_up: |

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