pyproject.toml fix-only=True cannot be toggled per directory by using multiple pyproject.toml files and the extend setting. #15801
Labels
configuration
Related to settings and configuration
needs-decision
Awaiting a decision from a maintainer
Description
I am trying to enable
fix-only
for some directories and not for others, while runningruff check .
in the repo root directory.Ruff
fix-only
config option doesn't seem to use the 'closest' config file for each individual file.https://docs.astral.sh/ruff/configuration/#config-file-discovery
pyproject.toml
:foo/pyproject.toml
:foo/bar.py
:When running
ruff check from the root directory here, I expect it to use
fix-onlyfrom
foo/pyproject.tomlsince it's the closest config file to
foo/bar.py` but it doesn't.When running from the directory foo, the same command respects
fix-only
fromfoo/pyproject.toml
.The text was updated successfully, but these errors were encountered: