DM-45243: Migrate to Pydantic v2 and adopt ruff for linting and formatting #52
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.
Backwards-incompatible changes
Upgrade to Pydantic version 2. With this new Pydantic version, the custom Orcid and Ror types in the DocumentMetadata model are now implemented as functional validators with annotations.
Python version compatibility is now Python 3.10 and later.
Theme plugins are now required to implement a
run_post_build
method that post-processes the Lander site build. This method can be a no-op.New features
pkg_resources
.Other changes