Dose "closest" mean closest to the working directory or the target file? #21831
Closed
otakutyrant
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Ruff uses the configuration closest to the checked file, but its configuration discovery always starts from the current working directory. should work, because Ruff skips the Ruff skips subdirectories if the parent configuration excludes them, since traversing excluded directories like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The documentation says:
However, this result confused me:
The working directory is
a.ruff says that it use the parent configuration file
a/pyproject.tomlbut it excludesa/b/c.pybecause of the configuration filea/b/pyproject.toml.Beta Was this translation helpful? Give feedback.
All reactions