mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:35:58 +00:00
Drop formatting specific rules from the default set (#7900)
Closes https://github.com/astral-sh/ruff/issues/7572 Drops formatting specific rules from the default rule set as they conflict with formatters in general (and in particular, conflict with our formatter). Most of these rules are in preview, but the removal of `line-too-long` and `mixed-spaces-and-tabs` is a change to the stable rule set. ## Example The following no longer raises `E501` ``` echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = 1" | ruff check - ```
This commit is contained in:
parent
c38617fa27
commit
40cad44f4a
8 changed files with 27 additions and 22 deletions
|
@ -593,11 +593,11 @@ pub struct LintOptions {
|
|||
/// `ignore`, respectively), more specific prefixes override less
|
||||
/// specific prefixes.
|
||||
#[option(
|
||||
default = r#"["E", "F"]"#,
|
||||
default = r#"["E4", "E7", "E9", "F"]"#,
|
||||
value_type = "list[RuleSelector]",
|
||||
example = r#"
|
||||
# On top of the defaults (`E`, `F`), enable flake8-bugbear (`B`) and flake8-quotes (`Q`).
|
||||
select = ["E", "F", "B", "Q"]
|
||||
# On top of the defaults (`E4`, E7`, `E9`, and `F`), enable flake8-bugbear (`B`) and flake8-quotes (`Q`).
|
||||
select = ["E4", "E7", "E9", "F", "B", "Q"]
|
||||
"#
|
||||
)]
|
||||
pub select: Option<Vec<RuleSelector>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue