elementary
elementary copied to clipboard
feat: [NO-JIRA] - Bump Pydantic version from 1.X to 2.X
This PR aims to upgrade elementary to start using Pydantic 2.0
Changes done:
- Upgrade the Pydantic major version.
- Update
validatorforfield_validatordue to deprecation.
Hey @afranzi thank you for submitting this PR!
The code quality and tests are failing.
Could you please install the packages from the dev.requirements.txt After that run the pre-commit and the tests:
pre-commit installpre-commit run --all-files --verbosepytest
🙏
Hello, any update on this request? it would be good to support the new pydantic version as I believe companies are moving ahead with the Pydantic 2.X version.
Hi, closing this PR as I had merged a different solution supporting both pydantic 1 and 2, should be available in our next release 0.14.1