Skip to content

Unpin pydantic - #365

Merged
DominicOram merged 2 commits into
mainfrom
170_unpin_pydantic
Mar 14, 2024
Merged

DominicOram merged 2 commits into
mainfrom
170_unpin_pydantic

Conversation

@d-perl

@d-perl d-perl commented Mar 7, 2024

Copy link
Copy Markdown
Contributor

Fixes #170

Makes dodal compatible with both pydantic 1&2.

Instructions to reviewer on how to test:

  1. Clone a new dodal repo and make a new .venv, run: pip install -e .[dev]
  2. Run tests and see they pass on pydantic 1.10
  3. run pip install --upgrade pydantic, to force installing 2.6
  4. see tests still pass

Checks for reviewer

  • Would the PR title make sense to a scientist on a set of release notes
  • If a new device has been added does it follow the standards

@codecov

codecov Bot commented Mar 7, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.38%. Comparing base (d78371f) to head (ad83cdb).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #365      +/-   ##
==========================================
+ Coverage   93.33%   93.38%   +0.05%     
==========================================
  Files          89       89              
  Lines        3346     3342       -4     
==========================================
- Hits         3123     3121       -2     
+ Misses        223      221       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DominicOram DominicOram left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

@DominicOram
DominicOram merged commit b3eea5c into main Mar 14, 2024
@DominicOram
DominicOram deleted the 170_unpin_pydantic branch March 14, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move to pydantic version 2

2 participants