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

Two spaces for indentation level of pyproject.toml #1078

Open
my1e5 opened this issue May 13, 2024 · 0 comments · May be fixed by #1079
Open

Two spaces for indentation level of pyproject.toml #1078

my1e5 opened this issue May 13, 2024 · 0 comments · May be fixed by #1079

Comments

@my1e5
Copy link
Contributor

my1e5 commented May 13, 2024

Currently rye uses 4 spaces for indentation levels when working with pyproject.toml.

While it is not explicitly stated, the examples in the official TOML specification use two spaces for indentation levels.

See https://toml.io/en/v1.0.0#array
imageimage

Many popular TOML formatting tools also use 2 spaces for their default indentation value.

image

image

Would rye be open to setting two spaces as the default indentation? Or perhaps making it configurable?

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

Successfully merging a pull request may close this issue.

1 participant