mirror of https://github.com/astral-sh/ruff
Clarify that [tool.ruff] must be omitted for ruff.toml (#4732)
This commit is contained in:
parent
f47a517e79
commit
f9b3f10456
|
|
@ -119,7 +119,8 @@ If you're wondering how to configure Ruff, here are some **recommended guideline
|
||||||
## Using `ruff.toml`
|
## Using `ruff.toml`
|
||||||
|
|
||||||
As an alternative to `pyproject.toml`, Ruff will also respect a `ruff.toml` (or `.ruff.toml`) file,
|
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
|
For example, the `pyproject.toml` described above would be represented via the following
|
||||||
`ruff.toml` (or `.ruff.toml`):
|
`ruff.toml` (or `.ruff.toml`):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue