-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to Pydantic v2 #567
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…g., use 'schema' instead of '_schema'.
…tic.datetime_parse'
for population
Also, as per the pydantic documentation, @field_validator cannot be applied to an instance method and can only be applied to a class method. That's why changing the first argument of remove_unnecessary & cleanup_dft from self to cls
we are now down to 10 failed, 125 passed, 2 skipped, 31 warnings
Changing the assertion criterion from approx(-10.8454, rel=1e-4) to approx(-10.8, abs=0.2)
Fix failing tests from Pydantic v2 migration
skip validate charge test
refactor VaspInputGenerator.get_nelect() rename single-latter var
…nexpected keyword argument 'whichbonds'
this fixes the test errors!
fixing pydantic v2 test errors
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #567 +/- ##
==========================================
- Coverage 75.59% 75.36% -0.23%
==========================================
Files 77 77
Lines 6674 6677 +3
Branches 986 986
==========================================
- Hits 5045 5032 -13
- Misses 1323 1340 +17
+ Partials 306 305 -1
|
Closed
janosh
added
dependencies
Pull requests that update a dependency file
ecosystem
Issues concerning the larger MP ecosystem
pkg
Package health and distribution related stuff
labels
Oct 14, 2023
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
dependencies
Pull requests that update a dependency file
ecosystem
Issues concerning the larger MP ecosystem
enhancement
Improvements to existing features
pkg
Package health and distribution related stuff
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Final step in the MP ecosystem migration to
pydantic
v2! 🎉