Skip to content

Dependency sorting issue in pyproject.toml #10738

@Kavan72

Description

@Kavan72

Related issues

Relates to #10076.

Setup

  • uv 0.5.21
  • Python 3.10
  • macOS Sequoia 15.2

pyproject.toml

[project]
name = "backend"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
    "aiohttp>=3.11.11",
    "alembic>=1.14.0",
    "asgi-correlation-id>=4.3.4",
    "asyncpg>=0.30.0",
    "celery>=5.4.0",
    "cryptography>=44.0.0",
    "email-validator>=2.2.0",
    "faker>=33.3.0",
    "fastapi-distributed-websocket>=0.2.0",
    "fastapi-pagination>=0.12.34",
    "fastapi[all]>=0.115.6",
    "gunicorn>=23.0.0",
    "loguru>=0.7.3",
    "pyjwt>=2.10.1",
    "pytest-order>=1.3.0",
    "pytest>=8.3.4",
    "sentry-sdk[fastapi]>=2.19.2",
    "sib-api-v3-sdk>=7.6.0",
    "sqlalchemy[asyncio]>=2.0.36",
    "sqlalchemy-utils>=0.41.2",
    "tomlkit>=0.13.2",
    "uvicorn>=0.34.0",
    "websockets>=14.1",
    "jsonschema>=4.23.0",
]

[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra"
testpaths = [
    "tests",
]

[tool.uv]
dev-dependencies = [
    "ruff>=0.8.6",
]

[tool.ruff]
line-length = 100

[tool.ruff.lint]
select = ["I", "N", "A", "UP", "F", "E", "T20"]

When I try to remove and re-add jsonschema, which is already present, it gets added to the end of the dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions