Back to all reviewers

Avoid unnecessary constraints

astral-sh/uv
Based on 2 comments
Toml

When specifying dependencies and version requirements in project configuration files, avoid adding unnecessary constraints that could limit future compatibility. Unless there's a specific known incompatibility issue:

Configurations Toml

Reviewer Prompt

When specifying dependencies and version requirements in project configuration files, avoid adding unnecessary constraints that could limit future compatibility. Unless there’s a specific known incompatibility issue:

  1. For Python packages in pyproject.toml, specify only the minimum required version rather than adding upper bounds:
# Preferred
requires-python = ">=3.11"

# Avoid unless necessary
requires-python = ">=3.11,<3.13"
  1. For library crates in Cargo.toml, be selective about dependencies and consider whether they should be regular or development dependencies. Follow team standards for dependency management:
# Consider whether dependencies belong in [dependencies] or [dev-dependencies]
# Some dependencies like 'anyhow' should typically be avoided in library crates

This practice ensures your configurations remain flexible while still maintaining necessary compatibility requirements.

2
Comments Analyzed
Toml
Primary Language
Configurations
Category

Source Discussions