mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
[ty] Playground: Better default settings (#18316)
## Summary The playground default settings set the `division-by-zero` rule severity to `error`. This slightly confusing because `division-by-zero` is now disabled by default. I am assuming that we have a `rules` section in there to make it easier for users to customize those settings (in addition to what the JSON schema gives us). Here, I'm proposing a different default rule-set (`"undefined-reveal": "ignore"`) that I would personally find more helpful for the playground, since we're using it so frequently for MREs that often involve some `reveal_type` calls.
This commit is contained in:
parent
66b082ff71
commit
d51f6940fe
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ export const DEFAULT_SETTINGS = JSON.stringify(
|
|||
"python-version": "3.13",
|
||||
},
|
||||
rules: {
|
||||
"division-by-zero": "error",
|
||||
"undefined-reveal": "ignore",
|
||||
},
|
||||
},
|
||||
null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue