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

Default indentation of dependencies in pyproject.toml #5852

Open
my1e5 opened this issue Aug 7, 2024 · 1 comment
Open

Default indentation of dependencies in pyproject.toml #5852

my1e5 opened this issue Aug 7, 2024 · 1 comment

Comments

@my1e5
Copy link
Contributor

my1e5 commented Aug 7, 2024

While it is not explicitly stated, the PyPA guide to the pyproject.toml file uses two spaces for the default indentation of TOML arrays - see https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#dependencies-and-requirements. uv is currently using four spaces.

I know that uv is able to respect the existing indentation level in the pyproject.toml file (see #5009) which is nice.

Nevertheless, I wanted to pose this as an open question as to what the default setting should be.

(The same discussion from Rye - astral-sh/rye#1078)

@zanieb
Copy link
Member

zanieb commented Aug 7, 2024

I think it should be changed to two.

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

No branches or pull requests

2 participants