mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-23 11:54:39 +00:00
Update tutorial to match revised Ruff defaults (#8066)
## Summary We don't enable E501 by default, but `line-length` is a useful example for configuration, so we now set `--extend-select` in the tutorial with a note to that effect. I've also updated all the outputs to match the latest CLI behavior, and changed the example from `List` to `Sequence` because `List` now spits out two diagnostics (one for the import, one for the usage), which IMO is confusing for beginners.
This commit is contained in:
parent
b5d3caf033
commit
cdc5e2fb58
3 changed files with 54 additions and 54 deletions
|
@ -48,7 +48,6 @@ LINK_REWRITES: dict[str, str] = {
|
|||
),
|
||||
"https://docs.astral.sh/ruff/installation/": "installation.md",
|
||||
"https://docs.astral.sh/ruff/rules/": "rules.md",
|
||||
"https://docs.astral.sh/ruff/rules/#error-e": "rules.md#error-e",
|
||||
"https://docs.astral.sh/ruff/settings/": "settings.md",
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue