tox-dev / pyproject-fmt

MIT License
167 stars 27 forks source link

Repo root `tool.pyproject-fmt` not applying to sub-`pyproject.toml` #240

Closed jamesbraza closed 1 month ago

jamesbraza commented 1 month ago

With pyproject-fmt==2.1.4, in a pyproject.toml in my repo root, I configured the following:

[tool.pyproject-fmt]
indent = 4

However this setting does not propagate to pyproject.toml in subfolders of the repo root. For example, a TOML list in subfolder/pyproject.toml is getting 2-space indents.

The request here is to have settings configured the root folder's pyproject.toml apply to subfolders.

gaborbernat commented 1 month ago

There is no inheritance of the configuration. Every file has the configuration applied only for itself.