这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@kemingy
Copy link
Member

@kemingy kemingy commented Aug 27, 2025

No description provided.

Signed-off-by: Keming <kemingy94@gmail.com>
@kemingy kemingy requested a review from Copilot August 27, 2025 15:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses pydantic v1 and v2 compatibility issues by implementing lock files to guarantee consistent environments. The change ensures that tests can run reliably against both pydantic versions by using separate lock files for each version.

  • Introduces lock files (pylock.toml and pylock.legacy.toml) to pin dependencies for pydantic v1 and v2 environments
  • Updates test configuration to exclude only the necessary schema differences between pydantic versions
  • Modifies the test workflow to use the lock files for consistent dependency resolution

Reviewed Changes

Copilot reviewed 9 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/conftest.py Simplified exclusion list in snapshot fixture to only include FormFileUpload schema
tests/snapshots/*.json Updated snapshot files to reflect current schema generation with locked dependencies
requirements-legacy.txt Added constraint file to pin pydantic v1 for legacy testing
pyproject.toml Reformatted dependencies list for better readability
Makefile Updated test target to use lock files and added lock file generation commands

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Signed-off-by: Keming <kemingy94@gmail.com>
@kemingy kemingy merged commit c20f6c6 into 0b01001001:main Aug 27, 2025
7 checks passed
@kemingy kemingy deleted the uv_pylock branch August 27, 2025 15:46
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.

1 participant