azavea / raster-vision

An open source library and framework for deep learning on satellite and aerial imagery.
https://docs.rastervision.io
Other
2.03k stars 380 forks source link

Migrate to pydantic v2 #2178

Closed AdeelH closed 2 weeks ago

AdeelH commented 3 weeks ago

Overview

This PR migrates the code from using pydantic v1 to v2 and updates the version requirement to >=2.

The main changes are:

Checklist

Notes

N/A

Testing Instructions

See updated unit tests.

Closes #2034

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 92.38095% with 16 lines in your changes missing coverage. Please review.

Project coverage is 90.15%. Comparing base (b74e30e) to head (be455b9).

Files Patch % Lines
...ner/rastervision/pytorch_learner/learner_config.py 86.56% 9 Missing :warning:
..._pipeline/rastervision/pipeline/pipeline_config.py 66.66% 4 Missing :warning:
...tervision_pipeline/rastervision/pipeline/config.py 89.47% 2 Missing :warning:
...n/core/rv_pipeline/semantic_segmentation_config.py 92.85% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2178 +/- ## ========================================== + Coverage 90.10% 90.15% +0.04% ========================================== Files 197 198 +1 Lines 9874 9879 +5 ========================================== + Hits 8897 8906 +9 + Misses 977 973 -4 ```

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