mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
Clarify that [tool.ruff] must be omitted for ruff.toml (#4732)
This commit is contained in:
parent
f47a517e79
commit
f9b3f10456
1 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,8 @@ If you're wondering how to configure Ruff, here are some **recommended guideline
|
|||
## Using `ruff.toml`
|
||||
|
||||
As an alternative to `pyproject.toml`, Ruff will also respect a `ruff.toml` (or `.ruff.toml`) file,
|
||||
which implements an equivalent schema (though the `[tool.ruff]` hierarchy can be omitted).
|
||||
which implements an equivalent schema (though in the `ruff.toml` and `.ruff.toml` versions, the
|
||||
`[tool.ruff]` header is omitted).
|
||||
|
||||
For example, the `pyproject.toml` described above would be represented via the following
|
||||
`ruff.toml` (or `.ruff.toml`):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue