-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF] Upgrade codebase to Pydantic>2 (#389)
* update extra fields config, regex validation * replace conlist with List and custom AfterValidator * add type annotation to all schemaKey fields - now required to prevent error: pydantic.errors.PydanticUserError: Field 'schemaKey' defined on a base class was overridden by a non-annotated attribute. All field definitions, including overrides, require a type annotation. * use pydantic.RootModel instead of deprecated __root__ * update pydantic model method names * update generate_context to better accommodate changes to Pydantic internals * update URL type annots and notes re: deprecation of str inheriting * remove example portal URL missing TLD - pydantic v2 HttpUrl no longer requires it * shorten test name * update dependencies including pydantic>2 * replace deprecated DataFrame.applymap call * require python>=3.10 for package and test 3.11 * add python versions badge * add README note about pip-compile's Python version awareness * test validate_unique_list() in pydantic model instance * remove seemingly unnecessary Optional type hint * raise explicit exception for non-unique missing value list --------- Co-authored-by: Sebastian Urchs <surchs@users.noreply.github.com>
- Loading branch information
Showing
11 changed files
with
254 additions
and
140 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.