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

build(all): bump pydantic and linting packages #2331

Merged
merged 4 commits into from
Feb 6, 2025

Conversation

TheoPascoli
Copy link
Contributor

Upgrade pydantic to 2.9 because it introduces performances improvement. I pushed it to 2.10 because it does not contain breaking changes.
I also upgraded mypy, black and isort because why not

@TheoPascoli TheoPascoli changed the title Feat/upgrade pydantic and other feat(all): upgrade pydantic and other Feb 6, 2025
permissions=PermissionInfo(owner=owner.impersonator)
if owner
else PermissionInfo(public_mode=PublicMode.READ),
permissions=(
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does your IDE change this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Black did it

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah okay

@@ -81,16 +81,19 @@ def test_init__invalid_storage_id(self, recent_study: FileStudy, command_context
storage_id="?%$$", # bad name
study_version=STUDY_VERSION_8_8,
)
assert ctx.value.errors() == [
expected_error = [
Copy link
Contributor

Choose a reason for hiding this comment

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

Couldn't you just change the url to put 2.10 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can, I feel like it is just postponing the problem. If we need the URL in the error message, I can indeed just change the url

Copy link
Contributor

Choose a reason for hiding this comment

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

Indeed it's postponing for the next time we're gonna bump the lib but I think it's a small issue and it makes the test clearer IMO

@MartinBelthle MartinBelthle changed the title feat(all): upgrade pydantic and other build: bumpy pydantic and linting packages Feb 6, 2025
@MartinBelthle MartinBelthle changed the title build: bumpy pydantic and linting packages build: bump pydantic and linting packages Feb 6, 2025
@MartinBelthle MartinBelthle changed the title build: bump pydantic and linting packages build(all) : bump pydantic and linting packages Feb 6, 2025
@MartinBelthle MartinBelthle changed the title build(all) : bump pydantic and linting packages build(all): bump pydantic and linting packages Feb 6, 2025
@MartinBelthle MartinBelthle self-requested a review February 6, 2025 09:07
MartinBelthle
MartinBelthle previously approved these changes Feb 6, 2025
@TheoPascoli TheoPascoli merged commit 3efcfff into dev Feb 6, 2025
14 checks passed
@TheoPascoli TheoPascoli deleted the feat/upgrade-pydantic-and-other branch February 6, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants