Skip to content

Define Pydantic schema on Quantity#178

Draft
mattwthompson wants to merge 7 commits into
mainfrom
define-pydantic-schema
Draft

Define Pydantic schema on Quantity#178
mattwthompson wants to merge 7 commits into
mainfrom
define-pydantic-schema

Conversation

@mattwthompson
Copy link
Copy Markdown
Member

@mattwthompson mattwthompson commented May 26, 2026

Description

This is a possible solution for #177
and openforcefield/openff-interchange#1346 and arguably a better design from the ground-up than what we had in openff-models

Todos

  • Handle different inputs
  • Test different serialization pathways
    • Python
    • JSON
  • Test different de-serialization pathways
    • Python
    • JSON
  • Test unit/dimensionality edge cases?
  • Make Pydantic optional?

Status

  • Ready to go

@mattwthompson mattwthompson force-pushed the define-pydantic-schema branch 2 times, most recently from a819b49 to d09b154 Compare May 26, 2026 17:30
Fixes

Add Pydantic depedency to Python project metadata

Update lockfile
@mattwthompson mattwthompson force-pushed the define-pydantic-schema branch from a6b977c to 3b36116 Compare May 26, 2026 17:33
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 26, 2026

Codecov Report

❌ Patch coverage is 63.41463% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.82%. Comparing base (7645d00) to head (e7b209d).

Files with missing lines Patch % Lines
openff/units/units.py 63.41% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #178      +/-   ##
==========================================
- Coverage   89.83%   84.82%   -5.02%     
==========================================
  Files           6        6              
  Lines         187      224      +37     
==========================================
+ Hits          168      190      +22     
- Misses         19       34      +15     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants