Skip to content
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

fix: Add Pydantic v1 shim #882

Merged
merged 5 commits into from
Mar 5, 2024
Merged

fix: Add Pydantic v1 shim #882

merged 5 commits into from
Mar 5, 2024

Conversation

jesse-c
Copy link
Contributor

@jesse-c jesse-c commented Mar 4, 2024

This allows other dependencies to be upgraded, whilst Alibi Detect itself is migrated.

I've made some small QoL improvements around the DevEx.

@jesse-c jesse-c marked this pull request as ready for review March 4, 2024 14:27
Copy link

codecov bot commented Mar 4, 2024

Codecov Report

Attention: Patch coverage is 63.63636% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 81.96%. Comparing base (949d970) to head (410dd23).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #882      +/-   ##
==========================================
- Coverage   81.98%   81.96%   -0.03%     
==========================================
  Files         159      161       +2     
  Lines       10375    10383       +8     
==========================================
+ Hits         8506     8510       +4     
- Misses       1869     1873       +4     
Files Coverage Δ
alibi_detect/saving/schemas.py 97.96% <100.00%> (ø)
alibi_detect/saving/validators.py 90.38% <100.00%> (ø)
alibi_detect/version.py 100.00% <100.00%> (ø)
alibi_detect/utils/pydantic_v1/__init__.py 50.00% <50.00%> (ø)
alibi_detect/utils/pydantic_v1/fields/__init__.py 50.00% <50.00%> (ø)

This allows other dependencies to be upgraded, whilst Alibi Detect
itself is migrated.
Copy link
Collaborator

@mauicv mauicv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of points/question but otherwise LGTM!

@mauicv mauicv merged commit 30ddc92 into SeldonIO:master Mar 5, 2024
14 checks passed
@jesse-c jesse-c deleted the add-pydantic-v1-shim branch March 5, 2024 14:41
@jesse-c jesse-c self-assigned this Apr 17, 2024
jesse-c added a commit that referenced this pull request Apr 23, 2024
This is a follow-up to where the Pydantic v1 shim was added [1]. It's
inspired by Ray's approach [2].

This locks the version in the CI and I think that's okay since we
don't need to keep on updating them, as they're intended as smoke
tests.

[1] #882 (comment)
[2] ray-project/ray#40451
jesse-c added a commit that referenced this pull request Apr 24, 2024
This is a follow-up to where the Pydantic v1 shim was added [1]. It's
inspired by Ray's approach [2].

This locks the version in the CI and I think that's okay since we
don't need to keep on updating them, as they're intended as smoke
tests.

[1] #882 (comment)
[2] ray-project/ray#40451
jesse-c added a commit that referenced this pull request Apr 24, 2024
* test: Add Pydantic version to matrix variable

This is a follow-up to where the Pydantic v1 shim was added [1]. It's
inspired by Ray's approach [2].

This locks the version in the CI and I think that's okay since we
don't need to keep on updating them, as they're intended as smoke
tests.

[1] #882 (comment)
[2] ray-project/ray#40451

* build: Formatting
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.

3 participants