From f707bf6cf899d51e19f31865fbfc6023e03b4e4d Mon Sep 17 00:00:00 2001 From: Brent Westbrook Date: Thu, 2 Oct 2025 09:14:20 -0400 Subject: [PATCH] update snapshots --- crates/ruff/tests/config.rs | 11 ++++++----- .../show_settings__display_default_settings.snap | 4 ++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/crates/ruff/tests/config.rs b/crates/ruff/tests/config.rs index 7ef338f68c..48dbd682b0 100644 --- a/crates/ruff/tests/config.rs +++ b/crates/ruff/tests/config.rs @@ -21,12 +21,13 @@ fn lint_select() { specific prefixes. `ignore` takes precedence over `select` if the same prefix appears in both. - Default value: ["E4", "E7", "E9", "F"] + Default value: ["E4", "E7", "E9", "F", "B012", "PYI057"] Type: list[RuleSelector] Example usage: ```toml - # 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"] + # On top of the defaults (`E4`, E7`, `E9`, `F`, `B012`, and `PYI057`), + # enable flake8-bugbear (`B`) and flake8-quotes (`Q`). + select = ["E4", "E7", "E9", "F", "PYI057", "B", "Q"] ``` ----- stderr ----- @@ -43,10 +44,10 @@ fn lint_select_json() { ----- stdout ----- { "doc": "A list of rule codes or prefixes to enable. Prefixes can specify exact\nrules (like `F841`), entire categories (like `F`), or anything in\nbetween.\n\nWhen breaking ties between enabled and disabled rules (via `select` and\n`ignore`, respectively), more specific prefixes override less\nspecific prefixes. `ignore` takes precedence over `select` if the\nsame prefix appears in both.", - "default": "[\"E4\", \"E7\", \"E9\", \"F\"]", + "default": "[\"E4\", \"E7\", \"E9\", \"F\", \"B012\", \"PYI057\"]", "value_type": "list[RuleSelector]", "scope": null, - "example": "# On top of the defaults (`E4`, E7`, `E9`, and `F`), enable flake8-bugbear (`B`) and flake8-quotes (`Q`).\nselect = [\"E4\", \"E7\", \"E9\", \"F\", \"B\", \"Q\"]", + "example": "# On top of the defaults (`E4`, E7`, `E9`, `F`, `B012`, and `PYI057`),\n# enable flake8-bugbear (`B`) and flake8-quotes (`Q`).\nselect = [\"E4\", \"E7\", \"E9\", \"F\", \"PYI057\", \"B\", \"Q\"]", "deprecated": null } diff --git a/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap b/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap index 28a6607816..35397dab7f 100644 --- a/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap +++ b/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap @@ -65,6 +65,8 @@ file_resolver.project_root = "/" linter.exclude = [] linter.project_root = "/" linter.rules.enabled = [ + jump-statement-in-finally (B012), + byte-string-usage (PYI057), multiple-imports-on-one-line (E401), module-import-not-at-top-of-file (E402), multiple-statements-on-one-line-colon (E701), @@ -126,6 +128,8 @@ linter.rules.enabled = [ raise-not-implemented (F901), ] linter.rules.should_fix = [ + jump-statement-in-finally (B012), + byte-string-usage (PYI057), multiple-imports-on-one-line (E401), module-import-not-at-top-of-file (E402), multiple-statements-on-one-line-colon (E701),