domains / llm-infra / infiniflow/ragflow
Maintain dependency lockfiles
When changing dependency declarations in configuration files like `pyproject.toml`, treat group placement and lockfile updates as part of the change.
When changing dependency declarations in configuration files like pyproject.toml, treat group placement and lockfile updates as part of the change.
- Update/submit the lockfile whenever dependencies or version constraints are modified (e.g., commit the corresponding
uv.lock). - Preserve required dependency scope: if a dependency is needed by multiple groups (such as both
defaultandtest), keep it declared in each required group—don’t “move” it to another group just to reduce duplication.
Example (pattern):
[project.optional-dependencies]
# Keep in both groups if both are required
default = ["pycryptodomex==3.20.0"]
test = ["pycryptodomex==3.20.0", "websockets>=14.0"]
After editing, regenerate and commit the matching lockfile (e.g., uv.lock).