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

minor formatting: dependency grouping not preserved if there's an empty line between #6727

Open
ChannyClaus opened this issue Aug 27, 2024 · 0 comments
Labels
projects Related to project management capabilities

Comments

@ChannyClaus
Copy link
Contributor

ChannyClaus commented Aug 27, 2024

$ uv --version
uv 0.3.5 (6c62d9fbf 2024-08-27)

starting with

$ cat pyproject.toml 
[project]
name = "uv-empty-space"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
    # first block
    "requests",

    # second block
    "pydantic",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

running uv add pandas yields the below:

$ cat pyproject.toml 
[project]
name = "uv-empty-space"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
    # first block
    "requests",
    # second block
    "pydantic",
    "pandas>=2.2.2",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

i wonder if the empty line between requests and pydantic should be preserved?

@zanieb zanieb added the projects Related to project management capabilities label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
projects Related to project management capabilities
Projects
None yet
Development

No branches or pull requests

2 participants