-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ruff.toml doesn't work with [tool.ruff] hierarchy #4725
Comments
The documentation should be clearer on this point: |
People will still land here cause the preset is using it. https://github.com/astral-sh/ruff#configuration. |
I did this just now while working through the readme. |
I don't think we can put tabs in the README (unlike in the docs). I'll try to clarify it. |
Yeah that seems correct :/ github/markup#1552 (comment) |
## Summary See feedback in #4725 (comment). In the docs, we use a tabbed interface for express `ruff.toml` vs. `pyproject.toml`. Here, it might be clearer to default to `ruff.toml`, since it's more obviously _not_ `pyproject.toml`. But either way, this PR attempts to clarify that there's a difference.
The
ruff
documentation states the following:In particular, stating that the
[tool.ruff]
hierarchy can be omitted implies that it should be possible to use the hierarchy inruff.toml
.However, I do not find this to be the case. In particular, I've created the following
ruff.toml
:Then with Python 3.11 and
ruff
0.0.270 I tried running the commandruff check *
, and get the following error:If I change the name of
ruff.toml
topyproject.toml
, or remove the[ruff.toml]
heading, thenruff
runs without error.The text was updated successfully, but these errors were encountered: