Clarify that [tool.ruff] must be omitted for ruff.toml (#4732)

This commit is contained in:
Charlie Marsh 2023-05-30 13:35:28 -04:00 committed by GitHub
parent f47a517e79
commit f9b3f10456
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`):