rye
rye copied to clipboard
Two spaces for indentation level of pyproject.toml
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
Many popular TOML formatting tools also use 2 spaces for their default indentation value.
- Even Better TOML - Most popular TOML VSCode Extension which uses https://github.com/tamasfe/taplo (see Formatter Options)
-
pretty-format-toml
Pre-commit hook (see defaults)
Would rye
be open to setting two spaces as the default indentation? Or perhaps making it configurable?
I'm open to it but I'm not sure what the pyproject.toml
recommendations are.
I don't see a specific recommendation, but they do use two spaces in the docs https://packaging.python.org/en/latest/guides/writing-pyproject-toml/