diff --git a/crates/red_knot_python_semantic/src/module_resolver/typeshed.rs b/crates/red_knot_python_semantic/src/module_resolver/typeshed.rs index 2e94c95ce3..d3d5b04efb 100644 --- a/crates/red_knot_python_semantic/src/module_resolver/typeshed.rs +++ b/crates/red_knot_python_semantic/src/module_resolver/typeshed.rs @@ -459,11 +459,11 @@ foo: 3.8- # trailing comment "; let parsed_versions = TypeshedVersions::from_str(VERSIONS).unwrap(); assert_eq!(parsed_versions.len(), 3); - assert_snapshot!(parsed_versions.to_string(), @r###" + assert_snapshot!(parsed_versions.to_string(), @r" bar: 2.7-3.10 bar.baz: 3.1-3.9 foo: 3.8- - "### + " ); } diff --git a/crates/ruff/src/snapshots/ruff__version__tests__version_formatting.snap b/crates/ruff/src/snapshots/ruff__version__tests__version_formatting.snap index 501be194f8..0009f4a09c 100644 --- a/crates/ruff/src/snapshots/ruff__version__tests__version_formatting.snap +++ b/crates/ruff/src/snapshots/ruff__version__tests__version_formatting.snap @@ -1,5 +1,6 @@ --- source: crates/ruff/src/version.rs expression: version +snapshot_kind: text --- 0.0.0 diff --git a/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commit_info.snap b/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commit_info.snap index b661aab1a7..59aa8927d5 100644 --- a/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commit_info.snap +++ b/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commit_info.snap @@ -1,5 +1,6 @@ --- source: crates/ruff/src/version.rs expression: version +snapshot_kind: text --- 0.0.0 (53b0f5d92 2023-10-19) diff --git a/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commits_since_last_tag.snap b/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commits_since_last_tag.snap index 8b856e8cf2..e7055e7459 100644 --- a/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commits_since_last_tag.snap +++ b/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commits_since_last_tag.snap @@ -1,5 +1,6 @@ --- source: crates/ruff/src/version.rs expression: version +snapshot_kind: text --- 0.0.0+24 (53b0f5d92 2023-10-19) diff --git a/crates/ruff/src/snapshots/ruff__version__tests__version_serializable.snap b/crates/ruff/src/snapshots/ruff__version__tests__version_serializable.snap index afb49fad96..352b2da34b 100644 --- a/crates/ruff/src/snapshots/ruff__version__tests__version_serializable.snap +++ b/crates/ruff/src/snapshots/ruff__version__tests__version_serializable.snap @@ -1,6 +1,7 @@ --- source: crates/ruff/src/version.rs expression: version +snapshot_kind: text --- { "version": "0.0.0", diff --git a/crates/ruff/tests/config.rs b/crates/ruff/tests/config.rs index ff0bf59184..9447a9a643 100644 --- a/crates/ruff/tests/config.rs +++ b/crates/ruff/tests/config.rs @@ -8,7 +8,7 @@ const BIN_NAME: &str = "ruff"; #[test] fn lint_select() { assert_cmd_snapshot!( - Command::new(get_cargo_bin(BIN_NAME)).arg("config").arg("lint.select"), @r###" + Command::new(get_cargo_bin(BIN_NAME)).arg("config").arg("lint.select"), @r#" success: true exit_code: 0 ----- stdout ----- @@ -29,14 +29,14 @@ fn lint_select() { ``` ----- stderr ----- - "### + "# ); } #[test] fn lint_select_json() { assert_cmd_snapshot!( - Command::new(get_cargo_bin(BIN_NAME)).arg("config").arg("lint.select").arg("--output-format").arg("json"), @r###" + Command::new(get_cargo_bin(BIN_NAME)).arg("config").arg("lint.select").arg("--output-format").arg("json"), @r##" success: true exit_code: 0 ----- stdout ----- @@ -50,6 +50,6 @@ fn lint_select_json() { } ----- stderr ----- - "### + "## ); } diff --git a/crates/ruff/tests/format.rs b/crates/ruff/tests/format.rs index e756b03596..72dbcfbf8c 100644 --- a/crates/ruff/tests/format.rs +++ b/crates/ruff/tests/format.rs @@ -30,7 +30,7 @@ if condition: print('Hy "Micha"') # Should not change quotes -"#), @r###" +"#), @r#" success: true exit_code: 0 ----- stdout ----- @@ -45,7 +45,7 @@ if condition: print('Hy "Micha"') # Should not change quotes ----- stderr ----- - "###); + "#); } #[test] @@ -65,7 +65,7 @@ bar = "needs formatting" )?; assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) - .args(["format", "--isolated", "--no-cache", "--check"]).current_dir(tempdir.path()), @r###" + .args(["format", "--isolated", "--no-cache", "--check"]).current_dir(tempdir.path()), @r" success: false exit_code: 1 ----- stdout ----- @@ -74,7 +74,7 @@ bar = "needs formatting" 2 files would be reformatted ----- stderr ----- - "###); + "); Ok(()) } @@ -84,7 +84,7 @@ fn format_warn_stdin_filename_with_files() { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(["format", "--isolated", "--stdin-filename", "foo.py"]) .arg("foo.py") - .pass_stdin("foo = 1"), @r###" + .pass_stdin("foo = 1"), @r" success: true exit_code: 0 ----- stdout ----- @@ -92,13 +92,13 @@ fn format_warn_stdin_filename_with_files() { ----- stderr ----- warning: Ignoring file foo.py in favor of standard input. - "###); + "); } #[test] fn nonexistent_config_file() { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) - .args(["format", "--config", "foo.toml", "."]), @r###" + .args(["format", "--config", "foo.toml", "."]), @r" success: false exit_code: 2 ----- stdout ----- @@ -114,13 +114,13 @@ fn nonexistent_config_file() { The path `foo.toml` does not point to a configuration file For more information, try '--help'. - "###); + "); } #[test] fn config_override_rejected_if_invalid_toml() { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) - .args(["format", "--config", "foo = bar", "."]), @r###" + .args(["format", "--config", "foo = bar", "."]), @r#" success: false exit_code: 2 ----- stdout ----- @@ -142,7 +142,7 @@ fn config_override_rejected_if_invalid_toml() { expected `"`, `'` For more information, try '--help'. - "###); + "#); } #[test] @@ -161,19 +161,18 @@ fn too_many_config_files() -> Result<()> { .arg(&ruff_dot_toml) .arg("--config") .arg(&ruff2_dot_toml) - .arg("."), @r###" - success: false - exit_code: 2 - ----- stdout ----- + .arg("."), @r" + success: false + exit_code: 2 + ----- stdout ----- - ----- stderr ----- - ruff failed - Cause: You cannot specify more than one configuration file on the command line. + ----- stderr ----- + ruff failed + Cause: You cannot specify more than one configuration file on the command line. - tip: remove either `--config=[TMP]/ruff.toml` or `--config=[TMP]/ruff2.toml`. - For more information, try `--help`. - - "###); + tip: remove either `--config=[TMP]/ruff.toml` or `--config=[TMP]/ruff2.toml`. + For more information, try `--help`. + "); }); Ok(()) } @@ -191,7 +190,7 @@ fn config_file_and_isolated() -> Result<()> { .arg("--config") .arg(&ruff_dot_toml) .arg("--isolated") - .arg("."), @r###" + .arg("."), @r" success: false exit_code: 2 ----- stdout ----- @@ -203,8 +202,7 @@ fn config_file_and_isolated() -> Result<()> { tip: You cannot specify a configuration file and also specify `--isolated`, as `--isolated` causes ruff to ignore all configuration files. For more information, try `--help`. - - "###); + "); }); Ok(()) } @@ -226,7 +224,7 @@ def foo(): // This overrides the long line length set in the config file .args(["--config", "line-length=80"]) .arg("-") - .pass_stdin(fixture), @r###" + .pass_stdin(fixture), @r#" success: true exit_code: 0 ----- stdout ----- @@ -236,7 +234,7 @@ def foo(): ) ----- stderr ----- - "###); + "#); Ok(()) } @@ -259,7 +257,7 @@ def foo(): // ...but this overrides them both: .args(["--line-length", "100"]) .arg("-") - .pass_stdin(fixture), @r###" + .pass_stdin(fixture), @r#" success: true exit_code: 0 ----- stdout ----- @@ -267,7 +265,7 @@ def foo(): print("looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong string") ----- stderr ----- - "###); + "#); Ok(()) } @@ -302,7 +300,7 @@ if condition: print("Should change quotes") -"#), @r###" +"#), @r#" success: true exit_code: 0 ----- stdout ----- @@ -316,7 +314,7 @@ if condition: print('Should change quotes') ----- stderr ----- - "###); + "#); Ok(()) } @@ -357,7 +355,7 @@ def f(x): >>> foo, bar, quux = this_is_a_long_line(lion, hippo, lemur, bear) ''' pass -"), @r###" +"), @r#" success: true exit_code: 0 ----- stdout ----- @@ -403,7 +401,7 @@ def f(x): pass ----- stderr ----- - "###); + "#); Ok(()) } @@ -424,14 +422,14 @@ fn mixed_line_endings() -> Result<()> { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .current_dir(tempdir.path()) .args(["format", "--no-cache", "--diff", "--isolated"]) - .arg("."), @r###" + .arg("."), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- 2 files already formatted - "###); + "); Ok(()) } @@ -490,7 +488,7 @@ OTHER = "OTHER" // Explicitly pass test.py, should be formatted regardless of it being excluded by format.exclude .arg(test_path.file_name().unwrap()) // Format all other files in the directory, should respect the `exclude` and `format.exclude` options - .arg("."), @r###" + .arg("."), @r" success: false exit_code: 1 ----- stdout ----- @@ -499,7 +497,7 @@ OTHER = "OTHER" 2 files would be reformatted ----- stderr ----- - "###); + "); Ok(()) } @@ -517,14 +515,14 @@ from module import = assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .current_dir(tempdir.path()) .args(["format", "--no-cache", "--isolated", "--check"]) - .arg("main.py"), @r###" + .arg("main.py"), @r" success: false exit_code: 2 ----- stdout ----- ----- stderr ----- error: Failed to parse main.py:2:20: Expected an import name - "###); + "); Ok(()) } @@ -546,7 +544,7 @@ if __name__ == "__main__": assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .current_dir(tempdir.path()) .args(["format", "--no-cache", "--isolated", "--check"]) - .arg("main.py"), @r###" + .arg("main.py"), @r" success: false exit_code: 1 ----- stdout ----- @@ -554,31 +552,31 @@ if __name__ == "__main__": 1 file would be reformatted ----- stderr ----- - "###); + "); assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .current_dir(tempdir.path()) .args(["format", "--no-cache", "--isolated"]) - .arg("main.py"), @r###" + .arg("main.py"), @r" success: true exit_code: 0 ----- stdout ----- 1 file reformatted ----- stderr ----- - "###); + "); assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .current_dir(tempdir.path()) .args(["format", "--no-cache", "--isolated"]) - .arg("main.py"), @r###" + .arg("main.py"), @r" success: true exit_code: 0 ----- stdout ----- 1 file left unchanged ----- stderr ----- - "###); + "); Ok(()) } @@ -638,7 +636,7 @@ OTHER = "OTHER" // Explicitly pass test.py, should be respect the `format.exclude` when `--force-exclude` is present .arg(test_path.file_name().unwrap()) // Format all other files in the directory, should respect the `exclude` and `format.exclude` options - .arg("."), @r###" + .arg("."), @r" success: false exit_code: 1 ----- stdout ----- @@ -646,7 +644,7 @@ OTHER = "OTHER" 1 file would be reformatted ----- stderr ----- - "###); + "); Ok(()) } @@ -673,7 +671,7 @@ from test import say_hy if __name__ == '__main__': say_hy("dear Ruff contributor") -"#), @r###" +"#), @r#" success: true exit_code: 0 ----- stdout ----- @@ -686,7 +684,7 @@ if __name__ == '__main__': warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `ruff.toml`: - 'extend-select' -> 'lint.extend-select' - 'ignore' -> 'lint.ignore' - "###); + "#); Ok(()) } @@ -713,7 +711,7 @@ from test import say_hy if __name__ == '__main__': say_hy("dear Ruff contributor") -"#), @r###" +"#), @r#" success: true exit_code: 0 ----- stdout ----- @@ -727,7 +725,7 @@ if __name__ == '__main__': warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `ruff.toml`: - 'extend-select' -> 'lint.extend-select' - 'ignore' -> 'lint.ignore' - "###); + "#); Ok(()) } @@ -770,7 +768,7 @@ if condition: print("Should change quotes") -"#), @r###" +"#), @r#" success: true exit_code: 0 ----- stdout ----- @@ -786,7 +784,7 @@ if condition: ----- stderr ----- warning: The following rule may cause conflicts when used with the formatter: `COM812`. To avoid unexpected behavior, we recommend disabling this rule, either by removing it from the `select` or `extend-select` configuration, or adding it to the `ignore` configuration. - "###); + "#); Ok(()) } @@ -811,7 +809,7 @@ tab-size = 2 .pass_stdin(r" if True: pass - "), @r###" + "), @r" success: false exit_code: 2 ----- stdout ----- @@ -824,8 +822,7 @@ if True: 1 | | ^ unknown field `tab-size` - - "###); + "); }); Ok(()) } @@ -851,7 +848,7 @@ format = "json" .arg("-") .pass_stdin(r" import os - "), @r###" + "), @r#" success: false exit_code: 2 ----- stdout ----- @@ -864,8 +861,7 @@ format = "json" 2 | format = "json" | ^^^^^^ invalid type: string "json", expected struct FormatOptions - - "###); + "#); }); Ok(()) } @@ -912,7 +908,7 @@ def say_hy(name: str): assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(["format", "--no-cache", "--config"]) .arg(&ruff_toml) - .arg(test_path), @r###" + .arg(test_path), @r#" success: true exit_code: 0 ----- stdout ----- @@ -929,7 +925,7 @@ def say_hy(name: str): warning: The isort option `isort.lines-between-types` with a value greater than 1 is incompatible with the formatter. To avoid unexpected behavior, we recommend setting the option to one of: `1` or `0` (default). warning: The isort option `isort.force-wrap-aliases` is incompatible with the formatter `format.skip-magic-trailing-comma=true` option. To avoid unexpected behavior, we recommend either setting `isort.force-wrap-aliases=false` or `format.skip-magic-trailing-comma=false`. warning: The isort option `isort.split-on-trailing-comma` is incompatible with the formatter `format.skip-magic-trailing-comma=true` option. To avoid unexpected behavior, we recommend either setting `isort.split-on-trailing-comma=false` or `format.skip-magic-trailing-comma=false`. - "###); + "#); Ok(()) } @@ -970,7 +966,7 @@ indent-style = "tab" .arg("-") .pass_stdin(r#" def say_hy(name: str): - print(f"Hy {name}")"#), @r###" + print(f"Hy {name}")"#), @r#" success: true exit_code: 0 ----- stdout ----- @@ -988,7 +984,7 @@ def say_hy(name: str): warning: The isort option `isort.lines-between-types` with a value greater than 1 is incompatible with the formatter. To avoid unexpected behavior, we recommend setting the option to one of: `1` or `0` (default). warning: The isort option `isort.force-wrap-aliases` is incompatible with the formatter `format.skip-magic-trailing-comma=true` option. To avoid unexpected behavior, we recommend either setting `isort.force-wrap-aliases=false` or `format.skip-magic-trailing-comma=false`. warning: The isort option `isort.split-on-trailing-comma` is incompatible with the formatter `format.skip-magic-trailing-comma=true` option. To avoid unexpected behavior, we recommend either setting `isort.split-on-trailing-comma=false` or `format.skip-magic-trailing-comma=false`. - "###); + "#); Ok(()) } @@ -1032,14 +1028,14 @@ def say_hy(name: str): assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(["format", "--no-cache", "--config"]) .arg(&ruff_toml) - .arg(test_path), @r###" + .arg(test_path), @r" success: true exit_code: 0 ----- stdout ----- 1 file reformatted ----- stderr ----- - "###); + "); Ok(()) } @@ -1074,14 +1070,14 @@ def say_hy(name: str): assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(["format", "--no-cache", "--config"]) .arg(&ruff_toml) - .arg(test_path), @r###" + .arg(test_path), @r" success: true exit_code: 0 ----- stdout ----- 1 file reformatted ----- stderr ----- - "###); + "); Ok(()) } @@ -1109,7 +1105,7 @@ def say_hy(name: str): assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(["format", "--no-cache", "--config"]) .arg(&ruff_toml) - .arg(test_path), @r###" + .arg(test_path), @r" success: true exit_code: 0 ----- stdout ----- @@ -1119,7 +1115,7 @@ def say_hy(name: str): warning: `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible. Ignoring `one-blank-line-before-class`. warning: `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible. Ignoring `multi-line-summary-second-line`. warning: The following rules may cause conflicts when used with the formatter: `COM812`, `ISC001`. To avoid unexpected behavior, we recommend disabling these rules, either by removing them from the `select` or `extend-select` configuration, or adding them to the `ignore` configuration. - "###); + "); Ok(()) } @@ -1138,7 +1134,7 @@ fn test_diff() { ]}, { assert_cmd_snapshot!( Command::new(get_cargo_bin(BIN_NAME)).args(args).args(paths), - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1186,7 +1182,7 @@ fn test_diff() { ----- stderr ----- 2 files would be reformatted, 1 file already formatted - "###); + "); }); } @@ -1201,7 +1197,7 @@ fn test_diff_no_change() { ]}, { assert_cmd_snapshot!( Command::new(get_cargo_bin(BIN_NAME)).args(args).args(paths), - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1216,7 +1212,7 @@ fn test_diff_no_change() { ----- stderr ----- 1 file would be reformatted - "### + " ); }); } @@ -1235,7 +1231,7 @@ fn test_diff_stdin_unformatted() { let unformatted = fs::read(fixtures.join("unformatted.py")).unwrap(); assert_cmd_snapshot!( Command::new(get_cargo_bin(BIN_NAME)).args(args).pass_stdin(unformatted), - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1249,7 +1245,7 @@ fn test_diff_stdin_unformatted() { ----- stderr ----- - "###); + "); } #[test] @@ -1259,13 +1255,13 @@ fn test_diff_stdin_formatted() { let unformatted = fs::read(fixtures.join("formatted.py")).unwrap(); assert_cmd_snapshot!( Command::new(get_cargo_bin(BIN_NAME)).args(args).pass_stdin(unformatted), - @r###" + @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - "###); + "); } #[test] @@ -1275,7 +1271,7 @@ fn test_notebook_trailing_semicolon() { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(["format", "--isolated", "--stdin-filename", "test.ipynb"]) .arg("-") - .pass_stdin(unformatted), @r###" + .pass_stdin(unformatted), @r##" success: true exit_code: 0 ----- stdout ----- @@ -1694,7 +1690,7 @@ fn test_notebook_trailing_semicolon() { } ----- stderr ----- - "###); + "##); } #[test] @@ -1756,14 +1752,14 @@ include = ["*.ipy"] .arg("--no-cache") .args(["--config", &ruff_toml.file_name().unwrap().to_string_lossy()]) .args(["--extension", "ipy:ipynb"]) - .arg("."), @r###" + .arg("."), @r" success: true exit_code: 0 ----- stdout ----- 1 file reformatted ----- stderr ----- - "###); + "); Ok(()) } @@ -1776,7 +1772,7 @@ fn range_formatting() { def foo(arg1, arg2,): print("Shouldn't format this" ) -"#), @r###" +"#), @r#" success: true exit_code: 0 ----- stdout ----- @@ -1789,7 +1785,7 @@ def foo(arg1, arg2,): ----- stderr ----- - "###); + "#); } #[test] @@ -1799,7 +1795,7 @@ fn range_formatting_unicode() { .arg("-") .pass_stdin(r#" def foo(arg1="👋🏽" ): print("Format this" ) -"#), @r###" +"#), @r#" success: true exit_code: 0 ----- stdout ----- @@ -1808,7 +1804,7 @@ def foo(arg1="👋🏽" ): print("Format this" ) print("Format this") ----- stderr ----- - "###); + "#); } #[test] @@ -1839,7 +1835,7 @@ def file2(arg1, arg2,): assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(["format", "--isolated", "--range=1:8-1:15"]) .arg(file1) - .arg(file2), @r###" + .arg(file2), @r" success: false exit_code: 2 ----- stdout ----- @@ -1847,7 +1843,7 @@ def file2(arg1, arg2,): ----- stderr ----- ruff failed Cause: The `--range` option is only supported when formatting a single file but the specified paths resolve to 2 files. - "###); + "); Ok(()) } @@ -1861,7 +1857,7 @@ fn range_formatting_out_of_bounds() { def foo(arg1, arg2,): print("Shouldn't format this" ) -"#), @r###" +"#), @r#" success: true exit_code: 0 ----- stdout ----- @@ -1871,7 +1867,7 @@ def foo(arg1, arg2,): ----- stderr ----- - "###); + "#); } #[test] @@ -1883,7 +1879,7 @@ fn range_start_larger_than_end() { def foo(arg1, arg2,): print("Shouldn't format this" ) -"#), @r###" +"#), @r" success: false exit_code: 2 ----- stdout ----- @@ -1893,7 +1889,7 @@ def foo(arg1, arg2,): tip: Try switching start and end: '50:1-90:1' For more information, try '--help'. - "###); + "); } #[test] @@ -1905,7 +1901,7 @@ fn range_line_numbers_only() { def foo(arg1, arg2,): print("Shouldn't format this" ) -"#), @r###" +"#), @r#" success: true exit_code: 0 ----- stdout ----- @@ -1918,7 +1914,7 @@ def foo(arg1, arg2,): ----- stderr ----- - "###); + "#); } #[test] @@ -1930,7 +1926,7 @@ fn range_start_only() { def foo(arg1, arg2,): print("Should format this" ) -"#), @r###" +"#), @r#" success: true exit_code: 0 ----- stdout ----- @@ -1939,7 +1935,7 @@ def foo(arg1, arg2,): print("Should format this") ----- stderr ----- - "###); + "#); } #[test] @@ -1975,7 +1971,7 @@ fn range_missing_line() { def foo(arg1, arg2,): print("Should format this" ) -"#), @r###" +"#), @r" success: false exit_code: 2 ----- stdout ----- @@ -1985,7 +1981,7 @@ def foo(arg1, arg2,): tip: The format is 'line:column'. For more information, try '--help'. - "###); + "); } #[test] @@ -1997,7 +1993,7 @@ fn zero_line_number() { def foo(arg1, arg2,): print("Should format this" ) -"#), @r###" +"#), @r" success: false exit_code: 2 ----- stdout ----- @@ -2008,7 +2004,7 @@ def foo(arg1, arg2,): tip: Try 1:2 instead. For more information, try '--help'. - "###); + "); } #[test] @@ -2020,7 +2016,7 @@ fn column_and_line_zero() { def foo(arg1, arg2,): print("Should format this" ) -"#), @r###" +"#), @r" success: false exit_code: 2 ----- stdout ----- @@ -2031,7 +2027,7 @@ def foo(arg1, arg2,): tip: Try 1:1 instead. For more information, try '--help'. - "###); + "); } #[test] @@ -2075,12 +2071,12 @@ fn range_formatting_notebook() { "nbformat": 4, "nbformat_minor": 5 } -"#), @r###" +"#), @r" success: false exit_code: 2 ----- stdout ----- ----- stderr ----- error: Failed to format main.ipynb: Range formatting isn't supported for notebooks. - "###); + "); } diff --git a/crates/ruff/tests/integration_test.rs b/crates/ruff/tests/integration_test.rs index 99ed3a74a2..c37e2ce5bb 100644 --- a/crates/ruff/tests/integration_test.rs +++ b/crates/ruff/tests/integration_test.rs @@ -97,21 +97,21 @@ impl<'a> RuffCheck<'a> { fn stdin_success() { let mut cmd = RuffCheck::default().args([]).build(); assert_cmd_snapshot!(cmd - .pass_stdin(""), @r###" + .pass_stdin(""), @r" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); } #[test] fn stdin_error() { let mut cmd = RuffCheck::default().args([]).build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\n"), @r###" + .pass_stdin("import os\n"), @r" success: false exit_code: 1 ----- stdout ----- @@ -126,7 +126,7 @@ fn stdin_error() { [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); } #[test] @@ -135,7 +135,7 @@ fn stdin_filename() { .args(["--stdin-filename", "F401.py"]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\n"), @r###" + .pass_stdin("import os\n"), @r" success: false exit_code: 1 ----- stdout ----- @@ -150,7 +150,7 @@ fn stdin_filename() { [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); } #[test] @@ -170,7 +170,7 @@ import bar # unused import )?; assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) - .args(["check", "--isolated", "--no-cache", "--select", "F401"]).current_dir(tempdir.path()), @r###" + .args(["check", "--isolated", "--no-cache", "--select", "F401"]).current_dir(tempdir.path()), @r" success: false exit_code: 1 ----- stdout ----- @@ -192,7 +192,7 @@ import bar # unused import [*] 2 fixable with the `--fix` option. ----- stderr ----- - "###); + "); Ok(()) } @@ -204,7 +204,7 @@ fn check_warn_stdin_filename_with_files() { .filename("foo.py") .build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\n"), @r###" + .pass_stdin("import os\n"), @r" success: false exit_code: 1 ----- stdout ----- @@ -220,7 +220,7 @@ fn check_warn_stdin_filename_with_files() { ----- stderr ----- warning: Ignoring file foo.py in favor of standard input. - "###); + "); } /// Raise `TCH` errors in `.py` files ... @@ -230,7 +230,7 @@ fn stdin_source_type_py() { .args(["--stdin-filename", "TCH.py"]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\n"), @r###" + .pass_stdin("import os\n"), @r" success: false exit_code: 1 ----- stdout ----- @@ -245,7 +245,7 @@ fn stdin_source_type_py() { [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); } /// ... but not in `.pyi` files. @@ -255,14 +255,14 @@ fn stdin_source_type_pyi() { .args(["--stdin-filename", "TCH.pyi", "--select", "TCH"]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\n"), @r###" + .pass_stdin("import os\n"), @r" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); } #[cfg(unix)] @@ -288,7 +288,7 @@ fn stdin_json() { fn stdin_fix_py() { let mut cmd = RuffCheck::default().args(["--fix"]).build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\nimport sys\n\nprint(sys.version)\n"), @r###" + .pass_stdin("import os\nimport sys\n\nprint(sys.version)\n"), @r" success: true exit_code: 0 ----- stdout ----- @@ -298,7 +298,7 @@ fn stdin_fix_py() { ----- stderr ----- Found 1 error (1 fixed, 0 remaining). - "###); + "); } #[test] @@ -387,7 +387,7 @@ fn stdin_fix_jupyter() { }, "nbformat": 4, "nbformat_minor": 5 -}"#), @r###" +}"#), @r#" success: false exit_code: 1 ----- stdout ----- @@ -478,7 +478,7 @@ fn stdin_fix_jupyter() { | Found 3 errors (2 fixed, 1 remaining). - "###); + "#); } #[test] @@ -565,7 +565,7 @@ fn stdin_override_parser_ipynb() { }, "nbformat": 4, "nbformat_minor": 5 -}"#), @r###" +}"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -587,7 +587,7 @@ fn stdin_override_parser_ipynb() { [*] 2 fixable with the `--fix` option. ----- stderr ----- - "###); + "); } #[test] @@ -601,7 +601,7 @@ fn stdin_override_parser_py() { ]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\n"), @r###" + .pass_stdin("import os\n"), @r" success: false exit_code: 1 ----- stdout ----- @@ -616,14 +616,14 @@ fn stdin_override_parser_py() { [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); } #[test] fn stdin_fix_when_not_fixable_should_still_print_contents() { let mut cmd = RuffCheck::default().args(["--fix"]).build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\nimport sys\n\nif (1, 2):\n print(sys.version)\n"), @r###" + .pass_stdin("import os\nimport sys\n\nif (1, 2):\n print(sys.version)\n"), @r" success: false exit_code: 1 ----- stdout ----- @@ -643,14 +643,14 @@ fn stdin_fix_when_not_fixable_should_still_print_contents() { | Found 2 errors (1 fixed, 1 remaining). - "###); + "); } #[test] fn stdin_fix_when_no_issues_should_still_print_contents() { let mut cmd = RuffCheck::default().args(["--fix"]).build(); assert_cmd_snapshot!(cmd - .pass_stdin("import sys\n\nprint(sys.version)\n"), @r###" + .pass_stdin("import sys\n\nprint(sys.version)\n"), @r" success: true exit_code: 0 ----- stdout ----- @@ -660,7 +660,7 @@ fn stdin_fix_when_no_issues_should_still_print_contents() { ----- stderr ----- All checks passed! - "###); + "); } #[test] @@ -723,7 +723,7 @@ fn stdin_format_jupyter() { "nbformat": 4, "nbformat_minor": 5 } -"#), @r###" +"#), @r#" success: true exit_code: 0 ----- stdout ----- @@ -787,14 +787,14 @@ fn stdin_format_jupyter() { } ----- stderr ----- - "###); + "#); } #[test] fn stdin_parse_error() { let mut cmd = RuffCheck::default().build(); assert_cmd_snapshot!(cmd - .pass_stdin("from foo import\n"), @r###" + .pass_stdin("from foo import\n"), @r" success: false exit_code: 1 ----- stdout ----- @@ -807,14 +807,14 @@ fn stdin_parse_error() { Found 1 error. ----- stderr ----- - "###); + "); } #[test] fn stdin_multiple_parse_error() { let mut cmd = RuffCheck::default().build(); assert_cmd_snapshot!(cmd - .pass_stdin("from foo import\nbar =\n"), @r###" + .pass_stdin("from foo import\nbar =\n"), @r" success: false exit_code: 1 ----- stdout ----- @@ -835,7 +835,7 @@ fn stdin_multiple_parse_error() { Found 2 errors. ----- stderr ----- - "###); + "); } #[test] @@ -843,7 +843,7 @@ fn parse_error_not_included() { // Select any rule except for `E999`, syntax error should still be shown. let mut cmd = RuffCheck::default().args(["--select=I"]).build(); assert_cmd_snapshot!(cmd - .pass_stdin("foo =\n"), @r###" + .pass_stdin("foo =\n"), @r" success: false exit_code: 1 ----- stdout ----- @@ -856,14 +856,14 @@ fn parse_error_not_included() { Found 1 error. ----- stderr ----- - "###); + "); } #[test] fn deprecated_parse_error_selection() { let mut cmd = RuffCheck::default().args(["--select=E999"]).build(); assert_cmd_snapshot!(cmd - .pass_stdin("foo =\n"), @r###" + .pass_stdin("foo =\n"), @r" success: false exit_code: 1 ----- stdout ----- @@ -877,14 +877,14 @@ fn deprecated_parse_error_selection() { ----- stderr ----- warning: Rule `E999` is deprecated and will be removed in a future release. Syntax errors will always be shown regardless of whether this rule is selected or not. - "###); + "); } #[test] fn full_output_preview() { let mut cmd = RuffCheck::default().args(["--preview"]).build(); assert_cmd_snapshot!(cmd - .pass_stdin("l = 1"), @r###" + .pass_stdin("l = 1"), @r" success: false exit_code: 1 ----- stdout ----- @@ -897,7 +897,7 @@ fn full_output_preview() { Found 1 error. ----- stderr ----- - "###); + "); } #[test] @@ -912,7 +912,7 @@ preview = true ", )?; let mut cmd = RuffCheck::default().config(&pyproject_toml).build(); - assert_cmd_snapshot!(cmd.pass_stdin("l = 1"), @r###" + assert_cmd_snapshot!(cmd.pass_stdin("l = 1"), @r" success: false exit_code: 1 ----- stdout ----- @@ -925,7 +925,7 @@ preview = true Found 1 error. ----- stderr ----- - "###); + "); Ok(()) } @@ -933,7 +933,7 @@ preview = true fn full_output_format() { let mut cmd = RuffCheck::default().output_format("full").build(); assert_cmd_snapshot!(cmd - .pass_stdin("l = 1"), @r###" + .pass_stdin("l = 1"), @r" success: false exit_code: 1 ----- stdout ----- @@ -946,7 +946,7 @@ fn full_output_format() { Found 1 error. ----- stderr ----- - "###); + "); } #[test] @@ -956,7 +956,7 @@ fn rule_f401() { #[test] fn rule_invalid_rule_name() { - assert_cmd_snapshot!(ruff_cmd().args(["rule", "RUF404"]), @r###" + assert_cmd_snapshot!(ruff_cmd().args(["rule", "RUF404"]), @r" success: false exit_code: 2 ----- stdout ----- @@ -965,7 +965,7 @@ fn rule_invalid_rule_name() { error: invalid value 'RUF404' for '[RULE]' For more information, try '--help'. - "###); + "); } #[test] @@ -974,7 +974,7 @@ fn show_statistics() { .args(["--select", "F401", "--statistics"]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin("import sys\nimport os\n\nprint(os.getuid())\n"), @r###" + .pass_stdin("import sys\nimport os\n\nprint(os.getuid())\n"), @r" success: false exit_code: 1 ----- stdout ----- @@ -982,7 +982,7 @@ fn show_statistics() { [*] fixable with `ruff check --fix` ----- stderr ----- - "###); + "); } #[test] @@ -997,7 +997,7 @@ fn show_statistics_json() { ]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin("import sys\nimport os\n\nprint(os.getuid())\n"), @r###" + .pass_stdin("import sys\nimport os\n\nprint(os.getuid())\n"), @r#" success: false exit_code: 1 ----- stdout ----- @@ -1011,7 +1011,7 @@ fn show_statistics_json() { ] ----- stderr ----- - "###); + "#); } #[test] @@ -1020,7 +1020,7 @@ fn preview_enabled_prefix() { let mut cmd = RuffCheck::default() .args(["--select", "RUF9", "--output-format=concise", "--preview"]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: false exit_code: 1 ----- stdout ----- @@ -1034,7 +1034,7 @@ fn preview_enabled_prefix() { [*] 1 fixable with the `--fix` option (1 hidden fix can be enabled with the `--unsafe-fixes` option). ----- stderr ----- - "###); + "); } #[test] @@ -1042,7 +1042,7 @@ fn preview_enabled_all() { let mut cmd = RuffCheck::default() .args(["--select", "ALL", "--output-format=concise", "--preview"]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: false exit_code: 1 ----- stdout ----- @@ -1060,7 +1060,7 @@ fn preview_enabled_all() { ----- stderr ----- warning: `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible. Ignoring `one-blank-line-before-class`. warning: `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible. Ignoring `multi-line-summary-second-line`. - "###); + "); } #[test] @@ -1069,7 +1069,7 @@ fn preview_enabled_direct() { let mut cmd = RuffCheck::default() .args(["--select", "RUF911", "--output-format=concise", "--preview"]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: false exit_code: 1 ----- stdout ----- @@ -1077,7 +1077,7 @@ fn preview_enabled_direct() { Found 1 error. ----- stderr ----- - "###); + "); } #[test] @@ -1086,7 +1086,7 @@ fn preview_disabled_direct() { let mut cmd = RuffCheck::default() .args(["--select", "RUF911", "--output-format=concise"]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: true exit_code: 0 ----- stdout ----- @@ -1094,7 +1094,7 @@ fn preview_disabled_direct() { ----- stderr ----- warning: Selection `RUF911` has no effect because preview is not enabled. - "###); + "); } #[test] @@ -1103,7 +1103,7 @@ fn preview_disabled_prefix_empty() { let mut cmd = RuffCheck::default() .args(["--select", "RUF91", "--output-format=concise"]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: true exit_code: 0 ----- stdout ----- @@ -1111,7 +1111,7 @@ fn preview_disabled_prefix_empty() { ----- stderr ----- warning: Selection `RUF91` has no effect because preview is not enabled. - "###); + "); } #[test] @@ -1120,14 +1120,14 @@ fn preview_disabled_does_not_warn_for_empty_ignore_selections() { let mut cmd = RuffCheck::default() .args(["--ignore", "RUF9", "--output-format=concise"]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); } #[test] @@ -1136,14 +1136,14 @@ fn preview_disabled_does_not_warn_for_empty_fixable_selections() { let mut cmd = RuffCheck::default() .args(["--fixable", "RUF9", "--output-format=concise"]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); } #[test] @@ -1158,7 +1158,7 @@ fn preview_group_selector() { ]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin("I=42\n"), @r###" + .pass_stdin("I=42\n"), @r" success: false exit_code: 2 ----- stdout ----- @@ -1167,7 +1167,7 @@ fn preview_group_selector() { error: invalid value 'PREVIEW' for '--select ' For more information, try '--help'. - "###); + "); } #[test] @@ -1183,7 +1183,7 @@ fn preview_enabled_group_ignore() { "--output-format=concise", ]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: false exit_code: 1 ----- stdout ----- @@ -1197,14 +1197,14 @@ fn preview_enabled_group_ignore() { [*] 1 fixable with the `--fix` option (1 hidden fix can be enabled with the `--unsafe-fixes` option). ----- stderr ----- - "###); + "); } #[test] fn removed_direct() { // Selection of a removed rule should fail let mut cmd = RuffCheck::default().args(["--select", "RUF931"]).build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: false exit_code: 2 ----- stdout ----- @@ -1212,7 +1212,7 @@ fn removed_direct() { ----- stderr ----- ruff failed Cause: Rule `RUF931` was removed and cannot be selected. - "###); + "); } #[test] @@ -1222,7 +1222,7 @@ fn removed_direct_multiple() { let mut cmd = RuffCheck::default() .args(["--select", "RUF930", "--select", "RUF931"]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: false exit_code: 2 ----- stdout ----- @@ -1232,8 +1232,7 @@ fn removed_direct_multiple() { Cause: The following rules have been removed and cannot be selected: - RUF930 - RUF931 - - "###); + "); } #[test] @@ -1241,21 +1240,21 @@ fn removed_indirect() { // Selection _including_ a removed rule without matching should not fail // nor should the rule be used let mut cmd = RuffCheck::default().args(["--select", "RUF93"]).build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); } #[test] fn redirect_direct() { // Selection of a redirected rule directly should use the new rule and warn let mut cmd = RuffCheck::default().args(["--select", "RUF940"]).build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: false exit_code: 1 ----- stdout ----- @@ -1264,7 +1263,7 @@ fn redirect_direct() { ----- stderr ----- warning: `RUF940` has been remapped to `RUF950`. - "###); + "); } #[test] @@ -1272,14 +1271,14 @@ fn redirect_indirect() { // Selection _including_ a redirected rule without matching should not fail // nor should the rule be used let mut cmd = RuffCheck::default().args(["--select", "RUF94"]).build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); } #[test] @@ -1287,7 +1286,7 @@ fn redirect_prefix() { // Selection using a redirected prefix should switch to all rules in the // new prefix let mut cmd = RuffCheck::default().args(["--select", "RUF96"]).build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: false exit_code: 1 ----- stdout ----- @@ -1296,7 +1295,7 @@ fn redirect_prefix() { ----- stderr ----- warning: `RUF96` has been remapped to `RUF95`. - "###); + "); } #[test] @@ -1304,7 +1303,7 @@ fn deprecated_direct() { // Selection of a deprecated rule without preview enabled should still work // but a warning should be displayed let mut cmd = RuffCheck::default().args(["--select", "RUF920"]).build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: false exit_code: 1 ----- stdout ----- @@ -1313,7 +1312,7 @@ fn deprecated_direct() { ----- stderr ----- warning: Rule `RUF920` is deprecated and will be removed in a future release. - "###); + "); } #[test] @@ -1321,7 +1320,7 @@ fn deprecated_multiple_direct() { let mut cmd = RuffCheck::default() .args(["--select", "RUF920", "--select", "RUF921"]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: false exit_code: 1 ----- stdout ----- @@ -1332,7 +1331,7 @@ fn deprecated_multiple_direct() { ----- stderr ----- warning: Rule `RUF920` is deprecated and will be removed in a future release. warning: Rule `RUF921` is deprecated and will be removed in a future release. - "###); + "); } #[test] @@ -1340,7 +1339,7 @@ fn deprecated_indirect() { // `RUF92` includes deprecated rules but should not warn // since it is not a "direct" selection let mut cmd = RuffCheck::default().args(["--select", "RUF92"]).build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: false exit_code: 1 ----- stdout ----- @@ -1349,7 +1348,7 @@ fn deprecated_indirect() { Found 2 errors. ----- stderr ----- - "###); + "); } #[test] @@ -1358,7 +1357,7 @@ fn deprecated_direct_preview_enabled() { let mut cmd = RuffCheck::default() .args(["--select", "RUF920", "--preview"]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: false exit_code: 2 ----- stdout ----- @@ -1366,7 +1365,7 @@ fn deprecated_direct_preview_enabled() { ----- stderr ----- ruff failed Cause: Selection of deprecated rule `RUF920` is not allowed when preview is enabled. - "###); + "); } #[test] @@ -1375,14 +1374,14 @@ fn deprecated_indirect_preview_enabled() { let mut cmd = RuffCheck::default() .args(["--select", "RUF92", "--preview"]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); } #[test] @@ -1392,7 +1391,7 @@ fn deprecated_multiple_direct_preview_enabled() { let mut cmd = RuffCheck::default() .args(["--select", "RUF920", "--select", "RUF921", "--preview"]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @r" success: false exit_code: 2 ----- stdout ----- @@ -1402,8 +1401,7 @@ fn deprecated_multiple_direct_preview_enabled() { Cause: Selection of deprecated rules is not allowed when preview is enabled. Remove selection of: - RUF920 - RUF921 - - "###); + "); } /// An unreadable pyproject.toml in non-isolated mode causes ruff to hard-error trying to build up @@ -1519,7 +1517,7 @@ fn check_hints_hidden_unsafe_fixes() { .args(["--select", "RUF901,RUF902"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1529,7 +1527,7 @@ fn check_hints_hidden_unsafe_fixes() { [*] 1 fixable with the `--fix` option (1 hidden fix can be enabled with the `--unsafe-fixes` option). ----- stderr ----- - "###); + "); } #[test] @@ -1537,7 +1535,7 @@ fn check_hints_hidden_unsafe_fixes_with_no_safe_fixes() { let mut cmd = RuffCheck::default().args(["--select", "RUF902"]).build(); assert_cmd_snapshot!(cmd .pass_stdin("x = {'a': 1, 'a': 1}\n"), - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1546,7 +1544,7 @@ fn check_hints_hidden_unsafe_fixes_with_no_safe_fixes() { No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option). ----- stderr ----- - "###); + "); } #[test] @@ -1555,7 +1553,7 @@ fn check_no_hint_for_hidden_unsafe_fixes_when_disabled() { .args(["--select", "RUF901,RUF902", "--no-unsafe-fixes"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1565,7 +1563,7 @@ fn check_no_hint_for_hidden_unsafe_fixes_when_disabled() { [*] 1 fixable with the --fix option. ----- stderr ----- - "###); + "); } #[test] @@ -1575,7 +1573,7 @@ fn check_no_hint_for_hidden_unsafe_fixes_with_no_safe_fixes_when_disabled() { .build(); assert_cmd_snapshot!(cmd .pass_stdin("x = {'a': 1, 'a': 1}\n"), - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1583,7 +1581,7 @@ fn check_no_hint_for_hidden_unsafe_fixes_with_no_safe_fixes_when_disabled() { Found 1 error. ----- stderr ----- - "###); + "); } #[test] @@ -1592,7 +1590,7 @@ fn check_shows_unsafe_fixes_with_opt_in() { .args(["--select", "RUF901,RUF902", "--unsafe-fixes"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1602,7 +1600,7 @@ fn check_shows_unsafe_fixes_with_opt_in() { [*] 2 fixable with the --fix option. ----- stderr ----- - "###); + "); } #[test] @@ -1611,7 +1609,7 @@ fn fix_applies_safe_fixes_by_default() { .args(["--select", "RUF901,RUF902", "--fix"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1621,7 +1619,7 @@ fn fix_applies_safe_fixes_by_default() { -:1:1: RUF902 Hey this is a stable test rule with an unsafe fix. Found 2 errors (1 fixed, 1 remaining). No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option). - "###); + "); } #[test] @@ -1630,7 +1628,7 @@ fn fix_applies_unsafe_fixes_with_opt_in() { .args(["--select", "RUF901,RUF902", "--fix", "--unsafe-fixes"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: true exit_code: 0 ----- stdout ----- @@ -1639,7 +1637,7 @@ fn fix_applies_unsafe_fixes_with_opt_in() { ----- stderr ----- Found 2 errors (2 fixed, 0 remaining). - "###); + "); } #[test] @@ -1649,7 +1647,7 @@ fn fix_does_not_apply_display_only_fixes() { .build(); assert_cmd_snapshot!(cmd .pass_stdin("def add_to_list(item, some_list=[]): ..."), - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1657,7 +1655,7 @@ fn fix_does_not_apply_display_only_fixes() { ----- stderr ----- -:1:1: RUF903 Hey this is a stable test rule with a display only fix. Found 1 error. - "###); + "); } #[test] @@ -1667,7 +1665,7 @@ fn fix_does_not_apply_display_only_fixes_with_unsafe_fixes_enabled() { .build(); assert_cmd_snapshot!(cmd .pass_stdin("def add_to_list(item, some_list=[]): ..."), - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1675,7 +1673,7 @@ fn fix_does_not_apply_display_only_fixes_with_unsafe_fixes_enabled() { ----- stderr ----- -:1:1: RUF903 Hey this is a stable test rule with a display only fix. Found 1 error. - "###); + "); } #[test] @@ -1684,7 +1682,7 @@ fn fix_only_unsafe_fixes_available() { .args(["--select", "RUF902", "--fix"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1693,7 +1691,7 @@ fn fix_only_unsafe_fixes_available() { -:1:1: RUF902 Hey this is a stable test rule with an unsafe fix. Found 1 error. No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option). - "###); + "); } #[test] @@ -1702,7 +1700,7 @@ fn fix_only_flag_applies_safe_fixes_by_default() { .args(["--select", "RUF901,RUF902", "--fix-only"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: true exit_code: 0 ----- stdout ----- @@ -1710,7 +1708,7 @@ fn fix_only_flag_applies_safe_fixes_by_default() { ----- stderr ----- Fixed 1 error (1 additional fix available with `--unsafe-fixes`). - "###); + "); } #[test] @@ -1719,7 +1717,7 @@ fn fix_only_flag_applies_unsafe_fixes_with_opt_in() { .args(["--select", "RUF901,RUF902", "--fix-only", "--unsafe-fixes"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: true exit_code: 0 ----- stdout ----- @@ -1728,7 +1726,7 @@ fn fix_only_flag_applies_unsafe_fixes_with_opt_in() { ----- stderr ----- Fixed 2 errors. - "###); + "); } #[test] @@ -1737,7 +1735,7 @@ fn diff_shows_safe_fixes_by_default() { .args(["--select", "RUF901,RUF902", "--diff"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1747,7 +1745,7 @@ fn diff_shows_safe_fixes_by_default() { ----- stderr ----- Would fix 1 error (1 additional fix available with `--unsafe-fixes`). - "### + " ); } @@ -1757,7 +1755,7 @@ fn diff_shows_unsafe_fixes_with_opt_in() { .args(["--select", "RUF901,RUF902", "--diff", "--unsafe-fixes"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1768,7 +1766,7 @@ fn diff_shows_unsafe_fixes_with_opt_in() { ----- stderr ----- Would fix 2 errors. - "### + " ); } @@ -1779,13 +1777,13 @@ fn diff_does_not_show_display_only_fixes_with_unsafe_fixes_enabled() { .build(); assert_cmd_snapshot!(cmd .pass_stdin("def add_to_list(item, some_list=[]): ..."), - @r###" + @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - "###); + "); } #[test] @@ -1794,14 +1792,14 @@ fn diff_only_unsafe_fixes_available() { .args(["--select", "RUF902", "--diff"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- No errors would be fixed (1 fix available with `--unsafe-fixes`). - "### + " ); } @@ -1822,7 +1820,7 @@ extend-unsafe-fixes = ["RUF901"] .args(["--select", "RUF901,RUF902"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1832,7 +1830,7 @@ extend-unsafe-fixes = ["RUF901"] No fixes available (2 hidden fixes can be enabled with the `--unsafe-fixes` option). ----- stderr ----- - "###); + "); Ok(()) } @@ -1854,7 +1852,7 @@ extend-safe-fixes = ["RUF902"] .args(["--select", "RUF901,RUF902"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1864,7 +1862,7 @@ extend-safe-fixes = ["RUF902"] [*] 2 fixable with the `--fix` option. ----- stderr ----- - "###); + "); Ok(()) } @@ -1888,7 +1886,7 @@ extend-safe-fixes = ["RUF902"] .args(["--select", "RUF901,RUF902"]) .build(); assert_cmd_snapshot!(cmd, - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1898,7 +1896,7 @@ extend-safe-fixes = ["RUF902"] [*] 1 fixable with the `--fix` option (1 hidden fix can be enabled with the `--unsafe-fixes` option). ----- stderr ----- - "###); + "); Ok(()) } @@ -1924,7 +1922,7 @@ extend-safe-fixes = ["RUF9"] .build(); assert_cmd_snapshot!(cmd .pass_stdin("x = {'a': 1, 'a': 1}\nprint(('foo'))\nprint(str('foo'))\nisinstance(x, (int, str))\n"), - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -1939,7 +1937,7 @@ extend-safe-fixes = ["RUF9"] [*] 1 fixable with the `--fix` option (1 hidden fix can be enabled with the `--unsafe-fixes` option). ----- stderr ----- - "###); + "); Ok(()) } @@ -1975,14 +1973,14 @@ def log(x, base) -> float: .args(["--select", "D41"]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin(stdin), @r###" + .pass_stdin(stdin), @r" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "### + " ); // But if we select the exact code, we get an error @@ -1991,7 +1989,7 @@ def log(x, base) -> float: .args(["--select", "D417"]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin(stdin), @r###" + .pass_stdin(stdin), @r#" success: false exit_code: 1 ----- stdout ----- @@ -2005,7 +2003,7 @@ def log(x, base) -> float: Found 1 error. ----- stderr ----- - "### + "# ); Ok(()) } @@ -2027,7 +2025,7 @@ select = ["RUF017"] let mut cmd = RuffCheck::default().config(&ruff_toml).build(); assert_cmd_snapshot!(cmd .pass_stdin("x = [1, 2, 3]\ny = [4, 5, 6]\nsum([x, y], [])"), - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -2044,7 +2042,7 @@ select = ["RUF017"] No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option). ----- stderr ----- - "###); + "); Ok(()) } @@ -2067,7 +2065,7 @@ unfixable = ["RUF"] let mut cmd = RuffCheck::default().config(&ruff_toml).build(); assert_cmd_snapshot!(cmd .pass_stdin("x = [1, 2, 3]\ny = [4, 5, 6]\nsum([x, y], [])"), - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -2083,7 +2081,7 @@ unfixable = ["RUF"] Found 1 error. ----- stderr ----- - "###); + "); Ok(()) } diff --git a/crates/ruff/tests/lint.rs b/crates/ruff/tests/lint.rs index eb00486a9a..336e888eb6 100644 --- a/crates/ruff/tests/lint.rs +++ b/crates/ruff/tests/lint.rs @@ -42,7 +42,7 @@ inline-quotes = "single" .arg(&ruff_toml) .args(["--stdin-filename", "test.py"]) .arg("-") - .pass_stdin(r#"a = "abcba".strip("aba")"#), @r###" + .pass_stdin(r#"a = "abcba".strip("aba")"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -56,7 +56,7 @@ inline-quotes = "single" warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `[TMP]/ruff.toml`: - 'extend-select' -> 'lint.extend-select' - 'flake8-quotes' -> 'lint.flake8-quotes' - "###); + "); }); Ok(()) @@ -85,7 +85,7 @@ inline-quotes = "single" .arg("--config") .arg(&ruff_toml) .arg("-") - .pass_stdin(r#"a = "abcba".strip("aba")"#), @r###" + .pass_stdin(r#"a = "abcba".strip("aba")"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -96,7 +96,7 @@ inline-quotes = "single" [*] 2 fixable with the `--fix` option. ----- stderr ----- - "###); + "); }); Ok(()) @@ -125,7 +125,7 @@ inline-quotes = "single" .arg("--config") .arg(&ruff_toml) .arg("-") - .pass_stdin(r#"a = "abcba".strip("aba")"#), @r###" + .pass_stdin(r#"a = "abcba".strip("aba")"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -138,7 +138,7 @@ inline-quotes = "single" ----- stderr ----- warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `[TMP]/ruff.toml`: - 'extend-select' -> 'lint.extend-select' - "###); + "); }); Ok(()) @@ -171,7 +171,7 @@ inline-quotes = "single" .arg("--config") .arg(&ruff_toml) .arg("-") - .pass_stdin(r#"a = "abcba".strip("aba")"#), @r###" + .pass_stdin(r#"a = "abcba".strip("aba")"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -184,7 +184,7 @@ inline-quotes = "single" ----- stderr ----- warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `[TMP]/ruff.toml`: - 'flake8-quotes' -> 'lint.flake8-quotes' - "###); + "); }); Ok(()) @@ -252,7 +252,7 @@ OTHER = "OTHER" // Explicitly pass test.py, should be linted regardless of it being excluded by lint.exclude .arg(test_path.file_name().unwrap()) // Lint all other files in the directory, should respect the `exclude` and `lint.exclude` options - .arg("."), @r###" + .arg("."), @r" success: false exit_code: 1 ----- stdout ----- @@ -265,7 +265,7 @@ OTHER = "OTHER" ----- stderr ----- warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `ruff.toml`: - 'extend-select' -> 'lint.extend-select' - "###); + "); }); Ok(()) @@ -302,7 +302,7 @@ from test import say_hy if __name__ == "__main__": say_hy("dear Ruff contributor") -"#), @r###" +"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -314,7 +314,7 @@ if __name__ == "__main__": ----- stderr ----- warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `ruff.toml`: - 'extend-select' -> 'lint.extend-select' - "###); + "); }); Ok(()) @@ -349,7 +349,7 @@ max-line-length = 100 _ = "---------------------------------------------------------------------------亜亜亜亜亜亜" # longer than 100 _ = "---------------------------------------------------------------------------亜亜亜亜亜亜亜亜亜亜亜亜亜亜" -"#), @r###" +"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -360,7 +360,7 @@ _ = "--------------------------------------------------------------------------- warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `[TMP]/ruff.toml`: - 'select' -> 'lint.select' - 'pycodestyle' -> 'lint.pycodestyle' - "###); + "); }); Ok(()) @@ -397,7 +397,7 @@ from test import say_hy if __name__ == "__main__": say_hy("dear Ruff contributor") -"#), @r###" +"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -408,7 +408,7 @@ if __name__ == "__main__": ----- stderr ----- warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `ruff.toml`: - 'extend-select' -> 'lint.extend-select' - "###); + "); }); Ok(()) @@ -445,7 +445,7 @@ from test import say_hy if __name__ == "__main__": say_hy("dear Ruff contributor") -"#), @r###" +"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -456,7 +456,7 @@ if __name__ == "__main__": ----- stderr ----- warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `ruff.toml`: - 'extend-select' -> 'lint.extend-select' - "###); + "); }); Ok(()) @@ -493,7 +493,7 @@ ignore = ["D203", "D212"] assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .current_dir(sub_dir) .args(STDIN_BASE_OPTIONS) - , @r###" + , @r" success: true exit_code: 0 ----- stdout ----- @@ -501,7 +501,7 @@ ignore = ["D203", "D212"] ----- stderr ----- warning: No Python files found under the given path(s) - "###); + "); }); Ok(()) @@ -511,7 +511,7 @@ ignore = ["D203", "D212"] fn nonexistent_config_file() { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(STDIN_BASE_OPTIONS) - .args(["--config", "foo.toml", "."]), @r###" + .args(["--config", "foo.toml", "."]), @r" success: false exit_code: 2 ----- stdout ----- @@ -527,14 +527,14 @@ fn nonexistent_config_file() { The path `foo.toml` does not point to a configuration file For more information, try '--help'. - "###); + "); } #[test] fn config_override_rejected_if_invalid_toml() { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(STDIN_BASE_OPTIONS) - .args(["--config", "foo = bar", "."]), @r###" + .args(["--config", "foo = bar", "."]), @r#" success: false exit_code: 2 ----- stdout ----- @@ -556,7 +556,7 @@ fn config_override_rejected_if_invalid_toml() { expected `"`, `'` For more information, try '--help'. - "###); + "#); } #[test] @@ -575,19 +575,18 @@ fn too_many_config_files() -> Result<()> { .arg(&ruff_dot_toml) .arg("--config") .arg(&ruff2_dot_toml) - .arg("."), @r###" - success: false - exit_code: 2 - ----- stdout ----- + .arg("."), @r" + success: false + exit_code: 2 + ----- stdout ----- - ----- stderr ----- - ruff failed - Cause: You cannot specify more than one configuration file on the command line. + ----- stderr ----- + ruff failed + Cause: You cannot specify more than one configuration file on the command line. - tip: remove either `--config=[TMP]/ruff.toml` or `--config=[TMP]/ruff2.toml`. - For more information, try `--help`. - - "###); + tip: remove either `--config=[TMP]/ruff.toml` or `--config=[TMP]/ruff2.toml`. + For more information, try `--help`. + "); }); Ok(()) } @@ -596,7 +595,7 @@ fn too_many_config_files() -> Result<()> { fn extend_passed_via_config_argument() { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(STDIN_BASE_OPTIONS) - .args(["--config", "extend = 'foo.toml'", "."]), @r###" + .args(["--config", "extend = 'foo.toml'", "."]), @r" success: false exit_code: 2 ----- stdout ----- @@ -607,7 +606,7 @@ fn extend_passed_via_config_argument() { tip: Cannot include `extend` in a --config flag value For more information, try '--help'. - "###); + "); } #[test] @@ -623,20 +622,19 @@ fn config_file_and_isolated() -> Result<()> { .arg("--config") .arg(&ruff_dot_toml) .arg("--isolated") - .arg("."), @r###" - success: false - exit_code: 2 - ----- stdout ----- + .arg("."), @r" + success: false + exit_code: 2 + ----- stdout ----- - ----- stderr ----- - ruff failed - Cause: The argument `--config=[TMP]/ruff.toml` cannot be used with `--isolated` + ----- stderr ----- + ruff failed + Cause: The argument `--config=[TMP]/ruff.toml` cannot be used with `--isolated` - tip: You cannot specify a configuration file and also specify `--isolated`, - as `--isolated` causes ruff to ignore all configuration files. - For more information, try `--help`. - - "###); + tip: You cannot specify a configuration file and also specify `--isolated`, + as `--isolated` causes ruff to ignore all configuration files. + For more information, try `--help`. + "); }); Ok(()) } @@ -681,7 +679,7 @@ x = "longer_than_90_charactersssssssssssssssssssssssssssssssssssssssssssssssssss .args(["--config", "lint.extend-select=['E501', 'F841']"]) .args(["--config", "lint.isort.combine-as-imports = false"]) .arg("-") - .pass_stdin(fixture), @r###" + .pass_stdin(fixture), @r" success: false exit_code: 1 ----- stdout ----- @@ -691,7 +689,7 @@ x = "longer_than_90_charactersssssssssssssssssssssssssssssssssssssssssssssssssss [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); Ok(()) } @@ -700,7 +698,7 @@ fn valid_toml_but_nonexistent_option_provided_via_config_argument() { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(STDIN_BASE_OPTIONS) .args([".", "--config", "extend-select=['F481']"]), // No such code as F481! - @r###" + @r" success: false exit_code: 2 ----- stdout ----- @@ -717,7 +715,7 @@ fn valid_toml_but_nonexistent_option_provided_via_config_argument() { Unknown rule selector: `F481` For more information, try '--help'. - "###); + "); } #[test] @@ -727,7 +725,7 @@ fn each_toml_option_requires_a_new_flag_1() { // commas can't be used to delimit different config overrides; // you need a new --config flag for each override .args([".", "--config", "extend-select=['F841'], line-length=90"]), - @r###" + @r" success: false exit_code: 2 ----- stdout ----- @@ -748,7 +746,7 @@ fn each_toml_option_requires_a_new_flag_1() { expected newline, `#` For more information, try '--help'. - "###); + "); } #[test] @@ -758,7 +756,7 @@ fn each_toml_option_requires_a_new_flag_2() { // spaces *also* can't be used to delimit different config overrides; // you need a new --config flag for each override .args([".", "--config", "extend-select=['F841'] line-length=90"]), - @r###" + @r" success: false exit_code: 2 ----- stdout ----- @@ -779,7 +777,7 @@ fn each_toml_option_requires_a_new_flag_2() { expected newline, `#` For more information, try '--help'. - "###); + "); } #[test] @@ -806,7 +804,7 @@ select=["E501"] .arg(&ruff_toml) .args(["--config", "line-length=110"]) .arg("-") - .pass_stdin(fixture), @r###" + .pass_stdin(fixture), @r" success: false exit_code: 1 ----- stdout ----- @@ -814,7 +812,7 @@ select=["E501"] Found 1 error. ----- stderr ----- - "###); + "); Ok(()) } @@ -831,14 +829,14 @@ fn complex_config_setting_overridden_via_cli() -> Result<()> { .args(["--config", "lint.per-file-ignores = {'generated.py' = ['N801']}"]) .args(["--stdin-filename", "generated.py"]) .arg("-") - .pass_stdin(fixture), @r###" + .pass_stdin(fixture), @r" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -848,7 +846,7 @@ fn deprecated_config_option_overridden_via_cli() { .args(STDIN_BASE_OPTIONS) .args(["--config", "select=['N801']", "-"]) .pass_stdin("class lowercase: ..."), - @r###" + @r" success: false exit_code: 1 ----- stdout ----- @@ -858,7 +856,7 @@ fn deprecated_config_option_overridden_via_cli() { ----- stderr ----- warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in your `--config` CLI arguments: - 'select' -> 'lint.select' - "###); + "); } #[test] @@ -922,7 +920,7 @@ include = ["*.ipy"] .args(STDIN_BASE_OPTIONS) .args(["--config", &ruff_toml.file_name().unwrap().to_string_lossy()]) .args(["--extension", "ipy:ipynb"]) - .arg("."), @r###" + .arg("."), @r" success: false exit_code: 1 ----- stdout ----- @@ -931,7 +929,7 @@ include = ["*.ipy"] [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); }); Ok(()) @@ -960,7 +958,7 @@ external = ["AAA"] .pass_stdin(r#" # flake8: noqa: AAA101, BBB102 import os -"#), @r###" +"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -970,7 +968,7 @@ import os ----- stderr ----- warning: Invalid rule code provided to `# ruff: noqa` at -:2: BBB102 - "###); + "); }); Ok(()) @@ -999,7 +997,7 @@ required-version = "0.1.0" .arg("-") .pass_stdin(r#" import os -"#), @r###" +"#), @r" success: false exit_code: 2 ----- stdout ----- @@ -1007,7 +1005,7 @@ import os ----- stderr ----- ruff failed Cause: Required version `==0.1.0` does not match the running version `[VERSION]` - "###); + "); }); Ok(()) @@ -1038,7 +1036,7 @@ required-version = "{version}" .arg("-") .pass_stdin(r#" import os -"#), @r###" +"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -1047,7 +1045,7 @@ import os [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); }); Ok(()) @@ -1078,7 +1076,7 @@ required-version = ">{version}" .arg("-") .pass_stdin(r#" import os -"#), @r###" +"#), @r" success: false exit_code: 2 ----- stdout ----- @@ -1086,7 +1084,7 @@ import os ----- stderr ----- ruff failed Cause: Required version `>[VERSION]` does not match the running version `[VERSION]` - "###); + "); }); Ok(()) @@ -1115,7 +1113,7 @@ required-version = ">=0.1.0" .arg("-") .pass_stdin(r#" import os -"#), @r###" +"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -1124,7 +1122,7 @@ import os [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); }); Ok(()) @@ -1156,7 +1154,7 @@ import os def func(): x = 1 -"#), @r###" +"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -1165,7 +1163,7 @@ def func(): [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); Ok(()) } @@ -1194,7 +1192,7 @@ fn negated_per_file_ignores() -> Result<()> { .arg("--select") .arg("RUF901") .current_dir(&tempdir) - , @r###" + , @r" success: false exit_code: 1 ----- stdout ----- @@ -1203,7 +1201,7 @@ fn negated_per_file_ignores() -> Result<()> { [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); Ok(()) } @@ -1233,7 +1231,7 @@ fn negated_per_file_ignores_absolute() -> Result<()> { .arg("--select") .arg("RUF901") .current_dir(&tempdir) - , @r###" + , @r" success: false exit_code: 1 ----- stdout ----- @@ -1242,7 +1240,7 @@ fn negated_per_file_ignores_absolute() -> Result<()> { [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); }); Ok(()) } @@ -1272,14 +1270,14 @@ fn negated_per_file_ignores_overlap() -> Result<()> { .arg("--select") .arg("RUF901") .current_dir(&tempdir) - , @r###" + , @r" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -1311,7 +1309,7 @@ import os # F401 def function(): import os # F811 print(os.name) -"#), @r###" +"#), @r" success: true exit_code: 0 ----- stdout ----- @@ -1323,7 +1321,7 @@ def function(): ----- stderr ----- Found 1 error (1 fixed, 0 remaining). - "###); + "); }); Ok(()) @@ -1363,22 +1361,22 @@ def first_square(): .arg("-") .pass_stdin(r#" -"#), @r###" +"#), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- Added 1 noqa directive. - "###); + "); }); let test_code = std::fs::read_to_string(&test_path).expect("should read test file"); - insta::assert_snapshot!(test_code, @r###" + insta::assert_snapshot!(test_code, @r" def first_square(): return [x * x for x in range(20)][0] # noqa: RUF015 - "###); + "); Ok(()) } @@ -1418,23 +1416,22 @@ def unused(x): .arg("-") .pass_stdin(r#" -"#), @r###" +"#), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- Added 1 noqa directive. - "###); + "); }); let test_code = std::fs::read_to_string(&test_path).expect("should read test file"); - insta::assert_snapshot!(test_code, @r###" - + insta::assert_snapshot!(test_code, @r" def unused(x): # noqa: ANN001, ANN201, D103 pass - "###); + "); Ok(()) } @@ -1474,24 +1471,23 @@ import a .arg("-") .pass_stdin(r#" -"#), @r###" +"#), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- Added 1 noqa directive. - "###); + "); }); let test_code = std::fs::read_to_string(&test_path).expect("should read test file"); - insta::assert_snapshot!(test_code, @r###" - + insta::assert_snapshot!(test_code, @r" import z # noqa: I001 import c import a - "###); + "); Ok(()) } @@ -1531,23 +1527,22 @@ def unused(x): # noqa: ANN001, ARG001, D103 .arg("-") .pass_stdin(r#" -"#), @r###" +"#), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- Added 1 noqa directive. - "###); + "); }); let test_code = std::fs::read_to_string(&test_path).expect("should read test file"); - insta::assert_snapshot!(test_code, @r###" - + insta::assert_snapshot!(test_code, @r" def unused(x): # noqa: ANN001, ANN201, ARG001, D103 pass - "###); + "); Ok(()) } @@ -1592,19 +1587,19 @@ print( .arg("-") .pass_stdin(r#" -"#), @r###" +"#), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- Added 1 noqa directive. - "###); + "); }); let test_code = std::fs::read_to_string(&test_path).expect("should read test file"); - insta::assert_snapshot!(test_code, @r###" + insta::assert_snapshot!(test_code, @r#" print( """First line second line @@ -1612,7 +1607,7 @@ print( %s""" # noqa: UP031 % name ) - "###); + "#); Ok(()) } @@ -1656,14 +1651,14 @@ def first_square(): assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .current_dir(tempdir.path()) .args(STDIN_BASE_OPTIONS) - .args(["--add-noqa"]), @r###" + .args(["--add-noqa"]), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- Added 1 noqa directive. - "###); + "); }); Ok(()) @@ -1693,7 +1688,7 @@ select = ["UP006"] .arg(&ruff_toml) .args(["--stdin-filename", "test.py"]) .arg("-") - .pass_stdin(r#"from typing import List; foo: List[int]"#), @r###" + .pass_stdin(r#"from typing import List; foo: List[int]"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -1702,7 +1697,7 @@ select = ["UP006"] [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); }); let pyproject_toml = tempdir.path().join("pyproject.toml"); @@ -1725,14 +1720,14 @@ select = ["UP006"] .arg(&pyproject_toml) .args(["--stdin-filename", "test.py"]) .arg("-") - .pass_stdin(r#"from typing import List; foo: List[int]"#), @r###" + .pass_stdin(r#"from typing import List; foo: List[int]"#), @r" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); }); Ok(()) @@ -1762,7 +1757,7 @@ select = ["UP006"] .arg(&pyproject_toml) .args(["--stdin-filename", "test.py"]) .arg("-") - .pass_stdin(r#"from typing import List; foo: List[int]"#), @r###" + .pass_stdin(r#"from typing import List; foo: List[int]"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -1771,7 +1766,7 @@ select = ["UP006"] [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); }); Ok(()) @@ -1801,7 +1796,7 @@ select = ["UP006"] .arg(&pyproject_toml) .args(["--stdin-filename", "test.py"]) .arg("-") - .pass_stdin(r#"from typing import List; foo: List[int]"#), @r###" + .pass_stdin(r#"from typing import List; foo: List[int]"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -1810,7 +1805,7 @@ select = ["UP006"] [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); }); Ok(()) @@ -1840,7 +1835,7 @@ select = ["UP006"] .arg(&pyproject_toml) .args(["--stdin-filename", "test.py"]) .arg("-") - .pass_stdin(r#"from typing import List; foo: List[int]"#), @r###" + .pass_stdin(r#"from typing import List; foo: List[int]"#), @r" success: false exit_code: 1 ----- stdout ----- @@ -1849,7 +1844,7 @@ select = ["UP006"] [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); }); Ok(()) @@ -1904,7 +1899,7 @@ fn checks_notebooks_in_stable() -> anyhow::Result<()> { .arg("--select") .arg("F401") .current_dir(&tempdir) - , @r###" + , @r" success: false exit_code: 1 ----- stdout ----- @@ -1913,7 +1908,7 @@ fn checks_notebooks_in_stable() -> anyhow::Result<()> { [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); Ok(()) } @@ -1942,14 +1937,14 @@ fn nested_implicit_namespace_package() -> Result<()> { .arg("--select") .arg("INP") .current_dir(&tempdir) - , @r###" + , @r" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); insta::with_settings!({filters => vec![(r"\\", "/")]}, { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) @@ -1958,7 +1953,7 @@ fn nested_implicit_namespace_package() -> Result<()> { .arg("INP") .arg("--preview") .current_dir(&tempdir) - , @r###" + , @r" success: false exit_code: 1 ----- stdout ----- @@ -1966,7 +1961,7 @@ fn nested_implicit_namespace_package() -> Result<()> { Found 1 error. ----- stderr ----- - "###); + "); }); Ok(()) diff --git a/crates/ruff/tests/resolve_files.rs b/crates/ruff/tests/resolve_files.rs index 4f64748955..866357eed2 100644 --- a/crates/ruff/tests/resolve_files.rs +++ b/crates/ruff/tests/resolve_files.rs @@ -29,7 +29,7 @@ fn check_project_include_defaults() { filters => TEST_FILTERS.to_vec() }, { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) - .args(["check", "--show-files"]).current_dir(Path::new("./resources/test/fixtures/include-test")), @r###" + .args(["check", "--show-files"]).current_dir(Path::new("./resources/test/fixtures/include-test")), @r" success: true exit_code: 0 ----- stdout ----- @@ -41,7 +41,7 @@ fn check_project_include_defaults() { ----- stderr ----- warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `nested-project/pyproject.toml`: - 'select' -> 'lint.select' - "###); + "); }); } @@ -53,14 +53,14 @@ fn check_project_respects_direct_paths() { filters => TEST_FILTERS.to_vec() }, { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) - .args(["check", "--show-files", "b.py"]).current_dir(Path::new("./resources/test/fixtures/include-test")), @r###" + .args(["check", "--show-files", "b.py"]).current_dir(Path::new("./resources/test/fixtures/include-test")), @r" success: true exit_code: 0 ----- stdout ----- [BASEPATH]/include-test/b.py ----- stderr ----- - "###); + "); }); } @@ -72,14 +72,14 @@ fn check_project_respects_subdirectory_includes() { filters => TEST_FILTERS.to_vec() }, { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) - .args(["check", "--show-files", "subdirectory"]).current_dir(Path::new("./resources/test/fixtures/include-test")), @r###" + .args(["check", "--show-files", "subdirectory"]).current_dir(Path::new("./resources/test/fixtures/include-test")), @r" success: true exit_code: 0 ----- stdout ----- [BASEPATH]/include-test/subdirectory/c.py ----- stderr ----- - "###); + "); }); } @@ -91,13 +91,13 @@ fn check_project_from_project_subdirectory_respects_includes() { filters => TEST_FILTERS.to_vec() }, { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) - .args(["check", "--show-files"]).current_dir(Path::new("./resources/test/fixtures/include-test/subdirectory")), @r###" + .args(["check", "--show-files"]).current_dir(Path::new("./resources/test/fixtures/include-test/subdirectory")), @r" success: true exit_code: 0 ----- stdout ----- [BASEPATH]/include-test/subdirectory/c.py ----- stderr ----- - "###); + "); }); } diff --git a/crates/ruff/tests/snapshots/integration_test__rule_f401.snap b/crates/ruff/tests/snapshots/integration_test__rule_f401.snap index b1f46e97f4..a767348175 100644 --- a/crates/ruff/tests/snapshots/integration_test__rule_f401.snap +++ b/crates/ruff/tests/snapshots/integration_test__rule_f401.snap @@ -5,6 +5,7 @@ info: args: - rule - F401 +snapshot_kind: text --- success: true exit_code: 0 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 8a2d767b14..f2d4c8556a 100644 --- a/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap +++ b/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap @@ -6,6 +6,7 @@ info: - check - "--show-settings" - unformatted.py +snapshot_kind: text --- success: true exit_code: 0 diff --git a/crates/ruff/tests/version.rs b/crates/ruff/tests/version.rs index 016feffd38..6dbf7ba97d 100644 --- a/crates/ruff/tests/version.rs +++ b/crates/ruff/tests/version.rs @@ -16,14 +16,14 @@ const VERSION_FILTER: [(&str, &str); 1] = [( fn version_basics() { insta::with_settings!({filters => VERSION_FILTER.to_vec()}, { assert_cmd_snapshot!( - Command::new(get_cargo_bin(BIN_NAME)).arg("version"), @r###" + Command::new(get_cargo_bin(BIN_NAME)).arg("version"), @r" success: true exit_code: 0 ----- stdout ----- ruff [VERSION] ----- stderr ----- - "### + " ); }); } @@ -42,14 +42,14 @@ fn config_option_allowed_but_ignored() -> Result<()> { .arg("version") .arg("--config") .arg(&ruff_dot_toml) - .args(["--config", "lint.isort.extra-standard-library = ['foo', 'bar']"]), @r###" + .args(["--config", "lint.isort.extra-standard-library = ['foo', 'bar']"]), @r" success: true exit_code: 0 ----- stdout ----- ruff [VERSION] ----- stderr ----- - "### + " ); }); Ok(()) @@ -60,7 +60,7 @@ fn config_option_ignored_but_validated() { assert_cmd_snapshot!( Command::new(get_cargo_bin(BIN_NAME)) .arg("version") - .args(["--config", "foo = bar"]), @r###" + .args(["--config", "foo = bar"]), @r#" success: false exit_code: 2 ----- stdout ----- @@ -82,7 +82,7 @@ fn config_option_ignored_but_validated() { expected `"`, `'` For more information, try '--help'. - "### + "# ); }); } @@ -92,14 +92,14 @@ fn config_option_ignored_but_validated() { fn isolated_option_allowed() { insta::with_settings!({filters => VERSION_FILTER.to_vec()}, { assert_cmd_snapshot!( - Command::new(get_cargo_bin(BIN_NAME)).arg("version").arg("--isolated"), @r###" + Command::new(get_cargo_bin(BIN_NAME)).arg("version").arg("--isolated"), @r" success: true exit_code: 0 ----- stdout ----- ruff [VERSION] ----- stderr ----- - "### + " ); }); } diff --git a/crates/ruff_db/src/vendored.rs b/crates/ruff_db/src/vendored.rs index 1a328448c5..4cdbfe8a51 100644 --- a/crates/ruff_db/src/vendored.rs +++ b/crates/ruff_db/src/vendored.rs @@ -418,7 +418,7 @@ pub(crate) mod tests { #[test] fn filesystem_debug_implementation_alternate() { - assert_snapshot!(format!("{:#?}", mock_typeshed()), @r###" + assert_snapshot!(format!("{:#?}", mock_typeshed()), @r#" VendoredFileSystem { inner_mutex_poisoned: false, paths: [ @@ -454,7 +454,7 @@ pub(crate) mod tests { }, }, } - "###); + "#); } fn test_directory(dirname: &str) { diff --git a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_end_of_line.snap b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_end_of_line.snap index 6e540f9ee6..9d9661bb8d 100644 --- a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_end_of_line.snap +++ b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_end_of_line.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/comments/shebang.rs expression: "ShebangDirective::try_extract(source)" +snapshot_kind: text --- None diff --git a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_leading_space.snap b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_leading_space.snap index 6e540f9ee6..9d9661bb8d 100644 --- a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_leading_space.snap +++ b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_leading_space.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/comments/shebang.rs expression: "ShebangDirective::try_extract(source)" +snapshot_kind: text --- None diff --git a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match.snap b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match.snap index 87bd31a99c..c8014060ac 100644 --- a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match.snap +++ b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/comments/shebang.rs expression: "ShebangDirective::try_extract(source)" +snapshot_kind: text --- Some( ShebangDirective( diff --git a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match_trailing_comment.snap b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match_trailing_comment.snap index 6177b629e2..f7db7bfa10 100644 --- a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match_trailing_comment.snap +++ b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match_trailing_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/comments/shebang.rs expression: "ShebangDirective::try_extract(source)" +snapshot_kind: text --- Some( ShebangDirective( diff --git a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_non_match.snap b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_non_match.snap index 6e540f9ee6..9d9661bb8d 100644 --- a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_non_match.snap +++ b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_non_match.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/comments/shebang.rs expression: "ShebangDirective::try_extract(source)" +snapshot_kind: text --- None diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__azure__tests__output.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__azure__tests__output.snap index f918d0cc57..263548e8ac 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__azure__tests__output.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__azure__tests__output.snap @@ -1,8 +1,8 @@ --- source: crates/ruff_linter/src/message/azure.rs expression: content +snapshot_kind: text --- ##vso[task.logissue type=error;sourcepath=fib.py;linenumber=1;columnnumber=8;code=F401;]`os` imported but unused ##vso[task.logissue type=error;sourcepath=fib.py;linenumber=6;columnnumber=5;code=F841;]Local variable `x` is assigned to but never used ##vso[task.logissue type=error;sourcepath=undef.py;linenumber=1;columnnumber=4;code=F821;]Undefined name `a` - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__azure__tests__syntax_errors.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__azure__tests__syntax_errors.snap index 8c57205239..725467d98b 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__azure__tests__syntax_errors.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__azure__tests__syntax_errors.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/azure.rs expression: content +snapshot_kind: text --- ##vso[task.logissue type=error;sourcepath=syntax_errors.py;linenumber=1;columnnumber=15;]SyntaxError: Expected one or more symbol names after import ##vso[task.logissue type=error;sourcepath=syntax_errors.py;linenumber=3;columnnumber=12;]SyntaxError: Expected ')', found newline diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__github__tests__output.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__github__tests__output.snap index 868741b71d..c816059368 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__github__tests__output.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__github__tests__output.snap @@ -1,8 +1,8 @@ --- source: crates/ruff_linter/src/message/github.rs expression: content +snapshot_kind: text --- ::error title=Ruff (F401),file=fib.py,line=1,col=8,endLine=1,endColumn=10::fib.py:1:8: F401 `os` imported but unused ::error title=Ruff (F841),file=fib.py,line=6,col=5,endLine=6,endColumn=6::fib.py:6:5: F841 Local variable `x` is assigned to but never used ::error title=Ruff (F821),file=undef.py,line=1,col=4,endLine=1,endColumn=5::undef.py:1:4: F821 Undefined name `a` - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__github__tests__syntax_errors.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__github__tests__syntax_errors.snap index e7444371c6..c7e110c715 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__github__tests__syntax_errors.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__github__tests__syntax_errors.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/github.rs expression: content +snapshot_kind: text --- ::error title=Ruff,file=syntax_errors.py,line=1,col=15,endLine=2,endColumn=1::syntax_errors.py:1:15: SyntaxError: Expected one or more symbol names after import ::error title=Ruff,file=syntax_errors.py,line=3,col=12,endLine=4,endColumn=1::syntax_errors.py:3:12: SyntaxError: Expected ')', found newline diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__gitlab__tests__output.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__gitlab__tests__output.snap index c059077eed..4acd3f235d 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__gitlab__tests__output.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__gitlab__tests__output.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/gitlab.rs expression: redact_fingerprint(&content) +snapshot_kind: text --- [ { diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__gitlab__tests__syntax_errors.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__gitlab__tests__syntax_errors.snap index 27c3c4a3ac..646289f50e 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__gitlab__tests__syntax_errors.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__gitlab__tests__syntax_errors.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/gitlab.rs expression: redact_fingerprint(&content) +snapshot_kind: text --- [ { diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__default.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__default.snap index 66b13ba67d..a5a7a1cfe8 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__default.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__default.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/grouped.rs expression: content +snapshot_kind: text --- fib.py: 1:8 F401 `os` imported but unused @@ -8,5 +9,3 @@ fib.py: undef.py: 1:4 F821 Undefined name `a` - - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__fix_status.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__fix_status.snap index 37344ef488..50b46b41e2 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__fix_status.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__fix_status.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/grouped.rs expression: content +snapshot_kind: text --- fib.py: 1:8 F401 `os` imported but unused @@ -27,5 +28,3 @@ undef.py: 1 | if a == 1: pass | ^ F821 | - - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__fix_status_unsafe.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__fix_status_unsafe.snap index 453cf1eda4..0ed5b6efcb 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__fix_status_unsafe.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__fix_status_unsafe.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/grouped.rs expression: content +snapshot_kind: text --- fib.py: 1:8 F401 [*] `os` imported but unused @@ -27,5 +28,3 @@ undef.py: 1 | if a == 1: pass | ^ F821 | - - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__show_source.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__show_source.snap index 37344ef488..50b46b41e2 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__show_source.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__show_source.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/grouped.rs expression: content +snapshot_kind: text --- fib.py: 1:8 F401 `os` imported but unused @@ -27,5 +28,3 @@ undef.py: 1 | if a == 1: pass | ^ F821 | - - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__syntax_errors.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__syntax_errors.snap index 17e7e59a3e..52f3c9f822 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__syntax_errors.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__syntax_errors.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/grouped.rs expression: content +snapshot_kind: text --- syntax_errors.py: 1:15 SyntaxError: Expected one or more symbol names after import diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json__tests__notebook_output.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json__tests__notebook_output.snap index 7403245cc1..544435ac5c 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json__tests__notebook_output.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json__tests__notebook_output.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/json.rs expression: content +snapshot_kind: text --- [ { diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json__tests__output.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json__tests__output.snap index fed85f0428..eaa9ae77bf 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json__tests__output.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json__tests__output.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/json.rs expression: content +snapshot_kind: text --- [ { diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json__tests__syntax_errors.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json__tests__syntax_errors.snap index 1a7fa5b1e4..e6cb8b9651 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json__tests__syntax_errors.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json__tests__syntax_errors.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/json.rs expression: content +snapshot_kind: text --- [ { diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json_lines__tests__notebook_output.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json_lines__tests__notebook_output.snap index e50520b8b9..4f1d092d1c 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json_lines__tests__notebook_output.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json_lines__tests__notebook_output.snap @@ -1,8 +1,8 @@ --- source: crates/ruff_linter/src/message/json_lines.rs expression: content +snapshot_kind: text --- {"cell":1,"code":"F401","end_location":{"column":10,"row":2},"filename":"notebook.ipynb","fix":{"applicability":"safe","edits":[{"content":"","end_location":{"column":10,"row":2},"location":{"column":1,"row":2}}],"message":"Remove unused import: `os`"},"location":{"column":8,"row":2},"message":"`os` imported but unused","noqa_row":2,"url":"https://docs.astral.sh/ruff/rules/unused-import"} {"cell":2,"code":"F401","end_location":{"column":12,"row":2},"filename":"notebook.ipynb","fix":{"applicability":"safe","edits":[{"content":"","end_location":{"column":1,"row":3},"location":{"column":1,"row":2}}],"message":"Remove unused import: `math`"},"location":{"column":8,"row":2},"message":"`math` imported but unused","noqa_row":2,"url":"https://docs.astral.sh/ruff/rules/unused-import"} {"cell":3,"code":"F841","end_location":{"column":6,"row":4},"filename":"notebook.ipynb","fix":{"applicability":"unsafe","edits":[{"content":"","end_location":{"column":10,"row":4},"location":{"column":1,"row":4}}],"message":"Remove assignment to unused variable `x`"},"location":{"column":5,"row":4},"message":"Local variable `x` is assigned to but never used","noqa_row":4,"url":"https://docs.astral.sh/ruff/rules/unused-variable"} - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json_lines__tests__output.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json_lines__tests__output.snap index 57cd47822c..9248b0ffd5 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json_lines__tests__output.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json_lines__tests__output.snap @@ -1,8 +1,8 @@ --- source: crates/ruff_linter/src/message/json_lines.rs expression: content +snapshot_kind: text --- {"cell":null,"code":"F401","end_location":{"column":10,"row":1},"filename":"fib.py","fix":{"applicability":"unsafe","edits":[{"content":"","end_location":{"column":1,"row":2},"location":{"column":1,"row":1}}],"message":"Remove unused import: `os`"},"location":{"column":8,"row":1},"message":"`os` imported but unused","noqa_row":1,"url":"https://docs.astral.sh/ruff/rules/unused-import"} {"cell":null,"code":"F841","end_location":{"column":6,"row":6},"filename":"fib.py","fix":{"applicability":"unsafe","edits":[{"content":"","end_location":{"column":10,"row":6},"location":{"column":5,"row":6}}],"message":"Remove assignment to unused variable `x`"},"location":{"column":5,"row":6},"message":"Local variable `x` is assigned to but never used","noqa_row":6,"url":"https://docs.astral.sh/ruff/rules/unused-variable"} {"cell":null,"code":"F821","end_location":{"column":5,"row":1},"filename":"undef.py","fix":null,"location":{"column":4,"row":1},"message":"Undefined name `a`","noqa_row":1,"url":"https://docs.astral.sh/ruff/rules/undefined-name"} - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json_lines__tests__syntax_errors.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json_lines__tests__syntax_errors.snap index 326913dcdf..8466503638 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json_lines__tests__syntax_errors.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__json_lines__tests__syntax_errors.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/json_lines.rs expression: content +snapshot_kind: text --- {"cell":null,"code":null,"end_location":{"column":1,"row":2},"filename":"syntax_errors.py","fix":null,"location":{"column":15,"row":1},"message":"SyntaxError: Expected one or more symbol names after import","noqa_row":null,"url":null} {"cell":null,"code":null,"end_location":{"column":1,"row":4},"filename":"syntax_errors.py","fix":null,"location":{"column":12,"row":3},"message":"SyntaxError: Expected ')', found newline","noqa_row":null,"url":null} diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__junit__tests__output.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__junit__tests__output.snap index ae5e6c8b43..5f86514093 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__junit__tests__output.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__junit__tests__output.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/junit.rs expression: content +snapshot_kind: text --- @@ -18,4 +19,3 @@ expression: content - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__junit__tests__syntax_errors.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__junit__tests__syntax_errors.snap index c8015a9d5e..6c01051cbd 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__junit__tests__syntax_errors.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__junit__tests__syntax_errors.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/junit.rs expression: content +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__pylint__tests__output.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__pylint__tests__output.snap index 02b55a4884..21ae8043c0 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__pylint__tests__output.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__pylint__tests__output.snap @@ -1,8 +1,8 @@ --- source: crates/ruff_linter/src/message/pylint.rs expression: content +snapshot_kind: text --- fib.py:1: [F401] `os` imported but unused fib.py:6: [F841] Local variable `x` is assigned to but never used undef.py:1: [F821] Undefined name `a` - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__pylint__tests__syntax_errors.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__pylint__tests__syntax_errors.snap index bc6b33b48e..2bfd7e3d17 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__pylint__tests__syntax_errors.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__pylint__tests__syntax_errors.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/pylint.rs expression: content +snapshot_kind: text --- syntax_errors.py:1: SyntaxError: Expected one or more symbol names after import syntax_errors.py:3: SyntaxError: Expected ')', found newline diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__rdjson__tests__output.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__rdjson__tests__output.snap index cbb8d6c632..23edde3f3c 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__rdjson__tests__output.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__rdjson__tests__output.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/rdjson.rs expression: content +snapshot_kind: text --- { "diagnostics": [ diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__rdjson__tests__syntax_errors.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__rdjson__tests__syntax_errors.snap index c73c784b19..c7eed6f860 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__rdjson__tests__syntax_errors.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__rdjson__tests__syntax_errors.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/rdjson.rs expression: content +snapshot_kind: text --- { "diagnostics": [ diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__sarif__tests__results.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__sarif__tests__results.snap index 2773872fd5..f399be9a82 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__sarif__tests__results.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__sarif__tests__results.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/sarif.rs expression: value +snapshot_kind: text --- { "$schema": "https://json.schemastore.org/sarif-2.1.0.json", diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__default.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__default.snap index 77cd92056a..f3ff7977ad 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__default.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__default.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/text.rs expression: content +snapshot_kind: text --- fib.py:1:8: F401 `os` imported but unused | @@ -25,5 +26,3 @@ undef.py:1:4: F821 Undefined name `a` 1 | if a == 1: pass | ^ F821 | - - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__fix_status.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__fix_status.snap index 77cd92056a..f3ff7977ad 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__fix_status.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__fix_status.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/text.rs expression: content +snapshot_kind: text --- fib.py:1:8: F401 `os` imported but unused | @@ -25,5 +26,3 @@ undef.py:1:4: F821 Undefined name `a` 1 | if a == 1: pass | ^ F821 | - - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__fix_status_unsafe.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__fix_status_unsafe.snap index a53420329c..9d5ac7b6d6 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__fix_status_unsafe.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__fix_status_unsafe.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/text.rs expression: content +snapshot_kind: text --- fib.py:1:8: F401 [*] `os` imported but unused | @@ -25,5 +26,3 @@ undef.py:1:4: F821 Undefined name `a` 1 | if a == 1: pass | ^ F821 | - - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__notebook_output.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__notebook_output.snap index 5cd2f33939..af1c20d90c 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__notebook_output.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__notebook_output.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/text.rs expression: content +snapshot_kind: text --- notebook.ipynb:cell 1:2:8: F401 [*] `os` imported but unused | @@ -28,5 +29,3 @@ notebook.ipynb:cell 3:4:5: F841 [*] Local variable `x` is assigned to but never | ^ F841 | = help: Remove assignment to unused variable `x` - - diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__syntax_errors.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__syntax_errors.snap index 618774276b..2595f4eaa7 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__syntax_errors.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__text__tests__syntax_errors.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/message/text.rs expression: content +snapshot_kind: text --- syntax_errors.py:1:15: SyntaxError: Expected one or more symbol names after import | diff --git a/crates/ruff_linter/src/rules/airflow/snapshots/ruff_linter__rules__airflow__tests__AIR001_AIR001.py.snap b/crates/ruff_linter/src/rules/airflow/snapshots/ruff_linter__rules__airflow__tests__AIR001_AIR001.py.snap index c4bf5bd7b9..9c1d56b6e8 100644 --- a/crates/ruff_linter/src/rules/airflow/snapshots/ruff_linter__rules__airflow__tests__AIR001_AIR001.py.snap +++ b/crates/ruff_linter/src/rules/airflow/snapshots/ruff_linter__rules__airflow__tests__AIR001_AIR001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/airflow/mod.rs +snapshot_kind: text --- AIR001.py:11:1: AIR001 Task variable name should match the `task_id`: "my_task" | @@ -18,5 +19,3 @@ AIR001.py:12:1: AIR001 Task variable name should match the `task_id`: "my_task_2 13 | 14 | from my_module import MyClass | - - diff --git a/crates/ruff_linter/src/rules/eradicate/snapshots/ruff_linter__rules__eradicate__tests__ERA001_ERA001.py.snap b/crates/ruff_linter/src/rules/eradicate/snapshots/ruff_linter__rules__eradicate__tests__ERA001_ERA001.py.snap index 826b94dffb..b27c190ad8 100644 --- a/crates/ruff_linter/src/rules/eradicate/snapshots/ruff_linter__rules__eradicate__tests__ERA001_ERA001.py.snap +++ b/crates/ruff_linter/src/rules/eradicate/snapshots/ruff_linter__rules__eradicate__tests__ERA001_ERA001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/eradicate/mod.rs +snapshot_kind: text --- ERA001.py:1:1: ERA001 Found commented-out code | diff --git a/crates/ruff_linter/src/rules/fastapi/snapshots/ruff_linter__rules__fastapi__tests__fast-api-non-annotated-dependency_FAST002.py.snap b/crates/ruff_linter/src/rules/fastapi/snapshots/ruff_linter__rules__fastapi__tests__fast-api-non-annotated-dependency_FAST002.py.snap index 97ef58d343..680f5d57c2 100644 --- a/crates/ruff_linter/src/rules/fastapi/snapshots/ruff_linter__rules__fastapi__tests__fast-api-non-annotated-dependency_FAST002.py.snap +++ b/crates/ruff_linter/src/rules/fastapi/snapshots/ruff_linter__rules__fastapi__tests__fast-api-non-annotated-dependency_FAST002.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/fastapi/mod.rs +snapshot_kind: text --- FAST002.py:24:5: FAST002 [*] FastAPI dependency without `Annotated` | diff --git a/crates/ruff_linter/src/rules/fastapi/snapshots/ruff_linter__rules__fastapi__tests__fast-api-redundant-response-model_FAST001.py.snap b/crates/ruff_linter/src/rules/fastapi/snapshots/ruff_linter__rules__fastapi__tests__fast-api-redundant-response-model_FAST001.py.snap index 84b582e502..9d630c9a8f 100644 --- a/crates/ruff_linter/src/rules/fastapi/snapshots/ruff_linter__rules__fastapi__tests__fast-api-redundant-response-model_FAST001.py.snap +++ b/crates/ruff_linter/src/rules/fastapi/snapshots/ruff_linter__rules__fastapi__tests__fast-api-redundant-response-model_FAST001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/fastapi/mod.rs +snapshot_kind: text --- FAST001.py:17:22: FAST001 [*] FastAPI route with redundant `response_model` argument | diff --git a/crates/ruff_linter/src/rules/fastapi/snapshots/ruff_linter__rules__fastapi__tests__fast-api-unused-path-parameter_FAST003.py.snap b/crates/ruff_linter/src/rules/fastapi/snapshots/ruff_linter__rules__fastapi__tests__fast-api-unused-path-parameter_FAST003.py.snap index ca471a1886..9178c4c878 100644 --- a/crates/ruff_linter/src/rules/fastapi/snapshots/ruff_linter__rules__fastapi__tests__fast-api-unused-path-parameter_FAST003.py.snap +++ b/crates/ruff_linter/src/rules/fastapi/snapshots/ruff_linter__rules__fastapi__tests__fast-api-unused-path-parameter_FAST003.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/fastapi/mod.rs +snapshot_kind: text --- FAST003.py:9:19: FAST003 [*] Parameter `thing_id` appears in route path, but not in `read_thing` signature | diff --git a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT101_YTT101.py.snap b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT101_YTT101.py.snap index bc9ee591ad..e0db955426 100644 --- a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT101_YTT101.py.snap +++ b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT101_YTT101.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_2020/mod.rs +snapshot_kind: text --- YTT101.py:6:7: YTT101 `sys.version[:3]` referenced (python3.10), use `sys.version_info` | @@ -28,5 +29,3 @@ YTT101.py:8:7: YTT101 `sys.version[:3]` referenced (python3.10), use `sys.versio 9 | 10 | # the tool is timid and only flags certain numeric slices | - - diff --git a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT102_YTT102.py.snap b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT102_YTT102.py.snap index d53992394e..c0eb5ebed5 100644 --- a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT102_YTT102.py.snap +++ b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT102_YTT102.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_2020/mod.rs +snapshot_kind: text --- YTT102.py:4:12: YTT102 `sys.version[2]` referenced (python3.10), use `sys.version_info` | @@ -16,5 +17,3 @@ YTT102.py:5:12: YTT102 `sys.version[2]` referenced (python3.10), use `sys.versio 5 | py_minor = version[2] | ^^^^^^^ YTT102 | - - diff --git a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT103_YTT103.py.snap b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT103_YTT103.py.snap index 8adb672777..ec2eff1b5a 100644 --- a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT103_YTT103.py.snap +++ b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT103_YTT103.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_2020/mod.rs +snapshot_kind: text --- YTT103.py:4:1: YTT103 `sys.version` compared to string (python3.10), use `sys.version_info` | @@ -46,5 +47,3 @@ YTT103.py:8:1: YTT103 `sys.version` compared to string (python3.10), use `sys.ve 8 | sys.version >= "3.5" | ^^^^^^^^^^^ YTT103 | - - diff --git a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT201_YTT201.py.snap b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT201_YTT201.py.snap index f546967999..9278d8196b 100644 --- a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT201_YTT201.py.snap +++ b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT201_YTT201.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_2020/mod.rs +snapshot_kind: text --- YTT201.py:7:7: YTT201 `sys.version_info[0] == 3` referenced (python4), use `>=` | @@ -36,5 +37,3 @@ YTT201.py:10:7: YTT201 `sys.version_info[0] == 3` referenced (python4), use `>=` 10 | PY2 = version_info[0] != 3 | ^^^^^^^^^^^^^^^ YTT201 | - - diff --git a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT202_YTT202.py.snap b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT202_YTT202.py.snap index 0e587466f9..683a9711e1 100644 --- a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT202_YTT202.py.snap +++ b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT202_YTT202.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_2020/mod.rs +snapshot_kind: text --- YTT202.py:4:4: YTT202 `six.PY3` referenced (python4), use `not six.PY2` | @@ -19,5 +20,3 @@ YTT202.py:6:4: YTT202 `six.PY3` referenced (python4), use `not six.PY2` | ^^^ YTT202 7 | print("3") | - - diff --git a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT203_YTT203.py.snap b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT203_YTT203.py.snap index a10f86b44e..fa179afc0d 100644 --- a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT203_YTT203.py.snap +++ b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT203_YTT203.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_2020/mod.rs +snapshot_kind: text --- YTT203.py:4:1: YTT203 `sys.version_info[1]` compared to integer (python4), compare `sys.version_info` to tuple | @@ -16,5 +17,3 @@ YTT203.py:5:1: YTT203 `sys.version_info[1]` compared to integer (python4), compa 5 | version_info[1] < 6 | ^^^^^^^^^^^^^^^ YTT203 | - - diff --git a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT204_YTT204.py.snap b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT204_YTT204.py.snap index 69997d727b..61b5b9c5d6 100644 --- a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT204_YTT204.py.snap +++ b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT204_YTT204.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_2020/mod.rs +snapshot_kind: text --- YTT204.py:4:1: YTT204 `sys.version_info.minor` compared to integer (python4), compare `sys.version_info` to tuple | @@ -16,5 +17,3 @@ YTT204.py:5:1: YTT204 `sys.version_info.minor` compared to integer (python4), co 5 | version_info.minor > 8 | ^^^^^^^^^^^^^^^^^^ YTT204 | - - diff --git a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT301_YTT301.py.snap b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT301_YTT301.py.snap index 543dd08b1e..45a73e3d8e 100644 --- a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT301_YTT301.py.snap +++ b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT301_YTT301.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_2020/mod.rs +snapshot_kind: text --- YTT301.py:4:12: YTT301 `sys.version[0]` referenced (python10), use `sys.version_info` | @@ -16,5 +17,3 @@ YTT301.py:5:12: YTT301 `sys.version[0]` referenced (python10), use `sys.version_ 5 | py_major = version[0] | ^^^^^^^ YTT301 | - - diff --git a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT302_YTT302.py.snap b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT302_YTT302.py.snap index 11a4dea38b..9eb476ff8f 100644 --- a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT302_YTT302.py.snap +++ b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT302_YTT302.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_2020/mod.rs +snapshot_kind: text --- YTT302.py:4:1: YTT302 `sys.version` compared to string (python10), use `sys.version_info` | @@ -46,5 +47,3 @@ YTT302.py:8:1: YTT302 `sys.version` compared to string (python10), use `sys.vers 8 | sys.version >= "3" | ^^^^^^^^^^^ YTT302 | - - diff --git a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT303_YTT303.py.snap b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT303_YTT303.py.snap index 0e84487271..bc7af81ce5 100644 --- a/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT303_YTT303.py.snap +++ b/crates/ruff_linter/src/rules/flake8_2020/snapshots/ruff_linter__rules__flake8_2020__tests__YTT303_YTT303.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_2020/mod.rs +snapshot_kind: text --- YTT303.py:4:7: YTT303 `sys.version[:1]` referenced (python10), use `sys.version_info` | @@ -16,5 +17,3 @@ YTT303.py:5:7: YTT303 `sys.version[:1]` referenced (python10), use `sys.version_ 5 | print(version[:1]) | ^^^^^^^ YTT303 | - - diff --git a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_nested_overload.snap b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_nested_overload.snap index 1cda90bb2d..84015aa9bc 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_nested_overload.snap +++ b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_nested_overload.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_overload.snap b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_overload.snap index 8db1454b21..dc8485ff44 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_overload.snap +++ b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_overload.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs +snapshot_kind: text --- allow_overload.py:29:9: ANN201 Missing return type annotation for public function `bar` | @@ -9,5 +10,3 @@ allow_overload.py:29:9: ANN201 Missing return type annotation for public functio 30 | return i | = help: Add return type annotation - - diff --git a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_star_arg_any.snap b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_star_arg_any.snap index 15afb68229..3a69fd737a 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_star_arg_any.snap +++ b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_star_arg_any.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs +snapshot_kind: text --- allow_star_arg_any.py:10:12: ANN401 Dynamically typed expressions (typing.Any) are disallowed in `a` | @@ -32,5 +33,3 @@ allow_star_arg_any.py:44:67: ANN401 Dynamically typed expressions (typing.Any) a | ^^^ ANN401 45 | pass | - - diff --git a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__auto_return_type.snap b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__auto_return_type.snap index c2be32c1fa..d3c838bb14 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__auto_return_type.snap +++ b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__auto_return_type.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs +snapshot_kind: text --- auto_return_type.py:1:5: ANN201 [*] Missing return type annotation for public function `func` | @@ -768,5 +769,3 @@ auto_return_type.py:299:5: ANN201 [*] Missing return type annotation for public 300 300 | match x: 301 301 | case [1, 2, 3]: 302 302 | return 1 - - diff --git a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__auto_return_type_py38.snap b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__auto_return_type_py38.snap index 4cb5bbfb61..25e60ac755 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__auto_return_type_py38.snap +++ b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__auto_return_type_py38.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs +snapshot_kind: text --- auto_return_type.py:1:5: ANN201 [*] Missing return type annotation for public function `func` | @@ -872,5 +873,3 @@ auto_return_type.py:299:5: ANN201 [*] Missing return type annotation for public 300 300 | match x: 301 301 | case [1, 2, 3]: 302 302 | return 1 - - diff --git a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__defaults.snap b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__defaults.snap index 9be3311765..dedf99ff7c 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__defaults.snap +++ b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__defaults.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs +snapshot_kind: text --- annotation_presence.py:5:5: ANN201 [*] Missing return type annotation for public function `foo` | @@ -332,5 +333,3 @@ annotation_presence.py:165:18: ANN101 Missing type annotation for `self` in meth | ^^^^ ANN101 166 | print(f"{self.attr=}") | - - diff --git a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__ignore_fully_untyped.snap b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__ignore_fully_untyped.snap index d806d641b4..c95591ac21 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__ignore_fully_untyped.snap +++ b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__ignore_fully_untyped.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs +snapshot_kind: text --- ignore_fully_untyped.py:24:5: ANN201 [*] Missing return type annotation for public function `error_partially_typed_1` | @@ -68,5 +69,3 @@ ignore_fully_untyped.py:43:9: ANN201 [*] Missing return type annotation for publ 43 |- def error_typed_self(self: X): 43 |+ def error_typed_self(self: X) -> None: 44 44 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__mypy_init_return.snap b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__mypy_init_return.snap index f25fc530bc..e6ea74c2d4 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__mypy_init_return.snap +++ b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__mypy_init_return.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs +snapshot_kind: text --- mypy_init_return.py:5:9: ANN204 [*] Missing return type annotation for special method `__init__` | @@ -77,5 +78,3 @@ mypy_init_return.py:47:9: ANN204 [*] Missing return type annotation for special 47 |- def __init__(self, *arg): 47 |+ def __init__(self, *arg) -> None: 48 48 | ... - - diff --git a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__simple_magic_methods.snap b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__simple_magic_methods.snap index 29f85e2af8..2b0d08f1fd 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__simple_magic_methods.snap +++ b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__simple_magic_methods.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs +snapshot_kind: text --- simple_magic_methods.py:2:9: ANN204 [*] Missing return type annotation for special method `__str__` | @@ -275,5 +276,3 @@ simple_magic_methods.py:41:9: ANN204 [*] Missing return type annotation for spec 41 |- def __index__(self): 41 |+ def __index__(self) -> int: 42 42 | ... - - diff --git a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__suppress_dummy_args.snap b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__suppress_dummy_args.snap index 1cda90bb2d..84015aa9bc 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__suppress_dummy_args.snap +++ b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__suppress_dummy_args.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__suppress_none_returning.snap b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__suppress_none_returning.snap index 07d875aa50..f4f793dbda 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__suppress_none_returning.snap +++ b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__suppress_none_returning.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs +snapshot_kind: text --- suppress_none_returning.py:45:5: ANN201 [*] Missing return type annotation for public function `foo` | @@ -47,5 +48,3 @@ suppress_none_returning.py:59:9: ANN001 Missing type annotation for function arg | ^ ANN001 60 | a = 2 + 2 | - - diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC100_ASYNC100.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC100_ASYNC100.py.snap index 5d92713d30..c34bac0442 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC100_ASYNC100.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC100_ASYNC100.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC100.py:8:5: ASYNC100 A `with trio.fail_after(...):` context does not contain any `await` statements. This makes it pointless, as the timeout can only be triggered by a checkpoint. | diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC105_ASYNC105.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC105_ASYNC105.py.snap index 1595cdc008..aa8fbdfacf 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC105_ASYNC105.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC105_ASYNC105.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC105.py:30:5: ASYNC105 [*] Call to `trio.aclose_forcefully` is not immediately awaited | diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_0.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_0.py.snap index 1a624f6dc4..af1607c156 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_0.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC109_0.py:8:16: ASYNC109 Async function definition with a `timeout` parameter | diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_1.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_1.py.snap index 78704f6637..e205d4e18b 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_1.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_ASYNC109_0.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_ASYNC109_0.py.snap index 1a624f6dc4..af1607c156 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_ASYNC109_0.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_ASYNC109_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC109_0.py:8:16: ASYNC109 Async function definition with a `timeout` parameter | diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_ASYNC109_1.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_ASYNC109_1.py.snap index 5f24e49845..6936d2e811 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_ASYNC109_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_ASYNC109_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC109_1.py:5:16: ASYNC109 Async function definition with a `timeout` parameter | diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC110_ASYNC110.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC110_ASYNC110.py.snap index c878faddf0..1a09109551 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC110_ASYNC110.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC110_ASYNC110.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC110.py:7:5: ASYNC110 Use `trio.Event` instead of awaiting `trio.sleep` in a `while` loop | diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC115_ASYNC115.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC115_ASYNC115.py.snap index 3e40da955d..c74f845ec5 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC115_ASYNC115.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC115_ASYNC115.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC115.py:5:11: ASYNC115 [*] Use `trio.lowlevel.checkpoint()` instead of `trio.sleep(0)` | diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC116_ASYNC116.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC116_ASYNC116.py.snap index 3421bd0105..1de308a83e 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC116_ASYNC116.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC116_ASYNC116.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC116.py:11:11: ASYNC116 [*] `trio.sleep()` with >24 hour interval should usually be `trio.sleep_forever()` | diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC210_ASYNC210.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC210_ASYNC210.py.snap index 8ca70a9387..965aedd915 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC210_ASYNC210.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC210_ASYNC210.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC210.py:8:5: ASYNC210 Async functions should not call blocking HTTP methods | diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC220_ASYNC22x.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC220_ASYNC22x.py.snap index e7db488fa6..89188ba179 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC220_ASYNC22x.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC220_ASYNC22x.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC22x.py:31:5: ASYNC220 Async functions should not create subprocesses with blocking methods | diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC221_ASYNC22x.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC221_ASYNC22x.py.snap index 59fa094dc3..889ed049ad 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC221_ASYNC22x.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC221_ASYNC22x.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC22x.py:8:5: ASYNC221 Async functions should not run processes with blocking methods | diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC222_ASYNC22x.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC222_ASYNC22x.py.snap index 0c9e675ffa..2e89bc3008 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC222_ASYNC22x.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC222_ASYNC22x.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC22x.py:20:5: ASYNC222 Async functions should not wait on processes with blocking methods | diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC230_ASYNC230.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC230_ASYNC230.py.snap index c0b5faf4c4..f488a34af7 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC230_ASYNC230.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC230_ASYNC230.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC230.py:6:5: ASYNC230 Async functions should not open files with blocking methods like `open` | diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC251_ASYNC251.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC251_ASYNC251.py.snap index ffafdf9d99..878f40cb8f 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC251_ASYNC251.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC251_ASYNC251.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs +snapshot_kind: text --- ASYNC251.py:6:5: ASYNC251 Async functions should not call `time.sleep` | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S101_S101.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S101_S101.py.snap index d879988b27..899d296ad8 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S101_S101.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S101_S101.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S101.py:1:1: S101 Use of `assert` detected | @@ -23,5 +24,3 @@ S101.py:7:5: S101 Use of `assert` detected 7 | assert x == 2 # S101 | ^^^^^^ S101 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S102_S102.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S102_S102.py.snap index ee1dd35169..155b1a7cdd 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S102_S102.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S102_S102.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S102.py:3:5: S102 Use of `exec` detected | @@ -18,5 +19,3 @@ S102.py:5:1: S102 Use of `exec` detected 5 | exec('y = 3') | ^^^^ S102 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S103_S103.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S103_S103.py.snap index b3da522349..96bebf6074 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S103_S103.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S103_S103.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S103.py:6:25: S103 `os.chmod` setting a permissive mask `0o227` on file or directory | @@ -136,5 +137,3 @@ S103.py:23:25: S103 `os.chmod` setting an invalid mask on file or directory 23 | os.chmod("/etc/passwd", 0o100000000) # Error | ^^^^^^^^^^^ S103 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S104_S104.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S104_S104.py.snap index 3f87d24d80..15fec6bd70 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S104_S104.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S104_S104.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S104.py:9:1: S104 Possible binding to all interfaces | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S105_S105.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S105_S105.py.snap index 0da2294763..27fd8ca765 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S105_S105.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S105_S105.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S105.py:13:12: S105 Possible hardcoded password assigned to: "password" | @@ -373,5 +374,3 @@ S105.py:64:13: S105 Possible hardcoded password assigned to: "token" | ^^^^^^ S105 65 | pass | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S106_S106.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S106_S106.py.snap index 6677f394e0..06b8944aaf 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S106_S106.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S106_S106.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S106.py:14:9: S106 Possible hardcoded password assigned to argument: "password" | @@ -7,5 +8,3 @@ S106.py:14:9: S106 Possible hardcoded password assigned to argument: "password" 14 | func(1, password="s3cr3t") | ^^^^^^^^^^^^^^^^^ S106 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S107_S107.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S107_S107.py.snap index 339d3126fb..05ef29a254 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S107_S107.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S107_S107.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S107.py:5:29: S107 Possible hardcoded password assigned to function default: "password" | @@ -35,5 +36,3 @@ S107.py:29:62: S107 Possible hardcoded password assigned to function default: "p | ^^^^^^^^ S107 30 | pass | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S108_S108.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S108_S108.py.snap index d7cf9f3ec0..93500e05ce 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S108_S108.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S108_S108.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S108.py:5:11: S108 Probable insecure usage of temporary file or directory: "/tmp/abc" | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S108_extend.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S108_extend.snap index 9cebf409e7..90caacf9dd 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S108_extend.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S108_extend.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S108.py:5:11: S108 Probable insecure usage of temporary file or directory: "/tmp/abc" | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S110_S110.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S110_S110.py.snap index 8197e8f16c..f8482165d5 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S110_S110.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S110_S110.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S110.py:3:1: S110 `try`-`except`-`pass` detected, consider logging the exception | @@ -22,5 +23,3 @@ S110.py:8:1: S110 `try`-`except`-`pass` detected, consider logging the exception 10 | 11 | try: | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S110_typed.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S110_typed.snap index 701d4112c2..ed8c875ee4 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S110_typed.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S110_typed.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S110.py:3:1: S110 `try`-`except`-`pass` detected, consider logging the exception | @@ -31,5 +32,3 @@ S110.py:13:1: S110 `try`-`except`-`pass` detected, consider logging the exceptio 14 | | pass | |________^ S110 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S112_S112.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S112_S112.py.snap index 96976d8b0a..e7e2cfd249 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S112_S112.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S112_S112.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S112.py:3:1: S112 `try`-`except`-`continue` detected, consider logging the exception | @@ -44,5 +45,3 @@ S112.py:18:1: S112 `try`-`except`-`continue` detected, consider logging the exce 20 | 21 | try: | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S113_S113.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S113_S113.py.snap index 25eb309248..9d306eb589 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S113_S113.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S113_S113.py.snap @@ -1,6 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -assertion_line: 81 +snapshot_kind: text --- S113.py:46:1: S113 Probable use of `requests` call without timeout | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S201_S201.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S201_S201.py.snap index 117d522f94..3482b52cc4 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S201_S201.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S201_S201.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S201.py:10:9: S201 Use of `debug=True` in Flask app detected | @@ -9,5 +10,3 @@ S201.py:10:9: S201 Use of `debug=True` in Flask app detected 11 | 12 | # Errors | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S202_S202.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S202_S202.py.snap index fb951d05d1..711d7de30b 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S202_S202.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S202_S202.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S202.py:8:5: S202 Uses of `tarfile.extractall()` | @@ -45,5 +46,3 @@ S202.py:38:5: S202 Uses of `tarfile.extractall()` | ^^^^^^^^^^^^^^^^^^ S202 39 | tar.close() | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S301_S301.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S301_S301.py.snap index 6377796b72..a383b44466 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S301_S301.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S301_S301.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S301.py:3:1: S301 `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue | @@ -8,5 +9,3 @@ S301.py:3:1: S301 `pickle` and modules that wrap it can be unsafe when used to d 3 | pickle.loads() | ^^^^^^^^^^^^^^ S301 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S307_S307.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S307_S307.py.snap index 596c3c2a30..eabf6067a2 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S307_S307.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S307_S307.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S307.py:3:7: S307 Use of possibly insecure function; consider using `ast.literal_eval` | @@ -16,5 +17,3 @@ S307.py:4:7: S307 Use of possibly insecure function; consider using `ast.literal 4 | print(eval("os.getcwd()")) # S307 | ^^^^^^^^^^^^^^^^^^^ S307 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S308_S308.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S308_S308.py.snap index d2484ff7a5..b5b6b00038 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S308_S308.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S308_S308.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S308.py:5:12: S308 Use of `mark_safe` may expose cross-site scripting vulnerabilities | @@ -30,5 +31,3 @@ S308.py:20:1: S308 Use of `mark_safe` may expose cross-site scripting vulnerabil 21 | def some_func(): 22 | return '' | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S310_S310.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S310_S310.py.snap index 26612b698f..53f2927379 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S310_S310.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S310_S310.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S310.py:6:1: S310 Audit URL open for permitted schemes. Allowing use of `file:` or custom schemes is often unexpected. | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S311_S311.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S311_S311.py.snap index 3c395057aa..ac73f2f77e 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S311_S311.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S311_S311.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S311.py:10:1: S311 Standard pseudo-random generators are not suitable for cryptographic purposes | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S312_S312.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S312_S312.py.snap index 61adb56edd..4c507202c6 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S312_S312.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S312_S312.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S312.py:3:1: S312 Telnet-related functions are being called. Telnet is considered insecure. Use SSH or some other encrypted protocol. | @@ -8,5 +9,3 @@ S312.py:3:1: S312 Telnet-related functions are being called. Telnet is considere 3 | Telnet("localhost", 23) | ^^^^^^^^^^^^^^^^^^^^^^^ S312 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S324_S324.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S324_S324.py.snap index 1a521d8ce4..10318779d9 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S324_S324.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S324_S324.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S324.py:7:13: S324 Probable use of insecure hash functions in `hashlib`: `md5` | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S401_S401.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S401_S401.py.snap index 238e12cb37..8079727d4d 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S401_S401.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S401_S401.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S401.py:1:8: S401 `telnetlib` and related modules are considered insecure. Use SSH or another encrypted protocol. | @@ -14,5 +15,3 @@ S401.py:2:6: S401 `telnetlib` and related modules are considered insecure. Use S 2 | from telnetlib import Telnet # S401 | ^^^^^^^^^ S401 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S402_S402.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S402_S402.py.snap index 76133c6a5e..96383582dc 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S402_S402.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S402_S402.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S402.py:1:8: S402 `ftplib` and related modules are considered insecure. Use SSH, SFTP, SCP, or another encrypted protocol. | @@ -14,5 +15,3 @@ S402.py:2:6: S402 `ftplib` and related modules are considered insecure. Use SSH, 2 | from ftplib import FTP # S402 | ^^^^^^ S402 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S403_S403.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S403_S403.py.snap index 40a790297e..23b2b90a22 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S403_S403.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S403_S403.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S403.py:1:8: S403 `pickle`, `cPickle`, `dill`, and `shelve` modules are possibly insecure | @@ -74,5 +75,3 @@ S403.py:8:6: S403 `pickle`, `cPickle`, `dill`, and `shelve` modules are possibly 8 | from pickle import load | ^^^^^^ S403 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S404_S404.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S404_S404.py.snap index f67e404f42..d63505043c 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S404_S404.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S404_S404.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S404.py:1:8: S404 `subprocess` module is possibly insecure | @@ -24,5 +25,3 @@ S404.py:3:6: S404 `subprocess` module is possibly insecure 3 | from subprocess import Popen as pop # S404 | ^^^^^^^^^^ S404 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S405_S405.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S405_S405.py.snap index 9f4f8322c9..ccd188524f 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S405_S405.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S405_S405.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S405.py:1:8: S405 `xml.etree` methods are vulnerable to XML attacks | @@ -34,5 +35,3 @@ S405.py:4:6: S405 `xml.etree` methods are vulnerable to XML attacks 4 | from xml.etree import ElementTree # S405 | ^^^^^^^^^ S405 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S406_S406.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S406_S406.py.snap index ef1c448cd3..09c4b4e2a1 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S406_S406.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S406_S406.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S406.py:1:6: S406 `xml.sax` methods are vulnerable to XML attacks | @@ -24,5 +25,3 @@ S406.py:3:8: S406 `xml.sax` methods are vulnerable to XML attacks 3 | import xml.sax # S406 | ^^^^^^^ S406 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S407_S407.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S407_S407.py.snap index 91c88345a4..481d087be8 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S407_S407.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S407_S407.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S407.py:1:6: S407 `xml.dom.expatbuilder` is vulnerable to XML attacks | @@ -14,5 +15,3 @@ S407.py:2:8: S407 `xml.dom.expatbuilder` is vulnerable to XML attacks 2 | import xml.dom.expatbuilder # S407 | ^^^^^^^^^^^^^^^^^^^^ S407 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S408_S408.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S408_S408.py.snap index e42d754a9e..eddba46724 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S408_S408.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S408_S408.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S408.py:1:6: S408 `xml.dom.minidom` is vulnerable to XML attacks | @@ -14,5 +15,3 @@ S408.py:2:8: S408 `xml.dom.minidom` is vulnerable to XML attacks 2 | import xml.dom.minidom # S408 | ^^^^^^^^^^^^^^^ S408 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S409_S409.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S409_S409.py.snap index e65eacfe96..4622262669 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S409_S409.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S409_S409.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S409.py:1:6: S409 `xml.dom.pulldom` is vulnerable to XML attacks | @@ -14,5 +15,3 @@ S409.py:2:8: S409 `xml.dom.pulldom` is vulnerable to XML attacks 2 | import xml.dom.pulldom # S409 | ^^^^^^^^^^^^^^^ S409 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S410_S410.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S410_S410.py.snap index 56304d2670..f9477882ae 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S410_S410.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S410_S410.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S410.py:1:8: S410 `lxml` is vulnerable to XML attacks | @@ -14,5 +15,3 @@ S410.py:2:6: S410 `lxml` is vulnerable to XML attacks 2 | from lxml import etree # S410 | ^^^^ S410 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S411_S411.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S411_S411.py.snap index 0cb05d60b5..8d89fa5679 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S411_S411.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S411_S411.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S411.py:1:8: S411 XMLRPC is vulnerable to remote XML attacks | @@ -14,5 +15,3 @@ S411.py:2:6: S411 XMLRPC is vulnerable to remote XML attacks 2 | from xmlrpc import server # S411 | ^^^^^^ S411 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S412_S412.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S412_S412.py.snap index f6acbda399..c8c325b36e 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S412_S412.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S412_S412.py.snap @@ -1,10 +1,9 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S412.py:1:6: S412 `httpoxy` is a set of vulnerabilities that affect application code running inCGI, or CGI-like environments. The use of CGI for web applications should be avoided | 1 | from twisted.web.twcgi import CGIScript # S412 | ^^^^^^^^^^^^^^^^^ S412 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S413_S413.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S413_S413.py.snap index fa8676bd2d..5fe7a86643 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S413_S413.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S413_S413.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S413.py:1:8: S413 `pycrypto` library is known to have publicly disclosed buffer overflow vulnerability | @@ -34,5 +35,3 @@ S413.py:4:6: S413 `pycrypto` library is known to have publicly disclosed buffer 4 | from Crypto.PublicKey import RSA # S413 | ^^^^^^^^^^^^^^^^ S413 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S415_S415.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S415_S415.py.snap index 3c47930c4b..86c659fb21 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S415_S415.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S415_S415.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S415.py:1:8: S415 An IPMI-related module is being imported. Prefer an encrypted protocol over IPMI. | @@ -14,5 +15,3 @@ S415.py:2:6: S415 An IPMI-related module is being imported. Prefer an encrypted 2 | from pyghmi import foo # S415 | ^^^^^^ S415 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S501_S501.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S501_S501.py.snap index 3320a4a810..b8f363532c 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S501_S501.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S501_S501.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S501.py:5:47: S501 Probable use of `requests` call with `verify=False` disabling SSL certificate checks | @@ -176,5 +177,3 @@ S501.py:40:19: S501 Probable use of `httpx` call with `verify=False` disabling S 40 | httpx.AsyncClient(verify=False) | ^^^^^^^^^^^^ S501 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S502_S502.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S502_S502.py.snap index 31a2a69041..3aa34a91df 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S502_S502.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S502_S502.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S502.py:6:13: S502 Call made with insecure SSL protocol: `PROTOCOL_SSLv3` | @@ -68,5 +69,3 @@ S502.py:12:9: S502 Call made with insecure SSL protocol: `TLSv1_METHOD` 13 | 14 | wrap_socket(ssl_version=ssl.PROTOCOL_TLS_CLIENT) # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S503_S503.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S503_S503.py.snap index 93932f9a6b..7ada319330 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S503_S503.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S503_S503.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S503.py:6:18: S503 Argument default set to insecure SSL protocol: `PROTOCOL_SSLv2` | @@ -28,5 +29,3 @@ S503.py:18:19: S503 Argument default set to insecure SSL protocol: `PROTOCOL_TLS | ^^^^^^^^^^^^^^ S503 19 | pass | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S504_S504.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S504_S504.py.snap index aeaa2578d2..023976280e 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S504_S504.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S504_S504.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S504.py:4:1: S504 `ssl.wrap_socket` called without an `ssl_version`` | @@ -18,5 +19,3 @@ S504.py:5:1: S504 `ssl.wrap_socket` called without an `ssl_version`` | ^^^^^^^^^^^^^ S504 6 | ssl.wrap_socket(ssl_version=ssl.PROTOCOL_TLSv1_2) # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S505_S505.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S505_S505.py.snap index bc14a8556f..6b44dd23df 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S505_S505.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S505_S505.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S505.py:29:35: S505 DSA key sizes below 2048 bits are considered breakable | @@ -138,5 +139,3 @@ S505.py:44:28: S505 DSA key sizes below 2048 bits are considered breakable 45 | 46 | # Don't crash when the size is variable. | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S506_S506.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S506_S506.py.snap index 466f3e9f21..6d49ef426a 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S506_S506.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S506_S506.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S506.py:10:9: S506 Probable use of unsafe `yaml.load`. Allows instantiation of arbitrary objects. Consider `yaml.safe_load`. | @@ -18,5 +19,3 @@ S506.py:24:24: S506 Probable use of unsafe loader `Loader` with `yaml.load`. All 25 | 26 | # no issue should be found | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S507_S507.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S507_S507.py.snap index 6ff5a45021..791419044d 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S507_S507.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S507_S507.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S507.py:15:40: S507 Paramiko call with policy set to automatically trust the unknown host key | @@ -78,5 +79,3 @@ S507.py:22:54: S507 Paramiko call with policy set to automatically trust the unk 23 | 24 | # Unrelated | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S508_S508.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S508_S508.py.snap index 7b72946d50..f6d764b5ac 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S508_S508.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S508_S508.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S508.py:3:25: S508 The use of SNMPv1 and SNMPv2 is insecure. Use SNMPv3 if able. | @@ -18,5 +19,3 @@ S508.py:4:25: S508 The use of SNMPv1 and SNMPv2 is insecure. Use SNMPv3 if able. 5 | 6 | CommunityData("public", mpModel=2) # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S509_S509.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S509_S509.py.snap index f9ba5df59d..86a0e40c67 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S509_S509.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S509_S509.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S509.py:4:12: S509 You should not use SNMPv3 without encryption. `noAuthNoPriv` & `authNoPriv` is insecure. | @@ -16,5 +17,3 @@ S509.py:5:16: S509 You should not use SNMPv3 without encryption. `noAuthNoPriv` 6 | 7 | less_insecure = UsmUserData("securityName", "authName", "privName") # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S601_S601.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S601_S601.py.snap index 11c0d31bbb..411dbef599 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S601_S601.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S601_S601.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S601.py:3:1: S601 Possible shell injection via Paramiko call; check inputs are properly sanitized | @@ -8,5 +9,3 @@ S601.py:3:1: S601 Possible shell injection via Paramiko call; check inputs are p 3 | paramiko.exec_command('something; really; unsafe') | ^^^^^^^^^^^^^^^^^^^^^ S601 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S602_S602.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S602_S602.py.snap index 6976a96c1d..b915b02143 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S602_S602.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S602_S602.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S602.py:4:1: S602 `subprocess` call with `shell=True` seems safe, but may be changed in the future; consider rewriting without `shell` | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S603_S603.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S603_S603.py.snap index 052f58dd6a..12a354c8a4 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S603_S603.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S603_S603.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S603.py:4:1: S603 `subprocess` call: check for execution of untrusted input | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S604_S604.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S604_S604.py.snap index 3b05258325..a84c6314e6 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S604_S604.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S604_S604.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S604.py:5:1: S604 Function call with `shell=True` parameter identified, security issue | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S605_S605.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S605_S605.py.snap index aca51dd266..9ad1400574 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S605_S605.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S605_S605.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S605.py:8:1: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell` | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S606_S606.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S606_S606.py.snap index 32c3651950..6b98f57167 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S606_S606.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S606_S606.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S606.py:4:1: S606 Starting a process without a shell | @@ -166,5 +167,3 @@ S606.py:20:1: S606 Starting a process without a shell 20 | os.startfile("true") | ^^^^^^^^^^^^ S606 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S607_S607.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S607_S607.py.snap index 1e82703d36..599f4b465a 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S607_S607.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S607_S607.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S607.py:9:11: S607 Starting a process with a partial executable path | @@ -219,5 +220,3 @@ S607.py:37:14: S607 Starting a process with a partial executable path 38 | 39 | # Check it does not fail for full paths. | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S608_S608.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S608_S608.py.snap index b44cc8f786..6d0774dc65 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S608_S608.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S608_S608.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S608.py:2:10: S608 Possible SQL injection vector through string-based query construction | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S609_S609.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S609_S609.py.snap index 0b98e44ce4..7de88902d2 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S609_S609.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S609_S609.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S609.py:4:10: S609 Possible wildcard injection in call due to `*` usage | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S610_S610.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S610_S610.py.snap index deb3bdcf18..f3be9d306b 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S610_S610.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S610_S610.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S610.py:4:44: S610 Use of Django `extra` can lead to SQL injection vulnerabilities | diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S611_S611.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S611_S611.py.snap index 026360e756..f3fd1629c5 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S611_S611.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S611_S611.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S611.py:5:27: S611 Use of `RawSQL` can lead to SQL injection vulnerabilities | @@ -56,5 +57,3 @@ S611.py:13:27: S611 Use of `RawSQL` can lead to SQL injection vulnerabilities 13 | User.objects.annotate(val=RawSQL(params=[], sql='{}secure'.format('no'))) | ^^^^^^ S611 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S612_S612.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S612_S612.py.snap index 7e70531b62..ab65d21252 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S612_S612.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S612_S612.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S612.py:3:5: S612 Use of insecure `logging.config.listen` detected | @@ -10,5 +11,3 @@ S612.py:3:5: S612 Use of insecure `logging.config.listen` detected 4 | 5 | def verify_func(): | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S701_S701.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S701_S701.py.snap index a6f08cb71a..4f83f30a53 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S701_S701.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S701_S701.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S701.py:9:57: S701 Using jinja2 templates with `autoescape=False` is dangerous and can lead to XSS. Ensure `autoescape=True` or use the `select_autoescape` function. | @@ -47,5 +48,3 @@ S701.py:29:36: S701 Using jinja2 templates with `autoescape=False` is dangerous 29 | Environment(loader=templateLoader, autoescape=fake_func()) # S701 | ^^^^^^^^^^^^^^^^^^^^^^ S701 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S702_S702.py.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S702_S702.py.snap index fa943d7acf..6d32769376 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S702_S702.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S702_S702.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs +snapshot_kind: text --- S702.py:6:1: S702 Mako templates allow HTML and JavaScript rendering by default and are inherently open to XSS attacks | @@ -24,5 +25,3 @@ S702.py:9:1: S702 Mako templates allow HTML and JavaScript rendering by default 9 | template.Template("hern") | ^^^^^^^^^^^^^^^^^ S702 | - - diff --git a/crates/ruff_linter/src/rules/flake8_blind_except/snapshots/ruff_linter__rules__flake8_blind_except__tests__BLE001_BLE.py.snap b/crates/ruff_linter/src/rules/flake8_blind_except/snapshots/ruff_linter__rules__flake8_blind_except__tests__BLE001_BLE.py.snap index 16313b5f91..3ca28d3cef 100644 --- a/crates/ruff_linter/src/rules/flake8_blind_except/snapshots/ruff_linter__rules__flake8_blind_except__tests__BLE001_BLE.py.snap +++ b/crates/ruff_linter/src/rules/flake8_blind_except/snapshots/ruff_linter__rules__flake8_blind_except__tests__BLE001_BLE.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_blind_except/mod.rs +snapshot_kind: text --- BLE.py:25:8: BLE001 Do not catch blind exception: `BaseException` | @@ -120,5 +121,3 @@ BLE.py:113:8: BLE001 Do not catch blind exception: `Exception` | ^^^^^^^^^ BLE001 114 | error("...", exc_info=None) | - - diff --git a/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT001_FBT.py.snap b/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT001_FBT.py.snap index c14a748e79..ea925637b5 100644 --- a/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT001_FBT.py.snap +++ b/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT001_FBT.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_boolean_trap/mod.rs +snapshot_kind: text --- FBT.py:4:5: FBT001 Boolean-typed positional argument in function definition | diff --git a/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT002_FBT.py.snap b/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT002_FBT.py.snap index 14c5a21a11..1d8ce760c0 100644 --- a/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT002_FBT.py.snap +++ b/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT002_FBT.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_boolean_trap/mod.rs +snapshot_kind: text --- FBT.py:12:5: FBT002 Boolean default positional argument in function definition | @@ -40,5 +41,3 @@ FBT.py:15:5: FBT002 Boolean default positional argument in function definition 16 | posorkw_nonboolvalued_nohint=1, 17 | posorkw_nonboolvalued_nonboolhint: int = 2, | - - diff --git a/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap b/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap index 4985aa37f2..5dc9e2b9db 100644 --- a/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap +++ b/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_boolean_trap/mod.rs +snapshot_kind: text --- FBT.py:41:11: FBT003 Boolean positional value in function call | diff --git a/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__extend_allowed_callable.snap b/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__extend_allowed_callable.snap index 71b3e8df8d..058c871bf1 100644 --- a/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__extend_allowed_callable.snap +++ b/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__extend_allowed_callable.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_boolean_trap/mod.rs +snapshot_kind: text --- FBT.py:41:11: FBT003 Boolean positional value in function call | diff --git a/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__preview__FBT001_FBT.py.snap b/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__preview__FBT001_FBT.py.snap index ee91fa49f8..d3ab33ec5c 100644 --- a/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__preview__FBT001_FBT.py.snap +++ b/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__preview__FBT001_FBT.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_boolean_trap/mod.rs +snapshot_kind: text --- FBT.py:4:5: FBT001 Boolean-typed positional argument in function definition | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B002_B002.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B002_B002.py.snap index 2f7974eab8..bac4567388 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B002_B002.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B002_B002.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B002.py:18:9: B002 Python does not support the unary prefix increment operator (`++`) | @@ -32,5 +33,3 @@ B002.py:24:17: B002 Python does not support the unary prefix decrement operator 24 | return ++n, --n | ^^^ B002 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B003_B003.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B003_B003.py.snap index 0ee03ce25d..f1360b8ab3 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B003_B003.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B003_B003.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B003.py:9:1: B003 Assigning to `os.environ` doesn't clear the environment | @@ -9,5 +10,3 @@ B003.py:9:1: B003 Assigning to `os.environ` doesn't clear the environment | ^^^^^^^^^^ B003 10 | environ = {} # that's fine, assigning a new meaning to the module-level name | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B004_B004.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B004_B004.py.snap index da4177d024..9513c0cf35 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B004_B004.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B004_B004.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B004.py:3:8: B004 [*] Using `hasattr(x, "__call__")` to test if x is callable is unreliable. Use `callable(x)` for consistent results. | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B005_B005.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B005_B005.py.snap index 1eda1ef5f1..66334d60f0 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B005_B005.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B005_B005.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B005.py:4:1: B005 Using `.strip()` with multi-character strings is misleading | @@ -80,5 +81,3 @@ B005.py:24:1: B005 Using `.strip()` with multi-character strings is misleading 25 | 26 | from somewhere import other_type, strip | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_1.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_1.py.snap index 1456ef4631..bf28fec160 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B006_1.py:3:22: B006 [*] Do not use mutable data structures for argument defaults | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_1.pyi.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_1.pyi.snap index 967e60a4f9..30ef2c1efd 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_1.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_1.pyi.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_2.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_2.py.snap index c050ac73b7..09257a8d92 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B006_2.py:4:22: B006 [*] Do not use mutable data structures for argument defaults | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_3.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_3.py.snap index 583e51b5a7..8e304f3b25 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_3.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B006_3.py:4:22: B006 [*] Do not use mutable data structures for argument defaults | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_4.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_4.py.snap index 2494c15ac4..500d1427df 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_4.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_4.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B006_4.py:7:26: B006 [*] Do not use mutable data structures for argument defaults | @@ -19,6 +20,4 @@ B006_4.py:7:26: B006 [*] Do not use mutable data structures for argument default 8 |+ if a is None: 9 |+ a = [] 8 10 | print(a) -9 11 | - - +9 11 | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_5.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_5.py.snap index 24ad24f06b..2218f89382 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_5.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_5.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B006_5.py:5:49: B006 [*] Do not use mutable data structures for argument defaults | @@ -309,5 +310,3 @@ B006_5.py:73:49: B006 Do not use mutable data structures for argument defaults 74 | import os | = help: Replace with `None`; initialize within function - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_6.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_6.py.snap index 032ad0e132..3a1addc5af 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_6.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_6.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B006_6.py:4:22: B006 [*] Do not use mutable data structures for argument defaults | @@ -21,5 +22,3 @@ B006_6.py:4:22: B006 [*] Do not use mutable data structures for argument default 5 |+ import os 6 |+ if bar is None: 7 |+ bar = {} - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_7.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_7.py.snap index 05fdbd20f1..3cd491b156 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_7.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_7.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B006_7.py:4:22: B006 [*] Do not use mutable data structures for argument defaults | @@ -21,5 +22,3 @@ B006_7.py:4:22: B006 [*] Do not use mutable data structures for argument default 5 |+ import os 6 |+ if bar is None: 7 |+ bar = {} - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_8.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_8.py.snap index 866643aa45..059fe888d6 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_8.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_8.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B006_8.py:1:19: B006 [*] Do not use mutable data structures for argument defaults | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_B008.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_B008.py.snap index 5627954be4..c93320a973 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_B008.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_B008.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B006_B008.py:63:25: B006 [*] Do not use mutable data structures for argument defaults | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B007_B007.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B007_B007.py.snap index 5f36888c89..12d3aaa584 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B007_B007.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B007_B007.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B007.py:6:5: B007 Loop control variable `i` not used within loop body | @@ -182,5 +183,3 @@ B007.py:98:5: B007 Loop control variable `line_` not used within loop body | ^^^^^ B007 99 | fp.readline() | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B008_B006_B008.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B008_B006_B008.py.snap index 9e967b8772..b0cd27b530 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B008_B006_B008.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B008_B006_B008.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B006_B008.py:102:61: B008 Do not perform function call `range` in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable | @@ -79,5 +80,3 @@ B006_B008.py:250:37: B008 Do not perform function call `dt.datetime.now` in argu | ^^^^^^^^^^^^^^^^^ B008 251 | pass | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B009_B009_B010.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B009_B009_B010.py.snap index fc00bb4ef9..5a74d284b8 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B009_B009_B010.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B009_B009_B010.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B009_B010.py:19:1: B009 [*] Do not call `getattr` with a constant attribute value. It is not any safer than normal property access. | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B010_B009_B010.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B010_B009_B010.py.snap index cad3fc9306..a7f67bd8d8 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B010_B009_B010.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B010_B009_B010.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B009_B010.py:50:1: B010 [*] Do not call `setattr` with a constant attribute value. It is not any safer than normal property access. | @@ -124,5 +125,3 @@ B009_B010.py:55:1: B010 [*] Do not call `setattr` with a constant attribute valu 56 56 | 57 57 | # Regression test for: https://github.com/astral-sh/ruff/issues/7455#issuecomment-1722458885 58 58 | assert getattr(func, '_rpc')is True - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B011_B011.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B011_B011.py.snap index 828397abce..b04f7a057a 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B011_B011.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B011_B011.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B011.py:8:8: B011 [*] Do not `assert False` (`python -O` removes these calls), raise `AssertionError()` | @@ -35,5 +36,3 @@ B011.py:10:8: B011 [*] Do not `assert False` (`python -O` removes these calls), 9 9 | assert 1 != 2, "message" 10 |-assert False, "message" 10 |+raise AssertionError("message") - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B012_B012.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B012_B012.py.snap index bba51ea123..997e6b1bb9 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B012_B012.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B012_B012.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B012.py:5:9: B012 `return` inside `finally` blocks cause exceptions to be silenced | @@ -100,5 +101,3 @@ B012.py:118:17: B012 `break` inside `finally` blocks cause exceptions to be sile 118 | break # warning | ^^^^^ B012 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B013_B013.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B013_B013.py.snap index 658dfd3c7a..8dd0604718 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B013_B013.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B013_B013.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B013.py:5:8: B013 [*] A length-one tuple literal is redundant in exception handlers | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B014_B014.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B014_B014.py.snap index c35fb2494d..e925e86423 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B014_B014.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B014_B014.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B014.py:17:8: B014 [*] Exception handler with duplicate exception: `OSError` | @@ -101,5 +102,3 @@ B014.py:89:7: B014 [*] Exception handler with duplicate exception: `re.error` 89 |-except(re.error, re.error): 89 |+except re.error: 90 90 | p - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B015_B015.ipynb.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B015_B015.ipynb.snap index acdae1edf4..96eba32108 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B015_B015.ipynb.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B015_B015.ipynb.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B015.ipynb:5:1: B015 Pointless comparison. Did you mean to assign a value? Otherwise, prepend `assert` or remove it. | @@ -30,5 +31,3 @@ B015.ipynb:13:1: B015 Pointless comparison. Did you mean to assign a value? Othe 14 | # Comments, newlines and whitespace 15 | x == 1 # comment | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B015_B015.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B015_B015.py.snap index 73529071e6..29d06e7de2 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B015_B015.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B015_B015.py.snap @@ -1,6 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs -assertion_line: 74 +snapshot_kind: text --- B015.py:3:1: B015 Pointless comparison. Did you mean to assign a value? Otherwise, prepend `assert` or remove it. | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B016_B016.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B016_B016.py.snap index e0183b0a65..51d3ca8098 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B016_B016.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B016_B016.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B016.py:6:7: B016 Cannot raise a literal. Did you intend to return it or raise an Exception? | @@ -29,5 +30,3 @@ B016.py:8:7: B016 Cannot raise a literal. Did you intend to return it or raise a 9 | raise Exception(False) 10 | raise Exception(1) | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B017_B017.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B017_B017.py.snap index 1d4ac20d75..ef0af2bc0a 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B017_B017.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B017_B017.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B017.py:23:14: B017 `assertRaises(Exception)` should be considered evil | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B018_B018.ipynb.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B018_B018.ipynb.snap index 41211ffcae..d06676c198 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B018_B018.ipynb.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B018_B018.ipynb.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B018.ipynb:5:1: B018 Found useless expression. Either assign it to a variable or remove it. | @@ -30,5 +31,3 @@ B018.ipynb:13:1: B018 Found useless expression. Either assign it to a variable o 14 | # Comments, newlines and whitespace 15 | x # comment | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B018_B018.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B018_B018.py.snap index a3cded1d21..d455292d93 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B018_B018.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B018_B018.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B018.py:11:5: B018 Found useless expression. Either assign it to a variable or remove it. | @@ -254,5 +255,3 @@ B018.py:65:5: B018 Found useless expression. Either assign it to a variable or r 65 | "foo" + "bar" # BinOp (raise) | ^^^^^^^^^^^^^ B018 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B019_B019.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B019_B019.py.snap index 907178352a..c165284235 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B019_B019.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B019_B019.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B019.py:78:5: B019 Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B020_B020.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B020_B020.py.snap index ceedf56d97..8fb15a2263 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B020_B020.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B020_B020.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B020.py:8:5: B020 Loop control variable `items` overrides iterable it iterates | @@ -26,5 +27,3 @@ B020.py:36:5: B020 Loop control variable `vars` overrides iterable it iterates | ^^^^ B020 37 | print(vars) | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B021_B021.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B021_B021.py.snap index 55429a9759..6468cffbd7 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B021_B021.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B021_B021.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B021.py:1:1: B021 f-string used as docstring. Python will interpret this as a joined string, rather than a docstring. | @@ -76,5 +77,3 @@ B021.py:74:5: B021 f-string used as docstring. Python will interpret this as a j 75 | print(f"""I'm a normal string""") 76 | f"""Don't detect me!""" | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B022_B022.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B022_B022.py.snap index a24c945eed..28dadc3836 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B022_B022.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B022_B022.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B022.py:9:6: B022 No arguments passed to `contextlib.suppress`. No exceptions will be suppressed and therefore this context manager is redundant | @@ -18,5 +19,3 @@ B022.py:12:6: B022 No arguments passed to `contextlib.suppress`. No exceptions w | ^^^^^^^^^^ B022 13 | raise ValueError | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B023_B023.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B023_B023.py.snap index b9a759b2d8..500183278d 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B023_B023.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B023_B023.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B023.py:12:30: B023 Function definition does not bind loop variable `x` | @@ -220,5 +221,3 @@ B023.py:174:29: B023 Function definition does not bind loop variable `i` 174 | return [lambda: i for i in range(3)] # error | ^ B023 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B024_B024.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B024_B024.py.snap index 5f29c87bee..f78c1cbb98 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B024_B024.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B024_B024.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B024.py:18:7: B024 `Base_1` is an abstract base class, but it has no abstract methods | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B025_B025.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B025_B025.py.snap index 238ea4893d..802a09d01d 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B025_B025.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B025_B025.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B025.py:19:8: B025 try-except block with duplicate exception `ValueError` | @@ -37,5 +38,3 @@ B025.py:37:18: B025 try-except block with duplicate exception `TypeError` | ^^^^^^^^^ B025 38 | a = 2 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B026_B026.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B026_B026.py.snap index 272c3f749e..f0cae8d021 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B026_B026.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B026_B026.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B026.py:16:16: B026 Star-arg unpacking after a keyword argument is strongly discouraged | @@ -66,5 +67,3 @@ B026.py:21:26: B026 Star-arg unpacking after a keyword argument is strongly disc 21 | foo(*["bar"], bam="bam", *["baz"]) | ^^^^^^^^ B026 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B027_B027.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B027_B027.py.snap index b3da6237de..e818056d0a 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B027_B027.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B027_B027.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B027.py:18:5: B027 `AbstractClass.empty_1` is an empty method in an abstract base class, but has no abstract decorator | @@ -52,5 +53,3 @@ B027.py:28:5: B027 `AbstractClass.empty_4` is an empty method in an abstract bas 34 | 35 | @notabstract | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B027_B027.pyi.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B027_B027.pyi.snap index 967e60a4f9..30ef2c1efd 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B027_B027.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B027_B027.pyi.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B028_B028.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B028_B028.py.snap index 2b89da03fe..081910662f 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B028_B028.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B028_B028.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B028.py:8:1: B028 No explicit `stacklevel` keyword argument found | @@ -19,5 +20,3 @@ B028.py:9:1: B028 No explicit `stacklevel` keyword argument found 10 | warnings.warn(DeprecationWarning("test"), source=None, stacklevel=2) 11 | warnings.warn(DeprecationWarning("test"), stacklevel=1) | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B029_B029.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B029_B029.py.snap index 8c469dd418..0417f6e65b 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B029_B029.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B029_B029.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B029.py:8:1: B029 Using `except ():` with an empty tuple does not catch anything; add exceptions to handle | @@ -20,5 +21,3 @@ B029.py:13:1: B029 Using `except ():` with an empty tuple does not catch anythin 14 | | pass | |________^ B029 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B030_B030.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B030_B030.py.snap index 6606e05ad0..a182032f77 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B030_B030.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B030_B030.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B030.py:12:8: B030 `except` handlers should only be exception classes or tuples of exception classes | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B031_B031.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B031_B031.py.snap index 075bffbe6c..57ca85a502 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B031_B031.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B031_B031.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B031.py:27:37: B031 Using the generator returned from `itertools.groupby()` more than once will do nothing on the second usage | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B032_B032.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B032_B032.py.snap index a55e9006fa..2826619574 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B032_B032.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B032_B032.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B032.py:9:1: B032 Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)? | @@ -74,5 +75,3 @@ B032.py:19:1: B032 Possible unintentional type annotation (using `:`). Did you m 20 | 21 | # Do not flag below | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B033_B033.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B033_B033.py.snap index 619a534ccd..db3e493b68 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B033_B033.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B033_B033.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B033.py:4:35: B033 [*] Sets should not contain duplicate item `"value1"` | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B034_B034.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B034_B034.py.snap index 92631d1ed8..066befba4c 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B034_B034.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B034_B034.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B034.py:5:1: B034 `re.sub` should pass `count` and `flags` as keyword arguments to avoid confusion due to unintuitive argument positions | @@ -98,5 +99,3 @@ B034.py:14:1: B034 `re.sub` should pass `count` and `flags` as keyword arguments 15 | 16 | # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B035_B035.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B035_B035.py.snap index 2991c2e0d5..dd3e169639 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B035_B035.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B035_B035.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B035.py:17:2: B035 Dictionary comprehension uses static key: `"key"` | @@ -86,5 +87,3 @@ B035.py:25:2: B035 Dictionary comprehension uses static key: `tokens` 25 | {tokens: token for token in tokens} | ^^^^^^ B035 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B039_B039.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B039_B039.py.snap index e2bbb851aa..808b68e4b9 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B039_B039.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B039_B039.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B039.py:19:26: B039 Do not use mutable data structures for `ContextVar` defaults | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B901_B901.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B901_B901.py.snap index b1e65fb3c0..7538d0c1a4 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B901_B901.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B901_B901.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B901.py:9:9: B901 Using `yield` and `return {value}` in a generator function can lead to confusing behavior | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B904_B904.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B904_B904.py.snap index 5e39344cb5..4b46459c28 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B904_B904.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B904_B904.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B904.py:10:9: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling | @@ -66,5 +67,3 @@ B904.py:73:13: B904 Within an `except` clause, raise exceptions with `raise ... 73 | raise RuntimeError("boom!") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ B904 | - - diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B905.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B905.py.snap index 66bde9f97f..899a911b38 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B905.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B905.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B905.py:4:1: B905 [*] `zip()` without an explicit `strict=` parameter | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B909_B909.py.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B909_B909.py.snap index a7993b4b2b..076f46987f 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B909_B909.py.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B909_B909.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B909.py:12:5: B909 Mutation to loop iterable `some_list` during iteration | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__extend_immutable_calls_arg_annotation.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__extend_immutable_calls_arg_annotation.snap index ff069ea930..eaa057448f 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__extend_immutable_calls_arg_annotation.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__extend_immutable_calls_arg_annotation.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B006_extended.py:17:55: B006 [*] Do not use mutable data structures for argument defaults | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__extend_immutable_calls_arg_default.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__extend_immutable_calls_arg_default.snap index 185294223e..bf2ac94ea0 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__extend_immutable_calls_arg_default.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__extend_immutable_calls_arg_default.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B008_extended.py:24:51: B008 Do not perform function call `Depends` in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable | diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__extend_mutable_contextvar_default.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__extend_mutable_contextvar_default.snap index d03f11124f..f2dc889ba3 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__extend_mutable_contextvar_default.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__extend_mutable_contextvar_default.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs +snapshot_kind: text --- B039_extended.py:7:26: B039 Do not use mutable data structures for `ContextVar` defaults | diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A001_A001.py.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A001_A001.py.snap index 60efd05563..d198e71cf1 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A001_A001.py.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A001_A001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- A001.py:1:16: A001 Variable `sum` is shadowing a Python builtin | @@ -183,5 +184,3 @@ A001.py:30:8: A001 Variable `sum` is shadowing a Python builtin 30 | [0 for sum in ()] | ^^^ A001 | - - diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A001_A001.py_builtins_ignorelist.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A001_A001.py_builtins_ignorelist.snap index dfdd12fe91..0d201b1fd6 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A001_A001.py_builtins_ignorelist.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A001_A001.py_builtins_ignorelist.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- A001.py:1:16: A001 Variable `sum` is shadowing a Python builtin | @@ -163,5 +164,3 @@ A001.py:30:8: A001 Variable `sum` is shadowing a Python builtin 30 | [0 for sum in ()] | ^^^ A001 | - - diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A002_A002.py.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A002_A002.py.snap index 91f0ae113d..d427062979 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A002_A002.py.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A002_A002.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- A002.py:1:11: A002 Function argument `str` is shadowing a Python builtin | diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A002_A002.py_builtins_ignorelist.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A002_A002.py_builtins_ignorelist.snap index 5d5d601826..3ed8f71870 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A002_A002.py_builtins_ignorelist.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A002_A002.py_builtins_ignorelist.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- A002.py:1:11: A002 Function argument `str` is shadowing a Python builtin | diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A003_A003.py.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A003_A003.py.snap index f89f5abeda..3edffeef74 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A003_A003.py.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A003_A003.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- A003.py:17:31: A003 Python builtin is shadowed by method `str` from line 14 | @@ -18,5 +19,3 @@ A003.py:20:34: A003 Python builtin is shadowed by class attribute `id` from line | ^^ A003 21 | pass | - - diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A003_A003.py_builtins_ignorelist.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A003_A003.py_builtins_ignorelist.snap index 06d0956121..484aa22247 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A003_A003.py_builtins_ignorelist.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A003_A003.py_builtins_ignorelist.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- A003.py:17:31: A003 Python builtin is shadowed by method `str` from line 14 | @@ -9,5 +10,3 @@ A003.py:17:31: A003 Python builtin is shadowed by method `str` from line 14 | ^^^ A003 18 | pass | - - diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A004_A004.py.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A004_A004.py.snap index c31cebd70b..4685dcb9a5 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A004_A004.py.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A004_A004.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- A004.py:1:16: A004 Import `sum` is shadowing a Python builtin | diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A004_A004.py_builtins_ignorelist.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A004_A004.py_builtins_ignorelist.snap index 700a881c7f..94ff184b18 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A004_A004.py_builtins_ignorelist.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A004_A004.py_builtins_ignorelist.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- A004.py:1:16: A004 Import `sum` is shadowing a Python builtin | diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A004_A004.py_py38.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A004_A004.py_py38.snap index e33ad847bb..10b925931c 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A004_A004.py_py38.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A004_A004.py_py38.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- A004.py:1:16: A004 Import `sum` is shadowing a Python builtin | diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__logging____init__.py.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__logging____init__.py.snap index 9f05f0aa76..068a24e8f2 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__logging____init__.py.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__logging____init__.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- __init__.py:1:1: A005 Module `logging` is shadowing a Python builtin module diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__logging____init__.py_builtins_allowed_modules.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__logging____init__.py_builtins_allowed_modules.snap index df35fcb66a..d9ec358dcc 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__logging____init__.py_builtins_allowed_modules.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__logging____init__.py_builtins_allowed_modules.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py.snap index df35fcb66a..d9ec358dcc 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py_builtins_allowed_modules.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py_builtins_allowed_modules.snap index df35fcb66a..d9ec358dcc 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py_builtins_allowed_modules.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py_builtins_allowed_modules.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__bisect.py.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__bisect.py.snap index 3615ea4297..967e38ec66 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__bisect.py.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__bisect.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- bisect.py:1:1: A005 Module `bisect` is shadowing a Python builtin module diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__bisect.py_builtins_allowed_modules.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__bisect.py_builtins_allowed_modules.snap index 3615ea4297..967e38ec66 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__bisect.py_builtins_allowed_modules.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__bisect.py_builtins_allowed_modules.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- bisect.py:1:1: A005 Module `bisect` is shadowing a Python builtin module diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__xml.py.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__xml.py.snap index 3fade6e0a3..4d7c0f2231 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__xml.py.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__xml.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- xml.py:1:1: A005 Module `xml` is shadowing a Python builtin module diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__xml.py_builtins_allowed_modules.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__xml.py_builtins_allowed_modules.snap index df35fcb66a..d9ec358dcc 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__xml.py_builtins_allowed_modules.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__xml.py_builtins_allowed_modules.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__string____init__.py.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__string____init__.py.snap index 69dc571b6f..cec55e06e8 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__string____init__.py.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__string____init__.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- __init__.py:1:1: A005 Module `string` is shadowing a Python builtin module diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__string____init__.py_builtins_allowed_modules.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__string____init__.py_builtins_allowed_modules.snap index 69dc571b6f..cec55e06e8 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__string____init__.py_builtins_allowed_modules.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__string____init__.py_builtins_allowed_modules.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- __init__.py:1:1: A005 Module `string` is shadowing a Python builtin module diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A006_A006.py.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A006_A006.py.snap index b42dae79a5..9ce6c7d1dd 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A006_A006.py.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A006_A006.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- A006.py:1:8: A006 Lambda argument `print` is shadowing a Python builtin | diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A006_A006.py_builtins_ignorelist.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A006_A006.py_builtins_ignorelist.snap index 2ac1bb621e..3b7a28a634 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A006_A006.py_builtins_ignorelist.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A006_A006.py_builtins_ignorelist.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs +snapshot_kind: text --- A006.py:1:8: A006 Lambda argument `print` is shadowing a Python builtin | diff --git a/crates/ruff_linter/src/rules/flake8_commas/snapshots/ruff_linter__rules__flake8_commas__tests__COM81.py.snap b/crates/ruff_linter/src/rules/flake8_commas/snapshots/ruff_linter__rules__flake8_commas__tests__COM81.py.snap index 1955cf08d0..898a3b5f1a 100644 --- a/crates/ruff_linter/src/rules/flake8_commas/snapshots/ruff_linter__rules__flake8_commas__tests__COM81.py.snap +++ b/crates/ruff_linter/src/rules/flake8_commas/snapshots/ruff_linter__rules__flake8_commas__tests__COM81.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_commas/mod.rs +snapshot_kind: text --- COM81.py:4:18: COM812 [*] Trailing comma missing | diff --git a/crates/ruff_linter/src/rules/flake8_commas/snapshots/ruff_linter__rules__flake8_commas__tests__COM81_syntax_error.py.snap b/crates/ruff_linter/src/rules/flake8_commas/snapshots/ruff_linter__rules__flake8_commas__tests__COM81_syntax_error.py.snap index d604355cc6..4133bee4d5 100644 --- a/crates/ruff_linter/src/rules/flake8_commas/snapshots/ruff_linter__rules__flake8_commas__tests__COM81_syntax_error.py.snap +++ b/crates/ruff_linter/src/rules/flake8_commas/snapshots/ruff_linter__rules__flake8_commas__tests__COM81_syntax_error.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_commas/mod.rs +snapshot_kind: text --- COM81_syntax_error.py:3:5: SyntaxError: Starred expression cannot be used here | diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C400_C400.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C400_C400.py.snap index d641163904..7e946f22f6 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C400_C400.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C400_C400.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C400.py:2:13: C400 [*] Unnecessary generator (rewrite as a `list` comprehension) | diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C401_C401.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C401_C401.py.snap index be566d8e53..327946a4cd 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C401_C401.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C401_C401.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C401.py:2:13: C401 [*] Unnecessary generator (rewrite as a `set` comprehension) | diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C402_C402.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C402_C402.py.snap index 1a79ba66f5..3afb8c581c 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C402_C402.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C402_C402.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C402.py:1:1: C402 [*] Unnecessary generator (rewrite as a `dict` comprehension) | @@ -265,5 +266,3 @@ C402.py:21:1: C402 [*] Unnecessary generator (rewrite as a `dict` comprehension) 22 22 | 23 23 | # Regression test for: https://github.com/astral-sh/ruff/issues/7455#issuecomment-1722458940 24 24 | dict((*v, k) for k, v in enumerate(calendar.month_abbr)) - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C403_C403.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C403_C403.py.snap index 8b30f0a8e2..c99c111439 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C403_C403.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C403_C403.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C403.py:1:5: C403 [*] Unnecessary `list` comprehension (rewrite as a `set` comprehension) | @@ -232,5 +233,3 @@ C403.py:21:5: C403 [*] Unnecessary `list` comprehension (rewrite as a `set` comp 22 22 | x for x in range(3) 23 |-]) 23 |+} - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C404_C404.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C404_C404.py.snap index 6ee5af803d..ef18d2a26b 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C404_C404.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C404_C404.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C404.py:1:1: C404 [*] Unnecessary `list` comprehension (rewrite as a `dict` comprehension) | @@ -192,5 +193,3 @@ C404.py:16:14: C404 [*] Unnecessary `list` comprehension (rewrite as a `dict` co 15 15 | # Regression test for: https://github.com/astral-sh/ruff/issues/7087 16 |-saved.append(dict([(k, v)for k,v in list(unique_instance.__dict__.items()) if k in [f.name for f in unique_instance._meta.fields]])) 16 |+saved.append({k: v for k,v in list(unique_instance.__dict__.items()) if k in [f.name for f in unique_instance._meta.fields]}) - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C405_C405.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C405_C405.py.snap index 1ab72fff86..1f5c279905 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C405_C405.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C405_C405.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C405.py:1:1: C405 [*] Unnecessary `list` literal (rewrite as a `set` literal) | @@ -409,5 +410,3 @@ C405.py:26:25: C405 [*] Unnecessary `list` literal (rewrite as a `set` literal) 25 25 | f"a {set(['a', 'b']) - set(['a'])} b" 26 |-f"a { set(['a', 'b']) - set(['a']) } b" 26 |+f"a { set(['a', 'b']) - {'a'} } b" - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C406_C406.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C406_C406.py.snap index d9847ec6c6..4996ca8eaa 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C406_C406.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C406_C406.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C406.py:1:6: C406 [*] Unnecessary `list` literal (rewrite as a `dict` literal) | @@ -71,5 +72,3 @@ C406.py:4:6: C406 [*] Unnecessary `tuple` literal (rewrite as a `dict` literal) 4 |-d4 = dict(()) 4 |+d4 = {} 5 5 | d5 = dict() - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C408_C408.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C408_C408.py.snap index 6b4414d1b4..062f242ca0 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C408_C408.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C408_C408.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C408.py:1:5: C408 [*] Unnecessary `tuple` call (rewrite as a literal) | @@ -364,5 +365,3 @@ C408.py:28:1: C408 [*] Unnecessary `tuple` call (rewrite as a literal) 28 |-tuple( # comment 28 |+( # comment 29 29 | ) - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C408_C408.py_allow_dict_calls_with_keyword_arguments.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C408_C408.py_allow_dict_calls_with_keyword_arguments.snap index 59c761f4aa..08c15b04f3 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C408_C408.py_allow_dict_calls_with_keyword_arguments.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C408_C408.py_allow_dict_calls_with_keyword_arguments.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C408.py:1:5: C408 [*] Unnecessary `tuple` call (rewrite as a literal) | @@ -139,5 +140,3 @@ C408.py:28:1: C408 [*] Unnecessary `tuple` call (rewrite as a literal) 28 |-tuple( # comment 28 |+( # comment 29 29 | ) - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C409_C409.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C409_C409.py.snap index e2dbdb31f2..a03c88e69d 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C409_C409.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C409_C409.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C409.py:1:6: C409 [*] Unnecessary `list` literal passed to `tuple()` (rewrite as a `tuple` literal) | diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C410_C410.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C410_C410.py.snap index 921547ca2d..05d007f36c 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C410_C410.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C410_C410.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C410.py:1:6: C410 [*] Unnecessary `list` literal passed to `list()` (remove the outer call to `list()`) | @@ -116,5 +117,3 @@ C410.py:11:1: C410 [*] Unnecessary `list` literal passed to `list()` (remove the 12 12 | 1, 2 13 |-]) 13 |+] - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C411_C411.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C411_C411.py.snap index 763f99136e..bcab68af1f 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C411_C411.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C411_C411.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C411.py:2:1: C411 [*] Unnecessary `list` call (remove the outer call to `list()`) | @@ -13,5 +14,3 @@ C411.py:2:1: C411 [*] Unnecessary `list` call (remove the outer call to `list()` 1 1 | x = [1, 2, 3] 2 |-list([i for i in x]) 2 |+[i for i in x] - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C413_C413.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C413_C413.py.snap index def04f25ae..4335608a35 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C413_C413.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C413_C413.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C413.py:3:1: C413 [*] Unnecessary `list` call around `sorted()` | diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C414_C414.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C414_C414.py.snap index 1551f9ccec..5cfa0d7e14 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C414_C414.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C414_C414.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C414.py:2:1: C414 [*] Unnecessary `list` call within `list()` | @@ -513,5 +514,3 @@ C414.py:44:27: C414 [*] Unnecessary `list` call within `sorted()` 45 |+ x_xxxx_xxxxxxxxxxx_xxxxx.xxxx(), # xxxxxxxxxxx xxxxx xxxx xxx xx Nxxx 46 46 | key=lambda xxxxx: xxxxx or "", 47 47 | ) - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C415_C415.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C415_C415.py.snap index 3e3463d093..670e9a76fc 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C415_C415.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C415_C415.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C415.py:2:5: C415 Unnecessary subscript reversal of iterable within `set()` | @@ -39,5 +40,3 @@ C415.py:5:5: C415 Unnecessary subscript reversal of iterable within `sorted()` 6 | e = set(lst[2:-1]) 7 | f = set(lst[:1:-1]) | - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C416_C416.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C416_C416.py.snap index 4ffbb2c029..47d64292d9 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C416_C416.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C416_C416.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C416.py:6:1: C416 [*] Unnecessary `list` comprehension (rewrite using `list()`) | @@ -139,5 +140,3 @@ C416.py:24:70: C416 [*] Unnecessary `list` comprehension (rewrite using `list()` 23 23 | # Regression test for: https://github.com/astral-sh/ruff/issues/7196 24 |-any(len(symbol_table.get_by_type(symbol_type)) > 0 for symbol_type in[t for t in SymbolType]) 24 |+any(len(symbol_table.get_by_type(symbol_type)) > 0 for symbol_type in list(SymbolType)) - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C417_C417.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C417_C417.py.snap index fc37727a26..e952116f73 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C417_C417.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C417_C417.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C417.py:3:1: C417 [*] Unnecessary `map` usage (rewrite using a generator expression) | @@ -363,5 +364,3 @@ C417.py:49:1: C417 [*] Unnecessary `map` usage (rewrite using a generator expres 48 48 | map(lambda x: x, (y if y else z)) 49 |-map(lambda x: x, (x, y, z)) 49 |+(x for x in (x, y, z)) - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C418_C418.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C418_C418.py.snap index f350adcdce..d5d800e177 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C418_C418.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C418_C418.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C418.py:1:1: C418 [*] Unnecessary `dict` literal passed to `dict()` (remove the outer call to `dict()`) | @@ -79,5 +80,3 @@ C418.py:4:1: C418 [*] Unnecessary `dict` comprehension passed to `dict()` (remov 7 5 | 8 6 | dict({}, a=1) 9 7 | dict({x: 1 for x in range(1)}, a=1) - - diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C419_C419.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C419_C419.py.snap index 529ecea6b7..24c721a492 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C419_C419.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C419_C419.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C419.py:1:5: C419 [*] Unnecessary list comprehension | diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C419_C419_2.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C419_C419_2.py.snap index d9845b4ae9..0172399c06 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C419_C419_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C419_C419_2.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C420_C420.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C420_C420.py.snap index c1b1ee2942..8a77c9290e 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C420_C420.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C420_C420.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C420.py:6:5: C420 [*] Unnecessary dict comprehension for iterable; use `dict.fromkeys` instead | diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__preview__C409_C409.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__preview__C409_C409.py.snap index 4d816904df..2156bfefec 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__preview__C409_C409.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__preview__C409_C409.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C409.py:1:6: C409 [*] Unnecessary `list` literal passed to `tuple()` (rewrite as a `tuple` literal) | diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__preview__C419_C419_1.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__preview__C419_C419_1.py.snap index 9bc26685fb..efdfa04c4d 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__preview__C419_C419_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__preview__C419_C419_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs +snapshot_kind: text --- C419_1.py:1:5: C419 [*] Unnecessary list comprehension | diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__char_boundary.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__char_boundary.snap index 6bac4b05dc..4a99d41b49 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__char_boundary.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__char_boundary.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- :1:1: CPY001 Missing copyright notice at top of file diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__invalid_author.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__invalid_author.snap index 6bac4b05dc..4a99d41b49 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__invalid_author.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__invalid_author.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- :1:1: CPY001 Missing copyright notice at top of file diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__late_notice.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__late_notice.snap index 6bac4b05dc..4a99d41b49 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__late_notice.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__late_notice.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- :1:1: CPY001 Missing copyright notice at top of file diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice.snap index 314ed9c4f9..071086251a 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_c.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_c.snap index 314ed9c4f9..071086251a 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_c.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_c.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_caps.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_caps.snap index 314ed9c4f9..071086251a 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_caps.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_caps.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_comma.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_comma.snap index 314ed9c4f9..071086251a 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_comma.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_comma.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_range.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_range.snap index 314ed9c4f9..071086251a 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_range.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_range.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_unicode_c.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_unicode_c.snap index 314ed9c4f9..071086251a 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_unicode_c.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_unicode_c.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__small_file.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__small_file.snap index 314ed9c4f9..071086251a 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__small_file.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__small_file.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author.snap index 314ed9c4f9..071086251a 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_invalid_no_space.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_invalid_no_space.snap index 6bac4b05dc..4a99d41b49 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_invalid_no_space.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_invalid_no_space.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- :1:1: CPY001 Missing copyright notice at top of file diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_invalid_spaces.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_invalid_spaces.snap index 6bac4b05dc..4a99d41b49 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_invalid_spaces.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_invalid_spaces.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- :1:1: CPY001 Missing copyright notice at top of file diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_valid_space.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_valid_space.snap index 314ed9c4f9..071086251a 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_valid_space.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_valid_space.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash.snap index 314ed9c4f9..071086251a 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash_invalid_space.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash_invalid_space.snap index 6bac4b05dc..4a99d41b49 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash_invalid_space.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash_invalid_space.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- :1:1: CPY001 Missing copyright notice at top of file diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash_invalid_spaces.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash_invalid_spaces.snap index 6bac4b05dc..4a99d41b49 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash_invalid_spaces.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash_invalid_spaces.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs +snapshot_kind: text --- :1:1: CPY001 Missing copyright notice at top of file diff --git a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ001_DTZ001.py.snap b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ001_DTZ001.py.snap index e4e8e1f901..d82805ef66 100644 --- a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ001_DTZ001.py.snap +++ b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ001_DTZ001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_datetimez/mod.rs +snapshot_kind: text --- DTZ001.py:4:1: DTZ001 `datetime.datetime()` called without a `tzinfo` argument | diff --git a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ002_DTZ002.py.snap b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ002_DTZ002.py.snap index 0f29ecf110..d00ec8092f 100644 --- a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ002_DTZ002.py.snap +++ b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ002_DTZ002.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_datetimez/mod.rs +snapshot_kind: text --- DTZ002.py:4:1: DTZ002 `datetime.datetime.today()` used | diff --git a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ003_DTZ003.py.snap b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ003_DTZ003.py.snap index 2b7953a714..f860d0aba8 100644 --- a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ003_DTZ003.py.snap +++ b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ003_DTZ003.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_datetimez/mod.rs +snapshot_kind: text --- DTZ003.py:4:1: DTZ003 `datetime.datetime.utcnow()` used | diff --git a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ004_DTZ004.py.snap b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ004_DTZ004.py.snap index 0efe06454d..c646046dcd 100644 --- a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ004_DTZ004.py.snap +++ b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ004_DTZ004.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_datetimez/mod.rs +snapshot_kind: text --- DTZ004.py:4:1: DTZ004 `datetime.datetime.utcfromtimestamp()` used | diff --git a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ005_DTZ005.py.snap b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ005_DTZ005.py.snap index ee6f711e0b..114c19ca7b 100644 --- a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ005_DTZ005.py.snap +++ b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ005_DTZ005.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_datetimez/mod.rs +snapshot_kind: text --- DTZ005.py:4:1: DTZ005 `datetime.datetime.now()` called without a `tz` argument | diff --git a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ006_DTZ006.py.snap b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ006_DTZ006.py.snap index e708ed9d52..d0c0982f8a 100644 --- a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ006_DTZ006.py.snap +++ b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ006_DTZ006.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_datetimez/mod.rs +snapshot_kind: text --- DTZ006.py:4:1: DTZ006 `datetime.datetime.fromtimestamp()` called without a `tz` argument | diff --git a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ007_DTZ007.py.snap b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ007_DTZ007.py.snap index f2579ea9d2..797114eba7 100644 --- a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ007_DTZ007.py.snap +++ b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ007_DTZ007.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_datetimez/mod.rs +snapshot_kind: text --- DTZ007.py:4:1: DTZ007 Naive datetime constructed using `datetime.datetime.strptime()` without %z | diff --git a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ011_DTZ011.py.snap b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ011_DTZ011.py.snap index 2a19a7162f..86a4e68ad9 100644 --- a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ011_DTZ011.py.snap +++ b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ011_DTZ011.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_datetimez/mod.rs +snapshot_kind: text --- DTZ011.py:4:1: DTZ011 `datetime.date.today()` used | diff --git a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ012_DTZ012.py.snap b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ012_DTZ012.py.snap index fe0bffe0f4..adb19fe823 100644 --- a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ012_DTZ012.py.snap +++ b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ012_DTZ012.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_datetimez/mod.rs +snapshot_kind: text --- DTZ012.py:4:1: DTZ012 `datetime.date.fromtimestamp()` used | diff --git a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ901_DTZ901.py.snap b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ901_DTZ901.py.snap index 966ee8bc89..68ccb0f5e3 100644 --- a/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ901_DTZ901.py.snap +++ b/crates/ruff_linter/src/rules/flake8_datetimez/snapshots/ruff_linter__rules__flake8_datetimez__tests__DTZ901_DTZ901.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_datetimez/mod.rs +snapshot_kind: text --- DTZ901.py:5:1: DTZ901 Use of `datetime.datetime.max` without timezone information | diff --git a/crates/ruff_linter/src/rules/flake8_debugger/snapshots/ruff_linter__rules__flake8_debugger__tests__T100_T100.py.snap b/crates/ruff_linter/src/rules/flake8_debugger/snapshots/ruff_linter__rules__flake8_debugger__tests__T100_T100.py.snap index 9fe528f183..70989d4cf9 100644 --- a/crates/ruff_linter/src/rules/flake8_debugger/snapshots/ruff_linter__rules__flake8_debugger__tests__T100_T100.py.snap +++ b/crates/ruff_linter/src/rules/flake8_debugger/snapshots/ruff_linter__rules__flake8_debugger__tests__T100_T100.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_debugger/mod.rs +snapshot_kind: text --- T100.py:1:1: T100 Trace found: `breakpoint` used | diff --git a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ001_DJ001.py.snap b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ001_DJ001.py.snap index 54812a0f1d..cbb03a4067 100644 --- a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ001_DJ001.py.snap +++ b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ001_DJ001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_django/mod.rs +snapshot_kind: text --- DJ001.py:7:17: DJ001 Avoid using `null=True` on string-based fields such as `CharField` | @@ -168,5 +169,3 @@ DJ001.py:30:16: DJ001 Avoid using `null=True` on string-based fields such as `UR 30 | urlfield = models.URLField(max_length=255, null=True) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ DJ001 | - - diff --git a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ003_DJ003.py.snap b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ003_DJ003.py.snap index ce26aedc42..9dad4f65f4 100644 --- a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ003_DJ003.py.snap +++ b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ003_DJ003.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_django/mod.rs +snapshot_kind: text --- DJ003.py:5:42: DJ003 Avoid passing `locals()` as context to a `render` function | @@ -14,5 +15,3 @@ DJ003.py:9:50: DJ003 Avoid passing `locals()` as context to a `render` function 9 | return render(request, "index.html", context=locals()) | ^^^^^^^^ DJ003 | - - diff --git a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ006_DJ006.py.snap b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ006_DJ006.py.snap index 185382fe24..206c703559 100644 --- a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ006_DJ006.py.snap +++ b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ006_DJ006.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_django/mod.rs +snapshot_kind: text --- DJ006.py:6:9: DJ006 Do not use `exclude` with `ModelForm`, use `fields` instead | @@ -8,5 +9,3 @@ DJ006.py:6:9: DJ006 Do not use `exclude` with `ModelForm`, use `fields` instead 6 | exclude = ["bar"] | ^^^^^^^ DJ006 | - - diff --git a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ007_DJ007.py.snap b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ007_DJ007.py.snap index 4a38c1a542..c7ad057ae8 100644 --- a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ007_DJ007.py.snap +++ b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ007_DJ007.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_django/mod.rs +snapshot_kind: text --- DJ007.py:6:9: DJ007 Do not use `__all__` with `ModelForm`, use `fields` instead | @@ -16,5 +17,3 @@ DJ007.py:11:9: DJ007 Do not use `__all__` with `ModelForm`, use `fields` instead 11 | fields = b"__all__" | ^^^^^^^^^^^^^^^^^^^ DJ007 | - - diff --git a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ008_DJ008.py.snap b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ008_DJ008.py.snap index a913353ad7..e24f8f8cfd 100644 --- a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ008_DJ008.py.snap +++ b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ008_DJ008.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_django/mod.rs +snapshot_kind: text --- DJ008.py:6:7: DJ008 Model does not define `__str__` method | @@ -30,5 +31,3 @@ DJ008.py:182:7: DJ008 Model does not define `__str__` method | ^^^^^^^^^^^^^^^^^^ DJ008 183 | pass | - - diff --git a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ012_DJ012.py.snap b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ012_DJ012.py.snap index 79e5d7e395..c0910c2e2d 100644 --- a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ012_DJ012.py.snap +++ b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ012_DJ012.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_django/mod.rs +snapshot_kind: text --- DJ012.py:28:5: DJ012 Order of model's inner classes, methods, and fields does not follow the Django Style Guide: field declaration should come before `Meta` class | @@ -61,5 +62,3 @@ DJ012.py:146:5: DJ012 Order of model's inner classes, methods, and fields does n 146 | first_name = models.CharField(max_length=32) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ DJ012 | - - diff --git a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ013_DJ013.py.snap b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ013_DJ013.py.snap index dbceb4b69b..27a74d79be 100644 --- a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ013_DJ013.py.snap +++ b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ013_DJ013.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_django/mod.rs +snapshot_kind: text --- DJ013.py:15:1: DJ013 `@receiver` decorator must be on top of all the other decorators | @@ -19,5 +20,3 @@ DJ013.py:35:1: DJ013 `@receiver` decorator must be on top of all the other decor 36 | def incorrect_multiple(): 37 | pass | - - diff --git a/crates/ruff_linter/src/rules/flake8_errmsg/snapshots/ruff_linter__rules__flake8_errmsg__tests__custom.snap b/crates/ruff_linter/src/rules/flake8_errmsg/snapshots/ruff_linter__rules__flake8_errmsg__tests__custom.snap index d29e987d49..105d0fe855 100644 --- a/crates/ruff_linter/src/rules/flake8_errmsg/snapshots/ruff_linter__rules__flake8_errmsg__tests__custom.snap +++ b/crates/ruff_linter/src/rules/flake8_errmsg/snapshots/ruff_linter__rules__flake8_errmsg__tests__custom.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_errmsg/mod.rs +snapshot_kind: text --- EM.py:5:24: EM101 [*] Exception must not use a string literal, assign to variable first | @@ -280,5 +281,3 @@ EM.py:84:9: EM103 [*] Exception must not use a `.format()` string directly, assi 91 |+ raise RuntimeError( 92 |+ msg 93 |+ ) - - diff --git a/crates/ruff_linter/src/rules/flake8_errmsg/snapshots/ruff_linter__rules__flake8_errmsg__tests__defaults.snap b/crates/ruff_linter/src/rules/flake8_errmsg/snapshots/ruff_linter__rules__flake8_errmsg__tests__defaults.snap index 593d6b30dc..b073d4fdd3 100644 --- a/crates/ruff_linter/src/rules/flake8_errmsg/snapshots/ruff_linter__rules__flake8_errmsg__tests__defaults.snap +++ b/crates/ruff_linter/src/rules/flake8_errmsg/snapshots/ruff_linter__rules__flake8_errmsg__tests__defaults.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_errmsg/mod.rs +snapshot_kind: text --- EM.py:5:24: EM101 [*] Exception must not use a string literal, assign to variable first | @@ -346,5 +347,3 @@ EM.py:84:9: EM103 [*] Exception must not use a `.format()` string directly, assi 91 |+ raise RuntimeError( 92 |+ msg 93 |+ ) - - diff --git a/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-fixme_T00.py.snap b/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-fixme_T00.py.snap index 3d83ddf257..8c9650b550 100644 --- a/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-fixme_T00.py.snap +++ b/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-fixme_T00.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_fixme/mod.rs +snapshot_kind: text --- T00.py:7:3: FIX001 Line contains FIXME, consider resolving the issue | diff --git a/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-hack_T00.py.snap b/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-hack_T00.py.snap index 48be15b4fd..be827ead17 100644 --- a/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-hack_T00.py.snap +++ b/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-hack_T00.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_fixme/mod.rs +snapshot_kind: text --- T00.py:5:3: FIX004 Line contains HACK, consider resolving the issue | @@ -20,5 +21,3 @@ T00.py:6:3: FIX004 Line contains HACK, consider resolving the issue 7 | # FIXME: fixme 8 | # fixme: fixme | - - diff --git a/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-todo_T00.py.snap b/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-todo_T00.py.snap index bd9fcc070d..3d064fbd7c 100644 --- a/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-todo_T00.py.snap +++ b/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-todo_T00.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_fixme/mod.rs +snapshot_kind: text --- T00.py:1:3: FIX002 Line contains TODO, consider resolving the issue | diff --git a/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-xxx_T00.py.snap b/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-xxx_T00.py.snap index 18eb43a49c..d4218aca27 100644 --- a/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-xxx_T00.py.snap +++ b/crates/ruff_linter/src/rules/flake8_fixme/snapshots/ruff_linter__rules__flake8_fixme__tests__line-contains-xxx_T00.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_fixme/mod.rs +snapshot_kind: text --- T00.py:3:3: FIX003 Line contains XXX, consider resolving the issue | @@ -20,5 +21,3 @@ T00.py:4:3: FIX003 Line contains XXX, consider resolving the issue 5 | # HACK: hack 6 | # hack: hack | - - diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__edge_case.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__edge_case.py.snap index 34091b62e6..c3e38a6517 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__edge_case.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__edge_case.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- edge_case.py:5:13: FA100 Add `from __future__ import annotations` to simplify `typing.List` | diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_no_future_import_uses_lowercase.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_no_future_import_uses_lowercase.py.snap index e9c8efa698..9db68140a4 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_no_future_import_uses_lowercase.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_no_future_import_uses_lowercase.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- no_future_import_uses_lowercase.py:6:14: FA102 [*] Missing `from __future__ import annotations`, but uses PEP 585 collection | diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_no_future_import_uses_union.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_no_future_import_uses_union.py.snap index 3631ff0433..4f8b2b5dd2 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_no_future_import_uses_union.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_no_future_import_uses_union.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- no_future_import_uses_union.py:6:14: FA102 [*] Missing `from __future__ import annotations`, but uses PEP 585 collection | diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_no_future_import_uses_union_inner.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_no_future_import_uses_union_inner.py.snap index 2f2e6dbb03..bd011e0327 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_no_future_import_uses_union_inner.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_no_future_import_uses_union_inner.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- no_future_import_uses_union_inner.py:6:14: FA102 [*] Missing `from __future__ import annotations`, but uses PEP 585 collection | diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_no_types.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_no_types.py.snap index 0e51cf4a6f..98e748990e 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_no_types.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_no_types.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_quoted_type.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_quoted_type.py.snap index 0e51cf4a6f..98e748990e 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_quoted_type.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_quoted_type.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_uses_future.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_uses_future.py.snap index 0e51cf4a6f..98e748990e 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_uses_future.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_uses_future.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__from_typing_import.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__from_typing_import.py.snap index 60159406ca..d15966d4d2 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__from_typing_import.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__from_typing_import.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- from_typing_import.py:5:13: FA100 Add `from __future__ import annotations` to simplify `typing.List` | diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__from_typing_import_many.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__from_typing_import_many.py.snap index 0ec50bc40a..e3426dc720 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__from_typing_import_many.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__from_typing_import_many.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- from_typing_import_many.py:5:13: FA100 Add `from __future__ import annotations` to simplify `typing.List` | diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__import_typing.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__import_typing.py.snap index 328908cfb2..afa5c4aa52 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__import_typing.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__import_typing.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- import_typing.py:5:13: FA100 Add `from __future__ import annotations` to simplify `typing.List` | diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__import_typing_as.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__import_typing_as.py.snap index 05eb2c2a8b..d2ec4a38fd 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__import_typing_as.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__import_typing_as.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- import_typing_as.py:5:13: FA100 Add `from __future__ import annotations` to simplify `typing.List` | diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_lowercase.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_lowercase.py.snap index 0e51cf4a6f..98e748990e 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_lowercase.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_lowercase.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union.py.snap index 0e51cf4a6f..98e748990e 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union_inner.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union_inner.py.snap index 0e51cf4a6f..98e748990e 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union_inner.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union_inner.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_no_types.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_no_types.py.snap index 0e51cf4a6f..98e748990e 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_no_types.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_no_types.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_non_simplifiable_types.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_non_simplifiable_types.py.snap index 0e51cf4a6f..98e748990e 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_non_simplifiable_types.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_non_simplifiable_types.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_uses_future.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_uses_future.py.snap index 0e51cf4a6f..98e748990e 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_uses_future.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_uses_future.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_variable_name.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_variable_name.py.snap index 0e51cf4a6f..98e748990e 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_variable_name.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_variable_name.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_gettext/snapshots/ruff_linter__rules__flake8_gettext__tests__f-string-in-get-text-func-call_INT001.py.snap b/crates/ruff_linter/src/rules/flake8_gettext/snapshots/ruff_linter__rules__flake8_gettext__tests__f-string-in-get-text-func-call_INT001.py.snap index 6c37750fc8..90495ebbad 100644 --- a/crates/ruff_linter/src/rules/flake8_gettext/snapshots/ruff_linter__rules__flake8_gettext__tests__f-string-in-get-text-func-call_INT001.py.snap +++ b/crates/ruff_linter/src/rules/flake8_gettext/snapshots/ruff_linter__rules__flake8_gettext__tests__f-string-in-get-text-func-call_INT001.py.snap @@ -1,10 +1,9 @@ --- source: crates/ruff_linter/src/rules/flake8_gettext/mod.rs +snapshot_kind: text --- INT001.py:1:3: INT001 f-string is resolved before function call; consider `_("string %s") % arg` | 1 | _(f"{'value'}") | ^^^^^^^^^^^^ INT001 | - - diff --git a/crates/ruff_linter/src/rules/flake8_gettext/snapshots/ruff_linter__rules__flake8_gettext__tests__format-in-get-text-func-call_INT002.py.snap b/crates/ruff_linter/src/rules/flake8_gettext/snapshots/ruff_linter__rules__flake8_gettext__tests__format-in-get-text-func-call_INT002.py.snap index 6f37b92e29..99e0cc7e46 100644 --- a/crates/ruff_linter/src/rules/flake8_gettext/snapshots/ruff_linter__rules__flake8_gettext__tests__format-in-get-text-func-call_INT002.py.snap +++ b/crates/ruff_linter/src/rules/flake8_gettext/snapshots/ruff_linter__rules__flake8_gettext__tests__format-in-get-text-func-call_INT002.py.snap @@ -1,10 +1,9 @@ --- source: crates/ruff_linter/src/rules/flake8_gettext/mod.rs +snapshot_kind: text --- INT002.py:1:3: INT002 `format` method argument is resolved before function call; consider `_("string %s") % arg` | 1 | _("{}".format("line")) | ^^^^^^^^^^^^^^^^^^^ INT002 | - - diff --git a/crates/ruff_linter/src/rules/flake8_gettext/snapshots/ruff_linter__rules__flake8_gettext__tests__printf-in-get-text-func-call_INT003.py.snap b/crates/ruff_linter/src/rules/flake8_gettext/snapshots/ruff_linter__rules__flake8_gettext__tests__printf-in-get-text-func-call_INT003.py.snap index 789401f897..69a768d943 100644 --- a/crates/ruff_linter/src/rules/flake8_gettext/snapshots/ruff_linter__rules__flake8_gettext__tests__printf-in-get-text-func-call_INT003.py.snap +++ b/crates/ruff_linter/src/rules/flake8_gettext/snapshots/ruff_linter__rules__flake8_gettext__tests__printf-in-get-text-func-call_INT003.py.snap @@ -1,10 +1,9 @@ --- source: crates/ruff_linter/src/rules/flake8_gettext/mod.rs +snapshot_kind: text --- INT003.py:1:3: INT003 printf-style format is resolved before function call; consider `_("string %s") % arg` | 1 | _("%s" % "line") | ^^^^^^^^^^^^^ INT003 | - - diff --git a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC001_ISC.py.snap b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC001_ISC.py.snap index a168e4b856..aab4a381d1 100644 --- a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC001_ISC.py.snap +++ b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC001_ISC.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_implicit_str_concat/mod.rs +snapshot_kind: text --- ISC.py:1:5: ISC001 [*] Implicitly concatenated string literals on one line | diff --git a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC001_ISC_syntax_error.py.snap b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC001_ISC_syntax_error.py.snap index 01fb083645..97d7c64786 100644 --- a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC001_ISC_syntax_error.py.snap +++ b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC001_ISC_syntax_error.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_implicit_str_concat/mod.rs +snapshot_kind: text --- ISC_syntax_error.py:2:5: SyntaxError: missing closing quote in string literal | diff --git a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC002_ISC.py.snap b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC002_ISC.py.snap index 8daa1c7e21..02d08ef45c 100644 --- a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC002_ISC.py.snap +++ b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC002_ISC.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_implicit_str_concat/mod.rs +snapshot_kind: text --- ISC.py:5:5: ISC002 Implicitly concatenated string literals over multiple lines | @@ -24,5 +25,3 @@ ISC.py:74:10: ISC002 Implicitly concatenated string literals over multiple lines 76 | 77 | # Explicitly concatenated nested f-strings | - - diff --git a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC002_ISC_syntax_error.py.snap b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC002_ISC_syntax_error.py.snap index c09ec34c0f..859f4a3889 100644 --- a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC002_ISC_syntax_error.py.snap +++ b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC002_ISC_syntax_error.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_implicit_str_concat/mod.rs +snapshot_kind: text --- ISC_syntax_error.py:2:5: SyntaxError: missing closing quote in string literal | diff --git a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC003_ISC.py.snap b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC003_ISC.py.snap index ced4db0533..2cac295f82 100644 --- a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC003_ISC.py.snap +++ b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__ISC003_ISC.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_implicit_str_concat/mod.rs +snapshot_kind: text --- ISC.py:9:3: ISC003 Explicitly concatenated string should be implicitly concatenated | diff --git a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC001_ISC.py.snap b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC001_ISC.py.snap index a168e4b856..aab4a381d1 100644 --- a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC001_ISC.py.snap +++ b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC001_ISC.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_implicit_str_concat/mod.rs +snapshot_kind: text --- ISC.py:1:5: ISC001 [*] Implicitly concatenated string literals on one line | diff --git a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC002_ISC.py.snap b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC002_ISC.py.snap index 54dfbdc2e3..ad92f27fe6 100644 --- a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC002_ISC.py.snap +++ b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC002_ISC.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_implicit_str_concat/mod.rs +snapshot_kind: text --- ISC.py:5:5: ISC002 Implicitly concatenated string literals over multiple lines | @@ -65,5 +66,3 @@ ISC.py:74:10: ISC002 Implicitly concatenated string literals over multiple lines 76 | 77 | # Explicitly concatenated nested f-strings | - - diff --git a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap index 1858d1d7e1..bfac2e63a3 100644 --- a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap +++ b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_implicit_str_concat/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__custom.snap b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__custom.snap index 5a34324fe7..c53b5a252f 100644 --- a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__custom.snap +++ b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__custom.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_import_conventions/mod.rs +snapshot_kind: text --- custom.py:3:8: ICN001 `altair` should be imported as `alt` | @@ -304,5 +305,3 @@ custom.py:31:19: ICN001 `pyarrow` should be imported as `pa` 33 | import altair as alt # conventional | = help: Alias `pyarrow` to `pa` - - diff --git a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__custom_banned.snap b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__custom_banned.snap index f0d5ae061b..2b2185e495 100644 --- a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__custom_banned.snap +++ b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__custom_banned.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_import_conventions/mod.rs +snapshot_kind: text --- custom_banned.py:1:1: ICN002 `typing` should not be imported as `t` | @@ -74,5 +75,3 @@ custom_banned.py:9:1: ICN002 `torch.nn.functional` should not be imported as `F` 10 | 11 | from typing import Any # ok | - - diff --git a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__custom_banned_from.snap b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__custom_banned_from.snap index 529369a42d..0189ad3972 100644 --- a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__custom_banned_from.snap +++ b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__custom_banned_from.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_import_conventions/mod.rs +snapshot_kind: text --- custom_banned_from.py:1:1: ICN003 Members of `logging.config` should not be imported explicitly | @@ -44,5 +45,3 @@ custom_banned_from.py:6:1: ICN003 Members of `pandas` should not be imported exp 7 | 8 | import logging.config # ok | - - diff --git a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__defaults.snap b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__defaults.snap index d3f4b0a501..ee7582135f 100644 --- a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__defaults.snap +++ b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__defaults.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_import_conventions/mod.rs +snapshot_kind: text --- defaults.py:6:12: ICN001 [*] `altair` should be imported as `alt` | diff --git a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__from_imports.snap b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__from_imports.snap index 37d2bed52d..d642e4f281 100644 --- a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__from_imports.snap +++ b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__from_imports.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_import_conventions/mod.rs +snapshot_kind: text --- from_imports.py:3:8: ICN001 `xml.dom.minidom` should be imported as `md` | @@ -87,5 +88,3 @@ from_imports.py:10:57: ICN001 `xml.dom.minidom.parseString` should be imported a 12 | # No ICN001 violations | = help: Alias `xml.dom.minidom.parseString` to `pstr` - - diff --git a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__override_defaults.snap b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__override_defaults.snap index 1b81f2b87d..16b6eece77 100644 --- a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__override_defaults.snap +++ b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__override_defaults.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_import_conventions/mod.rs +snapshot_kind: text --- override_default.py:3:8: ICN001 `altair` should be imported as `alt` | @@ -106,5 +107,3 @@ override_default.py:13:19: ICN001 `seaborn` should be imported as `sns` 15 | import altair as alt # conventional | = help: Alias `seaborn` to `sns` - - diff --git a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__remove_defaults.snap b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__remove_defaults.snap index 2af1097a2e..4db12756a0 100644 --- a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__remove_defaults.snap +++ b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__remove_defaults.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_import_conventions/mod.rs +snapshot_kind: text --- remove_default.py:3:8: ICN001 `altair` should be imported as `alt` | @@ -84,5 +85,3 @@ remove_default.py:13:19: ICN001 `seaborn` should be imported as `sns` 15 | import altair as alt # conventional | = help: Alias `seaborn` to `sns` - - diff --git a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__same_name.snap b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__same_name.snap index c30be9f375..0fa59ef67a 100644 --- a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__same_name.snap +++ b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__same_name.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_import_conventions/mod.rs +snapshot_kind: text --- same_name.py:10:41: ICN001 [*] `django.conf.settings` should be imported as `settings` | diff --git a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__tricky.snap b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__tricky.snap index b3c7cc2368..f2f4f18825 100644 --- a/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__tricky.snap +++ b/crates/ruff_linter/src/rules/flake8_import_conventions/snapshots/ruff_linter__rules__flake8_import_conventions__tests__tricky.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_import_conventions/mod.rs +snapshot_kind: text --- tricky.py:7:16: ICN001 [*] `pandas` should be imported as `pd` | @@ -22,5 +23,3 @@ tricky.py:7:16: ICN001 [*] `pandas` should be imported as `pd` 7 |+ import pandas as pd 8 8 | except ImportError: 9 9 | return False - - diff --git a/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG001_LOG001.py.snap b/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG001_LOG001.py.snap index c72edc6042..e4eea11910 100644 --- a/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG001_LOG001.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG001_LOG001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_logging/mod.rs +snapshot_kind: text --- LOG001.py:3:1: LOG001 [*] Use `logging.getLogger()` to instantiate loggers | @@ -36,5 +37,3 @@ LOG001.py:4:1: LOG001 [*] Use `logging.getLogger()` to instantiate loggers 4 |-logging.Logger() 4 |+logging.getLogger() 5 5 | logging.getLogger(__name__) - - diff --git a/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG002_LOG002.py.snap b/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG002_LOG002.py.snap index b737781263..58a4e4af4b 100644 --- a/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG002_LOG002.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG002_LOG002.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_logging/mod.rs +snapshot_kind: text --- LOG002.py:11:11: LOG002 [*] Use `__name__` with `logging.getLogger()` | @@ -78,5 +79,3 @@ LOG002.py:15:16: LOG002 [*] Use `__name__` with `logging.getLogger()` 16 16 | 17 17 | 18 18 | # Override `logging.getLogger` - - diff --git a/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG007_LOG007.py.snap b/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG007_LOG007.py.snap index a8df567912..c700825d18 100644 --- a/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG007_LOG007.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG007_LOG007.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_logging/mod.rs +snapshot_kind: text --- LOG007.py:6:1: LOG007 Use of `logging.exception` with falsy `exc_info` | @@ -48,5 +49,3 @@ LOG007.py:17:1: LOG007 Use of `logging.exception` with falsy `exc_info` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LOG007 18 | exception("foo", exc_info=True) # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG009_LOG009.py.snap b/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG009_LOG009.py.snap index b630875d83..1da6b8e358 100644 --- a/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG009_LOG009.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging/snapshots/ruff_linter__rules__flake8_logging__tests__LOG009_LOG009.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_logging/mod.rs +snapshot_kind: text --- LOG009.py:4:5: LOG009 [*] Use of undocumented `logging.WARN` constant | diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G001.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G001.py.snap index f6e052cf55..2eec8bb3ba 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G001.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- G001.py:4:14: G001 Logging statement uses `str.format` | @@ -142,5 +143,3 @@ G001.py:27:9: G001 Logging statement uses `str.format` 27 | log(msg="Hello {}".format("World!"), level=logging.INFO) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ G001 | - - diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G002.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G002.py.snap index 6ba827bafa..4867dc9276 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G002.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G002.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- G002.py:3:14: G002 Logging statement uses `%` | @@ -34,5 +35,3 @@ G002.py:9:19: G002 Logging statement uses `%` 9 | log(logging.INFO, "Hello %s" % "World!") | ^^^^^^^^^^^^^^^^^^^^^ G002 | - - diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G003.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G003.py.snap index 494761d268..28c83697c6 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G003.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G003.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- G003.py:3:14: G003 Logging statement uses `+` | @@ -34,5 +35,3 @@ G003.py:9:19: G003 Logging statement uses `+` 9 | log(logging.INFO, "Hello" + " " + "World!") | ^^^^^^^^^^^^^^^^^^^^^^^^ G003 | - - diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G004.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G004.py.snap index b0b7f2b823..41f4929b78 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G004.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G004.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- G004.py:4:14: G004 Logging statement uses f-string | diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G010.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G010.py.snap index 8a9191704f..a35bf737c4 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G010.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G010.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- G010.py:6:9: G010 [*] Logging statement uses `warn` instead of `warning` | @@ -82,5 +83,3 @@ G010.py:13:1: G010 [*] Logging statement uses `warn` instead of `warning` 14 13 | warning("foo") 14 |+warning("foo") 15 15 | exception("foo") - - diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G101_1.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G101_1.py.snap index e0fff24c03..cc1f53e735 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G101_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G101_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- G101_1.py:6:9: G101 Logging statement uses an `extra` field that clashes with a `LogRecord` field: `name` | @@ -20,5 +21,3 @@ G101_1.py:15:9: G101 Logging statement uses an `extra` field that clashes with a 16 | }, 17 | ) | - - diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G101_2.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G101_2.py.snap index 7e5e636f87..e121d570ab 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G101_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G101_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- G101_2.py:6:9: G101 Logging statement uses an `extra` field that clashes with a `LogRecord` field: `name` | @@ -20,5 +21,3 @@ G101_2.py:15:9: G101 Logging statement uses an `extra` field that clashes with a 16 | ), 17 | ) | - - diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G201.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G201.py.snap index 34c469ae68..abc5d867f9 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G201.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G201.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- G201.py:8:13: G201 Logging `.exception(...)` should be used instead of `.error(..., exc_info=True)` | @@ -40,5 +41,3 @@ G201.py:33:5: G201 Logging `.exception(...)` should be used instead of `.error(. 34 | 35 | # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G202.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G202.py.snap index 17daeba81a..8a76df5965 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G202.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G202.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- G202.py:8:38: G202 Logging statement has redundant `exc_info` | @@ -40,5 +41,3 @@ G202.py:33:30: G202 Logging statement has redundant `exc_info` 34 | 35 | # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_argparse_parser_error_ok.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_argparse_parser_error_ok.py.snap index d8fca09633..013e8b5130 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_argparse_parser_error_ok.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_argparse_parser_error_ok.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_ok.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_ok.py.snap index d8fca09633..013e8b5130 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_ok.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_ok.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_str_format_ok.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_str_format_ok.py.snap index d8fca09633..013e8b5130 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_str_format_ok.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_str_format_ok.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_simple_ok.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_simple_ok.py.snap index d8fca09633..013e8b5130 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_simple_ok.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_simple_ok.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_warnings_ok.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_warnings_ok.py.snap index d8fca09633..013e8b5130 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_warnings_ok.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_warnings_ok.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_fail_empty.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_fail_empty.snap index 764fcdac4b..9daebc7a6d 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_fail_empty.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_fail_empty.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs +snapshot_kind: text --- example.py:1:1: INP001 File `./resources/test/fixtures/flake8_no_pep420/test_fail_empty/example.py` is part of an implicit namespace package. Add an `__init__.py`. diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_fail_nonempty.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_fail_nonempty.snap index dfbb8bccba..075a6bad1f 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_fail_nonempty.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_fail_nonempty.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs +snapshot_kind: text --- example.py:1:1: INP001 File `./resources/test/fixtures/flake8_no_pep420/test_fail_nonempty/example.py` is part of an implicit namespace package. Add an `__init__.py`. diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_ignored.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_ignored.snap index 624dce3225..c5d164d0c1 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_ignored.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_ignored.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_init.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_init.snap index 624dce3225..c5d164d0c1 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_init.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_init.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_namespace_package.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_namespace_package.snap index 624dce3225..c5d164d0c1 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_namespace_package.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_namespace_package.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pep723.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pep723.snap index 624dce3225..c5d164d0c1 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pep723.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pep723.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pyi.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pyi.snap index 624dce3225..c5d164d0c1 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pyi.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_script.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_script.snap index 624dce3225..c5d164d0c1 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_script.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_script.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_shebang.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_shebang.snap index 624dce3225..c5d164d0c1 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_shebang.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_shebang.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE790_PIE790.py.snap b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE790_PIE790.py.snap index b2356b7f34..702980195d 100644 --- a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE790_PIE790.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE790_PIE790.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pie/mod.rs +snapshot_kind: text --- PIE790.py:4:5: PIE790 [*] Unnecessary `pass` statement | @@ -674,5 +675,3 @@ PIE790.py:209:9: PIE790 [*] Unnecessary `...` literal 210 209 | 211 210 | 212 211 | class Repro(Protocol[int]): - - diff --git a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE794_PIE794.py.snap b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE794_PIE794.py.snap index f5945563ff..38c05b1b79 100644 --- a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE794_PIE794.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE794_PIE794.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pie/mod.rs +snapshot_kind: text --- PIE794.py:4:5: PIE794 [*] Class field `name` is defined multiple times | @@ -109,5 +110,3 @@ PIE794.py:52:5: PIE794 [*] Class field `name` is defined multiple times 50 50 | name: str = "Foo" 51 51 | name: str = name + " Bar" 52 |- name: str = "Bar" # PIE794 - - diff --git a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE796_PIE796.py.snap b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE796_PIE796.py.snap index e10325ed1b..afb8aefef0 100644 --- a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE796_PIE796.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE796_PIE796.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pie/mod.rs +snapshot_kind: text --- PIE796.py:8:5: PIE796 Enum contains duplicate value: `"B"` | @@ -73,5 +74,3 @@ PIE796.py:72:5: PIE796 Enum contains duplicate value: `...` 72 | C = ... # PIE796 | ^^^^^^^ PIE796 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE796_PIE796.pyi.snap b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE796_PIE796.pyi.snap index 5c6e954faa..4f0d8e6042 100644 --- a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE796_PIE796.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE796_PIE796.pyi.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pie/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE800_PIE800.py.snap b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE800_PIE800.py.snap index 217e4c71f3..a0d47dbf88 100644 --- a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE800_PIE800.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE800_PIE800.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pie/mod.rs +snapshot_kind: text --- PIE800.py:1:14: PIE800 [*] Unnecessary spread `**` | @@ -129,6 +130,4 @@ PIE800.py:19:19: PIE800 [*] Unnecessary spread `**` 19 |+{**foo, **buzz, bar: 10} # PIE800 20 20 | 21 21 | {**foo, "bar": True } # OK -22 22 | - - +22 22 | diff --git a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE804_PIE804.py.snap b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE804_PIE804.py.snap index b6a65ca50d..0e21639f56 100644 --- a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE804_PIE804.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE804_PIE804.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pie/mod.rs +snapshot_kind: text --- PIE804.py:1:5: PIE804 [*] Unnecessary `dict` kwargs | diff --git a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE807_PIE807.py.snap b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE807_PIE807.py.snap index 474c3456d5..dac3e255b8 100644 --- a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE807_PIE807.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE807_PIE807.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pie/mod.rs +snapshot_kind: text --- PIE807.py:3:44: PIE807 [*] Prefer `list` over useless lambda | @@ -114,5 +115,3 @@ PIE807.py:14:36: PIE807 [*] Prefer `dict` over useless lambda 15 15 | 16 16 | 17 17 | @dataclass - - diff --git a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE808_PIE808.py.snap b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE808_PIE808.py.snap index 91c5932b02..ada350d109 100644 --- a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE808_PIE808.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE808_PIE808.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pie/mod.rs +snapshot_kind: text --- PIE808.py:2:7: PIE808 [*] Unnecessary `start` argument in `range` | diff --git a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE810_PIE810.py.snap b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE810_PIE810.py.snap index d2d29d693f..1084393b53 100644 --- a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE810_PIE810.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE810_PIE810.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pie/mod.rs +snapshot_kind: text --- PIE810.py:2:1: PIE810 [*] Call `startswith` once with a `tuple` | @@ -142,5 +143,3 @@ PIE810.py:25:8: PIE810 [*] Call `startswith` once with a `tuple` 26 26 | print("yes") 27 27 | 28 28 | # ok - - diff --git a/crates/ruff_linter/src/rules/flake8_print/snapshots/ruff_linter__rules__flake8_print__tests__T201_T201.py.snap b/crates/ruff_linter/src/rules/flake8_print/snapshots/ruff_linter__rules__flake8_print__tests__T201_T201.py.snap index 2cbb575361..140a3a2f30 100644 --- a/crates/ruff_linter/src/rules/flake8_print/snapshots/ruff_linter__rules__flake8_print__tests__T201_T201.py.snap +++ b/crates/ruff_linter/src/rules/flake8_print/snapshots/ruff_linter__rules__flake8_print__tests__T201_T201.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_print/mod.rs +snapshot_kind: text --- T201.py:4:1: T201 [*] `print` found | @@ -78,5 +79,3 @@ T201.py:7:1: T201 [*] `print` found 8 7 | 9 8 | with tempfile.NamedTemporaryFile() as fp: 10 9 | print("Hello, world!", file=fp) # OK - - diff --git a/crates/ruff_linter/src/rules/flake8_print/snapshots/ruff_linter__rules__flake8_print__tests__T203_T203.py.snap b/crates/ruff_linter/src/rules/flake8_print/snapshots/ruff_linter__rules__flake8_print__tests__T203_T203.py.snap index f63e108c86..72436e2483 100644 --- a/crates/ruff_linter/src/rules/flake8_print/snapshots/ruff_linter__rules__flake8_print__tests__T203_T203.py.snap +++ b/crates/ruff_linter/src/rules/flake8_print/snapshots/ruff_linter__rules__flake8_print__tests__T203_T203.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_print/mod.rs +snapshot_kind: text --- T203.py:3:1: T203 [*] `pprint` found | @@ -38,5 +39,3 @@ T203.py:7:1: T203 [*] `pprint` found 7 |-pprint.pprint("Hello, world!") # T203 8 7 | 9 8 | pprint.pformat("Hello, world!") - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI001_PYI001.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI001_PYI001.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI001_PYI001.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI001_PYI001.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI001_PYI001.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI001_PYI001.pyi.snap index 507a18c3ea..b692edd277 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI001_PYI001.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI001_PYI001.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI001.pyi:3:5: PYI001 Name of private `TypeVar` must start with `_` | @@ -30,5 +31,3 @@ PYI001.pyi:7:5: PYI001 Name of private `ParamSpec` must start with `_` 8 | 9 | _T = TypeVar("_T") # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI002_PYI002.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI002_PYI002.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI002_PYI002.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI002_PYI002.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI002_PYI002.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI002_PYI002.pyi.snap index 06c726dff4..c56b6522bb 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI002_PYI002.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI002_PYI002.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI002.pyi:3:4: PYI002 `if` test must be a simple comparison against `sys.platform` or `sys.version_info` | @@ -36,5 +37,3 @@ PYI002.pyi:6:4: PYI002 `if` test must be a simple comparison against `sys.platfo 6 | if sys.maxsize == 42: ... # Y002 If test must be a simple comparison against sys.platform or sys.version_info | ^^^^^^^^^^^^^^^^^ PYI002 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI003_PYI003.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI003_PYI003.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI003_PYI003.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI003_PYI003.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI003_PYI003.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI003_PYI003.pyi.snap index 192cfafc96..154f4567e8 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI003_PYI003.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI003_PYI003.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI003.pyi:4:4: PYI003 Unrecognized `sys.version_info` check | @@ -169,5 +170,3 @@ PYI003.pyi:24:4: PYI003 Unrecognized `sys.version_info` check 25 | if sys.version_info >= (3, 4, 3): ... # Y004 Version comparison must use only major and minor version 26 | if sys.version_info == (3, 4): ... # Y006 Use only < and >= for version comparisons | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI004_PYI004.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI004_PYI004.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI004_PYI004.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI004_PYI004.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI004_PYI004.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI004_PYI004.pyi.snap index 8be6ef6e1b..d0c82f0eae 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI004_PYI004.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI004_PYI004.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI004.pyi:4:4: PYI004 Version comparison must use only major and minor version | @@ -38,5 +39,3 @@ PYI004.pyi:7:4: PYI004 Version comparison must use only major and minor version 8 | 9 | if sys.version_info[0] == 2: ... | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI005_PYI005.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI005_PYI005.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI005_PYI005.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI005_PYI005.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI005_PYI005.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI005_PYI005.pyi.snap index 45c52d42c3..24382f3628 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI005_PYI005.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI005_PYI005.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI005.pyi:4:4: PYI005 Version comparison must be against a length-1 tuple | @@ -16,5 +17,3 @@ PYI005.pyi:5:4: PYI005 Version comparison must be against a length-2 tuple 5 | if sys.version_info[:2] == (2,): ... # Y005 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PYI005 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI006_PYI006.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI006_PYI006.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI006_PYI006.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI006_PYI006.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI006_PYI006.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI006_PYI006.pyi.snap index 55abdd253b..2ff61307f9 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI006_PYI006.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI006_PYI006.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI006.pyi:8:4: PYI006 Use `<` or `>=` for `sys.version_info` comparisons | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI007_PYI007.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI007_PYI007.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI007_PYI007.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI007_PYI007.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI007_PYI007.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI007_PYI007.pyi.snap index 91457d5fc0..1a8efc3409 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI007_PYI007.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI007_PYI007.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI007.pyi:7:4: PYI007 Unrecognized `sys.platform` check | @@ -28,5 +29,3 @@ PYI007.pyi:11:4: PYI007 Unrecognized `sys.platform` check 11 | if sys.platform == 10.12: ... # Error: PYI007 Unrecognized sys.platform check | ^^^^^^^^^^^^^^^^^^^^^ PYI007 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI008_PYI008.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI008_PYI008.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI008_PYI008.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI008_PYI008.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI008_PYI008.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI008_PYI008.pyi.snap index 43550f78a4..7ce6c888f6 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI008_PYI008.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI008_PYI008.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI008.pyi:3:20: PYI008 Unrecognized platform `linus` | @@ -10,5 +11,3 @@ PYI008.pyi:3:20: PYI008 Unrecognized platform `linus` 4 | 5 | if sys.platform != "linux": ... # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI009_PYI009.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI009_PYI009.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI009_PYI009.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI009_PYI009.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI009_PYI009.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI009_PYI009.pyi.snap index d4c1347bf3..20aad76466 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI009_PYI009.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI009_PYI009.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI009.pyi:3:5: PYI009 [*] Empty body should contain `...`, not `pass` | @@ -35,5 +36,3 @@ PYI009.pyi:8:5: PYI009 [*] Empty body should contain `...`, not `pass` 7 7 | class Foo: 8 |- pass # ERROR PYI009, since we're in a stub file 8 |+ ... # ERROR PYI009, since we're in a stub file - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI010_PYI010.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI010_PYI010.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI010_PYI010.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI010_PYI010.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI010_PYI010.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI010_PYI010.pyi.snap index 516ca749ad..b70e93d11b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI010_PYI010.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI010_PYI010.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI010.pyi:6:5: PYI010 [*] Function body must contain only `...` | @@ -60,5 +61,3 @@ PYI010.pyi:12:5: PYI010 [*] Function body must contain only `...` 13 13 | 14 14 | def foo3(): 15 15 | pass # OK, pass is handled by another rule - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI011_PYI011.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI011_PYI011.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI011_PYI011.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI011_PYI011.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI011_PYI011.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI011_PYI011.pyi.snap index 6a68fe21f2..e8e0429c3a 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI011_PYI011.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI011_PYI011.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI011.pyi:10:14: PYI011 [*] Only simple default values allowed for typed arguments | @@ -453,5 +454,3 @@ PYI011.pyi:159:14: PYI011 [*] Only simple default values allowed for typed argum 160 |- + "", 159 |+ x: str = ..., 161 160 | ) -> None: ... - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI012_PYI012.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI012_PYI012.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI012_PYI012.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI012_PYI012.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI012_PYI012.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI012_PYI012.pyi.snap index 9b67fe2854..dd47bc25a8 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI012_PYI012.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI012_PYI012.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI012.pyi:5:5: PYI012 [*] Class body must not contain `pass` | @@ -116,5 +117,3 @@ PYI012.pyi:28:5: PYI012 [*] Class body must not contain `pass` 29 28 | 30 29 | def __init__(): 31 30 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI013_PYI013.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI013_PYI013.py.snap index 5dfb8d8b4b..50855dac19 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI013_PYI013.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI013_PYI013.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI013.py:3:5: PYI013 [*] Non-empty class body must not contain `...` | @@ -145,5 +146,3 @@ PYI013.py:36:5: PYI013 [*] Non-empty class body must not contain `...` 37 36 | 38 37 | def __init__(): 39 38 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI013_PYI013.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI013_PYI013.pyi.snap index 83ac30ca4e..c33018dabc 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI013_PYI013.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI013_PYI013.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI013.pyi:5:5: PYI013 [*] Non-empty class body must not contain `...` | @@ -172,5 +173,3 @@ PYI013.pyi:36:5: PYI013 [*] Non-empty class body must not contain `...` 37 36 | 38 37 | def __init__(): 39 38 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI014_PYI014.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI014_PYI014.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI014_PYI014.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI014_PYI014.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI014_PYI014.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI014_PYI014.pyi.snap index cdad97490f..fdba744bde 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI014_PYI014.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI014_PYI014.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI014.pyi:3:7: PYI014 [*] Only simple default values allowed for arguments | @@ -311,5 +312,3 @@ PYI014.pyi:78:7: PYI014 [*] Only simple default values allowed for arguments 79 79 | ) -> None: ... 80 80 | def f23( 81 81 | x=True, # OK - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI015_PYI015.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI015_PYI015.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI015_PYI015.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI015_PYI015.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI015_PYI015.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI015_PYI015.pyi.snap index 95ae4adb58..8aa3d8f983 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI015_PYI015.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI015_PYI015.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI015.pyi:44:23: PYI015 [*] Only simple default values allowed for assignments | @@ -229,5 +230,3 @@ PYI015.pyi:55:11: PYI015 [*] Only simple default values allowed for assignments 56 56 | 57 57 | # We shouldn't emit Y015 within functions 58 58 | def f(): - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI016_PYI016.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI016_PYI016.py.snap index 7714c55373..8bcb745074 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI016_PYI016.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI016_PYI016.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI016.py:7:15: PYI016 Duplicate union member `str` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI016_PYI016.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI016_PYI016.pyi.snap index 80ee79f174..d201c3af47 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI016_PYI016.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI016_PYI016.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI016.pyi:7:15: PYI016 Duplicate union member `str` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI017_PYI017.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI017_PYI017.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI017_PYI017.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI017_PYI017.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI017_PYI017.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI017_PYI017.pyi.snap index 497a4e5cf6..ad32ef1706 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI017_PYI017.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI017_PYI017.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI017.pyi:4:1: PYI017 Stubs should not contain assignments to attributes or multiple targets | @@ -40,5 +41,3 @@ PYI017.pyi:10:1: PYI017 Stubs should not contain assignments to attributes or mu 11 | 12 | i: TypeAlias = int | str # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI018_PYI018.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI018_PYI018.py.snap index 9ca737a920..48ad913ae5 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI018_PYI018.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI018_PYI018.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI018.py:6:1: PYI018 Private TypeVar `_T` is never used | @@ -48,5 +49,3 @@ PYI018.py:10:1: PYI018 Private TypeVarTuple `_Ts2` is never used 11 | 12 | # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI018_PYI018.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI018_PYI018.pyi.snap index 4585ae25ba..38973cdec6 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI018_PYI018.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI018_PYI018.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI018.pyi:6:1: PYI018 Private TypeVar `_T` is never used | @@ -48,5 +49,3 @@ PYI018.pyi:10:1: PYI018 Private TypeVarTuple `_Ts2` is never used 11 | 12 | # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI019_PYI019.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI019_PYI019.pyi.snap index 0fba8ea76b..9ad778be25 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI019_PYI019.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI019_PYI019.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI019.pyi:7:62: PYI019 Methods like `__new__` should return `Self` instead of a custom `TypeVar` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI020_PYI020.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI020_PYI020.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI020_PYI020.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI020_PYI020.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI020_PYI020.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI020_PYI020.pyi.snap index f10bbc7b83..20e2ab752e 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI020_PYI020.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI020_PYI020.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI020.pyi:7:10: PYI020 [*] Quoted annotations should not be included in stubs | @@ -183,5 +184,3 @@ PYI020.pyi:24:8: PYI020 [*] Quoted annotations should not be included in stubs 25 25 | 26 26 | # These two shouldn't trigger Y020 -- empty strings can't be "quoted annotations" 27 27 | k = "" # Y052 Need type annotation for "k" - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI021_PYI021.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI021_PYI021.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI021_PYI021.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI021_PYI021.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI024_PYI024.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI024_PYI024.py.snap index 4f25453dce..26a733c659 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI024_PYI024.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI024_PYI024.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI024.py:3:9: PYI024 Use `typing.NamedTuple` instead of `collections.namedtuple` | @@ -33,5 +34,3 @@ PYI024.py:9:10: PYI024 Use `typing.NamedTuple` instead of `collections.namedtupl 11 | ) # Y024 Use "typing.NamedTuple" instead of "collections.namedtuple" | = help: Replace with `typing.NamedTuple` - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI024_PYI024.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI024_PYI024.pyi.snap index 6c28b654a4..cb5cf788b5 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI024_PYI024.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI024_PYI024.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI024.pyi:3:9: PYI024 Use `typing.NamedTuple` instead of `collections.namedtuple` | @@ -33,5 +34,3 @@ PYI024.pyi:9:10: PYI024 Use `typing.NamedTuple` instead of `collections.namedtup 11 | ) # Y024 Use "typing.NamedTuple" instead of "collections.namedtuple" | = help: Replace with `typing.NamedTuple` - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_1.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_1.py.snap index 3fd40be9ec..441394e41a 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI025_1.py:10:33: PYI025 [*] Use `from collections.abc import Set as AbstractSet` to avoid confusion with the `set` builtin | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_1.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_1.pyi.snap index 208551931e..04eae20530 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_1.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_1.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI025_1.pyi:8:33: PYI025 [*] Use `from collections.abc import Set as AbstractSet` to avoid confusion with the `set` builtin | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_2.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_2.py.snap index 1177dc90ec..31448f859e 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI025_2.py:3:29: PYI025 [*] Use `from collections.abc import Set as AbstractSet` to avoid confusion with the `set` builtin | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_2.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_2.pyi.snap index 41feeabda6..3b5be7bd6b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_2.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_2.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI025_2.pyi:3:29: PYI025 [*] Use `from collections.abc import Set as AbstractSet` to avoid confusion with the `set` builtin | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_3.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_3.py.snap index 008e685029..5d8c7a1004 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_3.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI025_3.py:6:36: PYI025 [*] Use `from collections.abc import Set as AbstractSet` to avoid confusion with the `set` builtin | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_3.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_3.pyi.snap index ae54570974..836003f87e 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_3.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI025_PYI025_3.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI025_3.pyi:6:36: PYI025 [*] Use `from collections.abc import Set as AbstractSet` to avoid confusion with the `set` builtin | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI026_PYI026.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI026_PYI026.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI026_PYI026.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI026_PYI026.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI026_PYI026.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI026_PYI026.pyi.snap index 91c4bbddd7..92f63d9f4c 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI026_PYI026.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI026_PYI026.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI026.pyi:3:1: PYI026 [*] Use `typing.TypeAlias` for type alias, e.g., `NewAny: TypeAlias = Any` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI029_PYI029.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI029_PYI029.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI029_PYI029.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI029_PYI029.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI029_PYI029.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI029_PYI029.pyi.snap index 40bdd22441..231615e3b0 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI029_PYI029.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI029_PYI029.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI029.pyi:10:9: PYI029 [*] Defining `__str__` in a stub is almost always redundant | @@ -58,5 +59,3 @@ PYI029.pyi:14:9: PYI029 [*] Defining `__str__` in a stub is almost always redund 15 14 | 16 15 | class NoReturnSpecified: 17 16 | def __str__(self): ... - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI030_PYI030.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI030_PYI030.py.snap index 82093c63aa..6fd27a5470 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI030_PYI030.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI030_PYI030.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI030.py:9:9: PYI030 [*] Multiple literal members in a union. Use a single literal, e.g. `Literal[1, 2]` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI030_PYI030.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI030_PYI030.pyi.snap index 7d49337d4c..ed6b8ce87e 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI030_PYI030.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI030_PYI030.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI030.pyi:9:9: PYI030 [*] Multiple literal members in a union. Use a single literal, e.g. `Literal[1, 2]` | @@ -526,5 +527,3 @@ PYI030.pyi:89:10: PYI030 [*] Multiple literal members in a union. Use a single l 88 88 | # Should use the first literal subscript attribute when fixing 89 |-field25: typing.Union[typing_extensions.Literal[1], typing.Union[Literal[2], typing.Union[Literal[3], Literal[4]]], str] # Error 89 |+field25: typing.Union[typing_extensions.Literal[1, 2, 3, 4], str] # Error - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI032_PYI032.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI032_PYI032.py.snap index b6b3713235..730106f00e 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI032_PYI032.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI032_PYI032.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI032.py:6:29: PYI032 [*] Prefer `object` to `Any` for the second parameter to `__eq__` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI032_PYI032.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI032_PYI032.pyi.snap index 76cd8c068f..3e18a528d0 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI032_PYI032.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI032_PYI032.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI032.pyi:6:29: PYI032 [*] Prefer `object` to `Any` for the second parameter to `__eq__` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI033_PYI033.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI033_PYI033.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI033_PYI033.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI033_PYI033.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI033_PYI033.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI033_PYI033.pyi.snap index 9e6ec21774..e8b1546f72 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI033_PYI033.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI033_PYI033.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI033.pyi:6:22: PYI033 Don't use type comments in stub file | @@ -102,5 +103,3 @@ PYI033.pyi:32:26: PYI033 Don't use type comments in stub file | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PYI033 33 | # This whole line is commented out and indented # type: str | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI035_PYI035.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI035_PYI035.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI035_PYI035.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI035_PYI035.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI035_PYI035.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI035_PYI035.pyi.snap index 916bdb443a..ddf4519f8e 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI035_PYI035.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI035_PYI035.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI035.pyi:1:1: PYI035 `__all__` in a stub file must have a value, as it has the same semantics as `__all__` at runtime | @@ -27,5 +28,3 @@ PYI035.pyi:8:5: PYI035 `__slots__` in a stub file must have a value, as it has t 9 | 10 | class Bar: | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI036_PYI036.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI036_PYI036.py.snap index 2f3dc38a50..38fe8de87f 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI036_PYI036.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI036_PYI036.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI036.py:54:31: PYI036 [*] Star-args in `__exit__` should be annotated with `object` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI036_PYI036.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI036_PYI036.pyi.snap index 7f31ca0ccd..84b458353f 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI036_PYI036.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI036_PYI036.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI036.pyi:54:31: PYI036 [*] Star-args in `__exit__` should be annotated with `object` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI041_PYI041.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI041_PYI041.py.snap index e1721adde5..dba3e9a548 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI041_PYI041.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI041_PYI041.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI041.py:22:14: PYI041 Use `float` instead of `int | float` | @@ -46,5 +47,3 @@ PYI041.py:46:24: PYI041 Use `complex` instead of `int | complex` | ^^^^^^^^^^^^^^^^^^^^^ PYI041 47 | ... | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI041_PYI041.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI041_PYI041.pyi.snap index 914faa5156..e75e5add98 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI041_PYI041.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI041_PYI041.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI041.pyi:21:14: PYI041 Use `float` instead of `int | float` | @@ -40,5 +41,3 @@ PYI041.pyi:39:24: PYI041 Use `complex` instead of `int | complex` 39 | def bad(self, arg: int | float | complex) -> None: ... # PYI041 | ^^^^^^^^^^^^^^^^^^^^^ PYI041 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI042_PYI042.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI042_PYI042.py.snap index 539eb12d99..fee16d7b55 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI042_PYI042.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI042_PYI042.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI042.py:10:1: PYI042 Type alias `just_literals_pipe_union` should be CamelCase | @@ -36,5 +37,3 @@ PYI042.py:27:6: PYI042 Type alias `foo_bar` should be CamelCase | ^^^^^^^ PYI042 28 | type FooBar = int | str | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI042_PYI042.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI042_PYI042.pyi.snap index 9d1d034c00..44d9636fca 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI042_PYI042.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI042_PYI042.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI042.pyi:10:1: PYI042 Type alias `just_literals_pipe_union` should be CamelCase | @@ -36,5 +37,3 @@ PYI042.pyi:27:6: PYI042 Type alias `foo_bar` should be CamelCase | ^^^^^^^ PYI042 28 | type FooBar = int | str | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI043_PYI043.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI043_PYI043.py.snap index 550ad122d1..8fa3be2dda 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI043_PYI043.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI043_PYI043.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI043.py:10:1: PYI043 Private type alias `_PrivateAliasT` should not be suffixed with `T` (the `T` suffix implies that an object is a `TypeVar`) | @@ -37,5 +38,3 @@ PYI043.py:26:6: PYI043 Private type alias `_FooT` should not be suffixed with `T | ^^^^^ PYI043 27 | type Foo = str | int | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI043_PYI043.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI043_PYI043.pyi.snap index 80fb8b4c19..1b98a7729b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI043_PYI043.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI043_PYI043.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI043.pyi:10:1: PYI043 Private type alias `_PrivateAliasT` should not be suffixed with `T` (the `T` suffix implies that an object is a `TypeVar`) | @@ -37,5 +38,3 @@ PYI043.pyi:26:6: PYI043 Private type alias `_FooT` should not be suffixed with ` | ^^^^^ PYI043 27 | type Foo = str | int | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI044_PYI044.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI044_PYI044.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI044_PYI044.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI044_PYI044.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI044_PYI044.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI044_PYI044.pyi.snap index 94fa6d7a63..d1595c40da 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI044_PYI044.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI044_PYI044.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI044.pyi:2:1: PYI044 `from __future__ import annotations` has no effect in stub files, since type checkers automatically treat stubs as having those semantics | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI045_PYI045.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI045_PYI045.py.snap index 54d3502134..39967a4bbd 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI045_PYI045.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI045_PYI045.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI045.py:12:27: PYI045 `__iter__` methods should return an `Iterator`, not an `Iterable` | @@ -56,5 +57,3 @@ PYI045.py:84:28: PYI045 `__aiter__` methods should return an `AsyncIterator`, no | ^^^^^^^^^^^^^^^^^^^^ PYI045 85 | ... | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI045_PYI045.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI045_PYI045.pyi.snap index 475a3f2d2a..09b485db0b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI045_PYI045.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI045_PYI045.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI045.pyi:9:27: PYI045 `__iter__` methods should return an `Iterator`, not an `Iterable` | @@ -57,5 +58,3 @@ PYI045.pyi:49:28: PYI045 `__aiter__` methods should return an `AsyncIterator`, n 49 | def __aiter__(self) -> typing.AsyncIterable: ... # Error: PYI045 | ^^^^^^^^^^^^^^^^^^^^ PYI045 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI046_PYI046.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI046_PYI046.py.snap index 3787d04a3f..69f5b98235 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI046_PYI046.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI046_PYI046.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI046.py:5:7: PYI046 Private protocol `_Foo` is never used | @@ -21,5 +22,3 @@ PYI046.py:16:7: PYI046 Private protocol `_Baz` is never used | ^^^^ PYI046 17 | x: _T | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI046_PYI046.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI046_PYI046.pyi.snap index ce2f2d7bc5..9cd85868ae 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI046_PYI046.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI046_PYI046.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI046.pyi:5:7: PYI046 Private protocol `_Foo` is never used | @@ -21,5 +22,3 @@ PYI046.pyi:16:7: PYI046 Private protocol `_Baz` is never used | ^^^^ PYI046 17 | x: _T | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI047_PYI047.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI047_PYI047.py.snap index 73a6e051d1..9e0fb19eea 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI047_PYI047.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI047_PYI047.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI047.py:6:1: PYI047 Private TypeAlias `_UnusedPrivateTypeAlias` is never used | @@ -34,5 +35,3 @@ PYI047.py:25:6: PYI047 Private TypeAlias `_UnusedGeneric695` is never used 26 | 27 | type _UsedPEP695 = str | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI047_PYI047.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI047_PYI047.pyi.snap index 096a1dd558..7d883e58e4 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI047_PYI047.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI047_PYI047.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI047.pyi:6:1: PYI047 Private TypeAlias `_UnusedPrivateTypeAlias` is never used | @@ -34,5 +35,3 @@ PYI047.pyi:25:6: PYI047 Private TypeAlias `_UnusedGeneric695` is never used 26 | 27 | type _UsedPEP695 = str | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI048_PYI048.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI048_PYI048.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI048_PYI048.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI048_PYI048.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI048_PYI048.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI048_PYI048.pyi.snap index adad4a83f7..185bceeff0 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI048_PYI048.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI048_PYI048.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI048.pyi:8:5: PYI048 Function body must contain exactly one statement | @@ -30,5 +31,3 @@ PYI048.pyi:17:5: PYI048 Function body must contain exactly one statement 18 | print("fizz") 19 | print("buzz") | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI049_PYI049.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI049_PYI049.py.snap index c50ecfef7c..6c5b9a2542 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI049_PYI049.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI049_PYI049.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI049.py:5:7: PYI049 Private TypedDict `_UnusedTypedDict` is never used | @@ -21,5 +22,3 @@ PYI049.py:21:1: PYI049 Private TypedDict `_UnusedTypedDict3` is never used | ^^^^^^^^^^^^^^^^^ PYI049 22 | _UsedTypedDict3 = TypedDict("_UsedTypedDict3", {"bar": bytes}) | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI049_PYI049.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI049_PYI049.pyi.snap index 189b4bade5..4164e08658 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI049_PYI049.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI049_PYI049.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI049.pyi:6:7: PYI049 Private TypedDict `_UnusedTypedDict` is never used | @@ -32,5 +33,3 @@ PYI049.pyi:43:11: PYI049 Private TypedDict `_UnusedTypeDict4` is never used | ^^^^^^^^^^^^^^^^ PYI049 44 | pass | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI050_PYI050.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI050_PYI050.py.snap index 10e43df19d..1ae425e4ba 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI050_PYI050.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI050_PYI050.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI050.py:13:24: PYI050 Prefer `typing.Never` over `NoReturn` for argument annotations | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI050_PYI050.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI050_PYI050.pyi.snap index 6b8acaec83..194e7e0253 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI050_PYI050.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI050_PYI050.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI050.pyi:6:24: PYI050 Prefer `typing.Never` over `NoReturn` for argument annotations | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI051_PYI051.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI051_PYI051.py.snap index 1e67d47c63..0c3240cda0 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI051_PYI051.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI051_PYI051.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI051.py:4:18: PYI051 `Literal["foo"]` is redundant in a union with `str` | @@ -86,5 +87,3 @@ PYI051.py:9:53: PYI051 `Literal[3.14]` is redundant in a union with `float` 10 | 11 | # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI051_PYI051.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI051_PYI051.pyi.snap index b5da422a00..bae4feaf99 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI051_PYI051.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI051_PYI051.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI051.pyi:4:18: PYI051 `Literal["foo"]` is redundant in a union with `str` | @@ -86,5 +87,3 @@ PYI051.pyi:9:53: PYI051 `Literal[3.14]` is redundant in a union with `float` 10 | 11 | # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI052_PYI052.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI052_PYI052.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI052_PYI052.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI052_PYI052.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI052_PYI052.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI052_PYI052.pyi.snap index 0c39af3a9f..4fd76e3458 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI052_PYI052.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI052_PYI052.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI052.pyi:14:10: PYI052 Need type annotation for `field5` | @@ -137,5 +138,3 @@ PYI052.pyi:114:11: PYI052 Need type annotation for `WIZ` 114 | WIZ = 4 | ^ PYI052 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI053_PYI053.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI053_PYI053.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI053_PYI053.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI053_PYI053.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI053_PYI053.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI053_PYI053.pyi.snap index 501c5a3100..bf4d9d6f2c 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI053_PYI053.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI053_PYI053.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI053.pyi:7:14: PYI053 [*] String and bytes literals longer than 50 characters are not permitted | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI054_PYI054.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI054_PYI054.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI054_PYI054.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI054_PYI054.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI054_PYI054.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI054_PYI054.pyi.snap index 24457599a3..dc5e48b97a 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI054_PYI054.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI054_PYI054.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI054.pyi:2:16: PYI054 [*] Numeric literals with a string representation longer than ten characters are not permitted | @@ -157,5 +158,3 @@ PYI054.pyi:20:20: PYI054 [*] Numeric literals with a string representation longe 19 19 | field16: complex = -1e1234567j 20 |-field17: complex = 1e123456789j # Error: PYI054 20 |+field17: complex = ... # Error: PYI054 - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI055_PYI055.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI055_PYI055.py.snap index d7fed5bd1e..12f0c1df0b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI055_PYI055.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI055_PYI055.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI055.py:31:8: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[requests_mock.Mocker | httpretty | str]`. | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI055_PYI055.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI055_PYI055.pyi.snap index c94c341181..d72a0b3054 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI055_PYI055.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI055_PYI055.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI055.pyi:4:4: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[int | str | complex]`. | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI056_PYI056.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI056_PYI056.py.snap index 850ee67d1f..1263e37890 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI056_PYI056.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI056_PYI056.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI056.py:4:1: PYI056 Calling `.append()` on `__all__` may not be supported by all type checkers (use `+=` instead) | @@ -28,5 +29,3 @@ PYI056.py:6:1: PYI056 Calling `.remove()` on `__all__` may not be supported by a 7 | 8 | # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI056_PYI056.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI056_PYI056.pyi.snap index fbc462d426..5ce21b2983 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI056_PYI056.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI056_PYI056.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI056.pyi:4:1: PYI056 Calling `.append()` on `__all__` may not be supported by all type checkers (use `+=` instead) | @@ -28,5 +29,3 @@ PYI056.pyi:6:1: PYI056 Calling `.remove()` on `__all__` may not be supported by 7 | 8 | # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI057_PYI057.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI057_PYI057.py.snap index 918f1dbdc4..d7db1d959c 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI057_PYI057.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI057_PYI057.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI057.py:4:20: PYI057 Do not use `typing.ByteString`, which has unclear semantics and is deprecated | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI057_PYI057.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI057_PYI057.pyi.snap index d1193d2759..0be6f3fa5f 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI057_PYI057.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI057_PYI057.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI057.pyi:4:20: PYI057 Do not use `typing.ByteString`, which has unclear semantics and is deprecated | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI058_PYI058.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI058_PYI058.py.snap index 67a1ecba57..db2ba3e211 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI058_PYI058.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI058_PYI058.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI058.py:5:13: PYI058 [*] Use `Iterator` as the return value for simple `__iter__` methods | @@ -159,6 +160,4 @@ PYI058.py:73:13: PYI058 [*] Use `AsyncIterator` as the return value for simple ` 73 |+ def __aiter__(self, /) -> collections.abc.AsyncIterator[str]: 74 74 | ... # PYI058 (Use `AsyncIterator`) 75 75 | -76 76 | - - +76 76 | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI058_PYI058.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI058_PYI058.pyi.snap index 9da7931b51..47c5de12a4 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI058_PYI058.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI058_PYI058.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI058.pyi:5:13: PYI058 [*] Use `Iterator` as the return value for simple `__iter__` methods | @@ -186,5 +187,3 @@ PYI058.pyi:56:13: PYI058 [*] Use `AsyncIterator` as the return value for simple 57 57 | 58 58 | def scope(): 59 59 | from typing import Iterator - - diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI059_PYI059.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI059_PYI059.py.snap index bcb28618ff..b4095f293a 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI059_PYI059.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI059_PYI059.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI059.py:8:17: PYI059 [*] `Generic[]` should always be the last base class | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI059_PYI059.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI059_PYI059.pyi.snap index eec9fa9f22..0f0a1bb9d1 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI059_PYI059.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI059_PYI059.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI059.pyi:8:17: PYI059 [*] `Generic[]` should always be the last base class | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI062_PYI062.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI062_PYI062.py.snap index 1470b5190f..3d6346e3f3 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI062_PYI062.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI062_PYI062.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI062.py:5:25: PYI062 [*] Duplicate literal member `True` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI062_PYI062.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI062_PYI062.pyi.snap index af053f2bb5..78eb08c779 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI062_PYI062.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI062_PYI062.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI062.pyi:5:25: PYI062 [*] Duplicate literal member `True` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI063_PYI063.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI063_PYI063.py.snap index 030bdd99cf..385ba903f4 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI063_PYI063.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI063_PYI063.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI063.py:6:9: PYI063 Use PEP 570 syntax for positional-only arguments | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI063_PYI063.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI063_PYI063.pyi.snap index 8a943194f3..8cef657f05 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI063_PYI063.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI063_PYI063.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI063.pyi:6:9: PYI063 Use PEP 570 syntax for positional-only arguments | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI064_PYI064.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI064_PYI064.py.snap index 4e441d5012..6024f77555 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI064_PYI064.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI064_PYI064.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI064.py:3:1: PYI064 [*] `Final[Literal[True]]` can be replaced with a bare `Final` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI064_PYI064.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI064_PYI064.pyi.snap index 2c25d8adc5..6bd5bb04b4 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI064_PYI064.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI064_PYI064.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI064.pyi:3:1: PYI064 [*] `Final[Literal[True]]` can be replaced with a bare `Final` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI066_PYI066.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI066_PYI066.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI066_PYI066.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI066_PYI066.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI066_PYI066.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI066_PYI066.pyi.snap index fbc165d719..64cb01f72c 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI066_PYI066.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI066_PYI066.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI066.pyi:3:4: PYI066 Use `>=` when using `if`-`else` with `sys.version_info` comparisons | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__custom_classmethod_rules_preview.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__custom_classmethod_rules_preview.snap index db2592f12e..57ed22c125 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__custom_classmethod_rules_preview.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__custom_classmethod_rules_preview.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI019.pyi:7:62: PYI019 Methods like `__new__` should return `Self` instead of a custom `TypeVar` | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__preview__PYI006_PYI006.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__preview__PYI006_PYI006.py.snap index 00c743d9c3..a5f79c0998 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__preview__PYI006_PYI006.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__preview__PYI006_PYI006.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI006.py:8:4: PYI006 Use `<` or `>=` for `sys.version_info` comparisons | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__preview__PYI006_PYI006.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__preview__PYI006_PYI006.pyi.snap index 55abdd253b..2ff61307f9 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__preview__PYI006_PYI006.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__preview__PYI006_PYI006.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI006.pyi:8:4: PYI006 Use `<` or `>=` for `sys.version_info` comparisons | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__preview__PYI044_PYI044.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__preview__PYI044_PYI044.pyi.snap index 5ddf8be331..fbeb56a996 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__preview__PYI044_PYI044.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__preview__PYI044_PYI044.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI044.pyi:2:1: PYI044 [*] `from __future__ import annotations` has no effect in stub files, since type checkers automatically treat stubs as having those semantics | diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__py38_PYI026_PYI026.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__py38_PYI026_PYI026.py.snap index f0a4f44d2b..5990d00bfe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__py38_PYI026_PYI026.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__py38_PYI026_PYI026.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__py38_PYI026_PYI026.pyi.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__py38_PYI026_PYI026.pyi.snap index 7c5cd31523..50f0d9a5fe 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__py38_PYI026_PYI026.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__py38_PYI026_PYI026.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs +snapshot_kind: text --- PYI026.pyi:3:1: PYI026 [*] Use `typing_extensions.TypeAlias` for type alias, e.g., `NewAny: TypeAlias = Any` | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT001_default.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT001_default.snap index 62b6b322b3..3a95ca7c64 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT001_default.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT001_default.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT001.py:14:1: PT001 [*] Use `@pytest.fixture` over `@pytest.fixture()` | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT001_parentheses.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT001_parentheses.snap index 05e4fcdcba..31ad575ded 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT001_parentheses.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT001_parentheses.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT001.py:9:1: PT001 [*] Use `@pytest.fixture()` over `@pytest.fixture` | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT002.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT002.snap index 4185534912..bde3e57c91 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT002.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT002.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT002.py:14:1: PT002 Configuration for fixture `my_fixture` specified via positional args, use kwargs | @@ -16,5 +17,3 @@ PT002.py:19:1: PT002 Configuration for fixture `my_fixture` specified via positi 20 | def my_fixture(): # Error mixed 21 | return 0 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT003.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT003.snap index 1e7536acab..cb9365cd0f 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT003.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT003.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT003.py:14:17: PT003 [*] `scope='function'` is implied in `@pytest.fixture()` | @@ -160,5 +161,3 @@ PT003.py:66:5: PT003 [*] `scope='function'` is implied in `@pytest.fixture()` 70 66 | name2=name, name3="my_fixture", **kwargs 71 67 | ) 72 68 | def error_multiple_args(): - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT004.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT004.snap index 4617a063c5..c20fe525af 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT004.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT004.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT004.py:51:5: PT004 Fixture `patch_something` does not return anything, add leading underscore | @@ -17,5 +18,3 @@ PT004.py:56:5: PT004 Fixture `activate_context` does not return anything, add le 57 | with context: 58 | yield | - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT005.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT005.snap index 40023ff641..f9ffa66148 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT005.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT005.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT005.py:41:5: PT005 Fixture `_my_fixture` returns a value, remove leading underscore | @@ -26,5 +27,3 @@ PT005.py:52:5: PT005 Fixture `_activate_context` returns a value, remove leading 53 | if some_condition: 54 | with get_context() as context: | - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT006_csv.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT006_csv.snap index be44a3102e..57420af4f5 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT006_csv.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT006_csv.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT006.py:24:26: PT006 [*] Wrong type passed to first argument of `@pytest.mark.parametrize`; expected a string of comma-separated values | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT006_default.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT006_default.snap index 2942fa06d4..ddd4e40f51 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT006_default.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT006_default.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT006.py:9:26: PT006 [*] Wrong type passed to first argument of `@pytest.mark.parametrize`; expected `tuple` | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT006_list.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT006_list.snap index b5c44886ca..ed5e5b11cf 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT006_list.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT006_list.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT006.py:9:26: PT006 [*] Wrong type passed to first argument of `@pytest.mark.parametrize`; expected `list` | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_list_of_lists.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_list_of_lists.snap index 1feb8b1d24..91eb458ab5 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_list_of_lists.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_list_of_lists.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT007.py:4:35: PT007 [*] Wrong values type in `@pytest.mark.parametrize` expected `list` of `list` | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_list_of_tuples.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_list_of_tuples.snap index 2ee341b846..43f731e8ac 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_list_of_tuples.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_list_of_tuples.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT007.py:4:35: PT007 [*] Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple` | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_tuple_of_lists.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_tuple_of_lists.snap index 93a0b2954c..66a0fc45d2 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_tuple_of_lists.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_tuple_of_lists.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT007.py:12:9: PT007 [*] Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `list` | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_tuple_of_tuples.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_tuple_of_tuples.snap index 3d90a13b2e..207746ec53 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_tuple_of_tuples.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT007_tuple_of_tuples.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT007.py:23:9: PT007 [*] Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `tuple` | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT008.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT008.snap index 9a09810de5..04372accb8 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT008.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT008.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT008.py:35:1: PT008 Use `return_value=` instead of patching with `lambda` | @@ -112,5 +113,3 @@ PT008.py:48:1: PT008 Use `return_value=` instead of patching with `lambda` 48 | module_mocker.patch.object(obj, "attr", lambda *args, **kwargs: None) | ^^^^^^^^^^^^^^^^^^^^^^^^^^ PT008 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT009.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT009.snap index 572c08916f..3a26cdd240 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT009.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT009.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT009.py:11:9: PT009 [*] Use a regular `assert` instead of unittest-style `assertTrue` | @@ -659,5 +660,3 @@ PT009.py:98:2: PT009 [*] Use a regular `assert` instead of unittest-style `asser 99 |- "piAx_piAy_beta[r][x][y] = {17}".format( 100 |- self.model.piAx_piAy_beta[r][x][y]))) 98 |+assert "piAx_piAy_beta[r][x][y] = {17}".format(self.model.piAx_piAy_beta[r][x][y]) - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT010.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT010.snap index b4a70fd896..d1a8d705a3 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT010.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT010.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT010.py:5:10: PT010 set the expected exception in `pytest.raises()` | @@ -8,5 +9,3 @@ PT010.py:5:10: PT010 set the expected exception in `pytest.raises()` | ^^^^^^^^^^^^^ PT010 6 | pass | - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_default.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_default.snap index bbd75855a6..6b57732fdc 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_default.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_default.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT011.py:18:24: PT011 `pytest.raises(ValueError)` is too broad, set the `match` parameter or use a more specific exception | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_extend_broad_exceptions.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_extend_broad_exceptions.snap index 911ddaa1a5..1e03532e70 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_extend_broad_exceptions.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_extend_broad_exceptions.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT011.py:13:24: PT011 `pytest.raises(ZeroDivisionError)` is too broad, set the `match` parameter or use a more specific exception | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_glob_all.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_glob_all.snap index c3b1f0f78d..42cd9f1bdb 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_glob_all.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_glob_all.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT011.py:13:24: PT011 `pytest.raises(ZeroDivisionError)` is too broad, set the `match` parameter or use a more specific exception | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_glob_prefix.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_glob_prefix.snap index 225502e096..493e5b2a6f 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_glob_prefix.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_glob_prefix.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT011.py:27:24: PT011 `pytest.raises(pickle.PicklingError)` is too broad, set the `match` parameter or use a more specific exception | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_replace_broad_exceptions.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_replace_broad_exceptions.snap index 9ffc1874a3..1fd3e1badd 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_replace_broad_exceptions.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT011_replace_broad_exceptions.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT011.py:13:24: PT011 `pytest.raises(ZeroDivisionError)` is too broad, set the `match` parameter or use a more specific exception | @@ -8,5 +9,3 @@ PT011.py:13:24: PT011 `pytest.raises(ZeroDivisionError)` is too broad, set the ` | ^^^^^^^^^^^^^^^^^ PT011 14 | raise ZeroDivisionError("Can't divide by 0") | - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT012.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT012.snap index 3a9d77b806..469faa3fb0 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT012.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT012.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT012.py:42:5: PT012 `pytest.raises()` block should contain a single simple statement | @@ -85,5 +86,3 @@ PT012.py:71:5: PT012 `pytest.raises()` block should contain a single simple stat 75 | | raise | |_________________^ PT012 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT013.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT013.snap index 0202a8cb8f..9c7121756e 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT013.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT013.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT013.py:11:1: PT013 Incorrect import of `pytest`; use `import pytest` instead | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT014.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT014.snap index 92240183c3..0926603ee0 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT014.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT014.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT014.py:4:35: PT014 [*] Duplicate of test case at index 0 in `@pytest_mark.parametrize` | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT015.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT015.snap index 6bd15c3a12..152e292cc6 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT015.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT015.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT015.py:9:5: PT015 Assertion always fails, replace with `pytest.fail()` | @@ -166,5 +167,3 @@ PT015.py:25:5: PT015 Assertion always fails, replace with `pytest.fail()` 25 | assert tuple("") | ^^^^^^^^^^^^^^^^ PT015 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT016.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT016.snap index 4586ae4494..ac5c1f3a36 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT016.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT016.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT016.py:19:5: PT016 No message passed to `pytest.fail()` | @@ -67,5 +68,3 @@ PT016.py:25:5: PT016 No message passed to `pytest.fail()` 25 | pytest.fail(reason=f"") | ^^^^^^^^^^^ PT016 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT017.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT017.snap index 3bfc17a4b2..588a3a8460 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT017.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT017.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT017.py:19:9: PT017 Found assertion on exception `e` in `except` block, use `pytest.raises()` instead | @@ -8,5 +9,3 @@ PT017.py:19:9: PT017 Found assertion on exception `e` in `except` block, use `py 19 | assert e.message, "blah blah" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PT017 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT018.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT018.snap index cf96ebfbb1..4d6b8eb065 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT018.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT018.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT018.py:14:5: PT018 [*] Assertion should be broken down into multiple parts | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT019.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT019.snap index fefca3d139..309e4a19ec 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT019.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT019.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT019.py:9:14: PT019 Fixture `_fixture` without value is injected as parameter, use `@pytest.mark.usefixtures` instead | @@ -14,5 +15,3 @@ PT019.py:13:17: PT019 Fixture `_fixture` without value is injected as parameter, | ^^^^^^^^ PT019 14 | pass | - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT020.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT020.snap index c75c178f95..40b10db9ef 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT020.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT020.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT020.py:14:1: PT020 `@pytest.yield_fixture` is deprecated, use `@pytest.fixture` | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT021.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT021.snap index 2873de7aec..b406e3998e 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT021.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT021.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT021.py:49:5: PT021 Use `yield` instead of `request.addfinalizer` | @@ -19,5 +20,3 @@ PT021.py:56:5: PT021 Use `yield` instead of `request.addfinalizer` 57 | yield resource 58 | resource # prevent PT022 | - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT022.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT022.snap index 33378e77f0..bacf1e2170 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT022.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT022.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT022.py:17:5: PT022 [*] No teardown in fixture `error`, use `return` instead of `yield` | @@ -60,5 +61,3 @@ PT022.py:43:5: PT022 [*] No teardown in fixture `error`, use `return` instead of 42 42 | resource = acquire_resource() 43 |- yield resource 43 |+ return resource - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT023_default.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT023_default.snap index 62aa7f5890..8240fc440b 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT023_default.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT023_default.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT023.py:46:1: PT023 [*] Use `@pytest.mark.foo` over `@pytest.mark.foo()` | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT023_parentheses.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT023_parentheses.snap index 57bf657ad2..4021157c87 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT023_parentheses.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT023_parentheses.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT023.py:12:1: PT023 [*] Use `@pytest.mark.foo()` over `@pytest.mark.foo` | diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT024.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT024.snap index 29707b0e73..b8d8a2f677 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT024.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT024.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT024.py:14:1: PT024 [*] `pytest.mark.asyncio` is unnecessary for fixtures | @@ -73,5 +74,3 @@ PT024.py:33:1: PT024 [*] `pytest.mark.asyncio` is unnecessary for fixtures 33 |-@pytest.mark.asyncio 34 33 | async def my_fixture(): # Error after no parens 35 34 | return 0 - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT025.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT025.snap index ba4457e915..0463f18a8b 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT025.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT025.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT025.py:9:1: PT025 [*] `pytest.mark.usefixtures` has no effect on fixtures | @@ -36,5 +37,3 @@ PT025.py:16:1: PT025 [*] `pytest.mark.usefixtures` has no effect on fixtures 16 |-@pytest.mark.usefixtures("a") 17 16 | def my_fixture(): # Error after 18 17 | return 0 - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT026.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT026.snap index 8fb8c8d7fe..27461361c8 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT026.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT026.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT026.py:19:1: PT026 [*] Useless `pytest.mark.usefixtures` without parameters | @@ -37,5 +38,3 @@ PT026.py:24:1: PT026 [*] Useless `pytest.mark.usefixtures` without parameters 24 |+ 25 25 | def test_error_no_parens(): 26 26 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT027_0.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT027_0.snap index 555cfdd5c7..344bb2b4ca 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT027_0.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT027_0.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT027_0.py:6:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises` | @@ -244,5 +245,3 @@ PT027_0.py:44:13: PT027 Use `pytest.raises` instead of unittest-style `assertRai 48 | raise ValueError | = help: Replace `assertRaises` with `pytest.raises` - - diff --git a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT027_1.snap b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT027_1.snap index cc642fb5d8..6e4b4b463e 100644 --- a/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT027_1.snap +++ b/crates/ruff_linter/src/rules/flake8_pytest_style/snapshots/ruff_linter__rules__flake8_pytest_style__tests__PT027_1.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs +snapshot_kind: text --- PT027_1.py:11:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises` | @@ -17,5 +18,3 @@ PT027_1.py:11:14: PT027 [*] Use `pytest.raises` instead of unittest-style `asser 11 |- with self.assertRaises(ValueError): 11 |+ with pytest.raises(ValueError): 12 12 | raise ValueError - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__only_docstring_doubles_all.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__only_docstring_doubles_all.py.snap index 6a87062097..33c8d75e3f 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__only_docstring_doubles_all.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__only_docstring_doubles_all.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- doubles_all.py:1:1: Q002 [*] Double quote docstring found but single quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__only_inline_doubles_all.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__only_inline_doubles_all.py.snap index 0ca50ac62e..380c00dbba 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__only_inline_doubles_all.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__only_inline_doubles_all.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- doubles_all.py:3:28: Q000 [*] Double quotes found but single quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__only_multiline_doubles_all.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__only_multiline_doubles_all.py.snap index ddffe1bb80..e290dfc0f2 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__only_multiline_doubles_all.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__only_multiline_doubles_all.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- doubles_all.py:5:30: Q001 [*] Double quote multiline found but single quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles.py.snap index 771a4ddc2b..da092eac7e 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles.py:5:1: Q001 [*] Double quote multiline found but single quotes preferred | @@ -127,5 +128,3 @@ docstring_doubles.py:35:13: Q001 [*] Double quote multiline found but single quo 37 |- """ 37 |+ ''' 38 38 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_class.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_class.py.snap index 5eb1e20892..5d977b04ba 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_class.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_class.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles_class.py:3:5: Q001 [*] Double quote multiline found but single quotes preferred | @@ -40,6 +41,4 @@ docstring_doubles_class.py:5:23: Q001 [*] Double quote multiline found but singl 5 |+ def foo(self, bar='''not a docstring'''): 6 6 | """ Double quotes single line method docstring""" 7 7 | pass -8 8 | - - +8 8 | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_function.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_function.py.snap index b669528cd7..c679542311 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_function.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_function.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles_function.py:3:5: Q001 [*] Double quote multiline found but single quotes preferred | @@ -101,6 +102,4 @@ docstring_doubles_function.py:22:5: Q001 [*] Double quote multiline found but si 22 |+ ''' not a docstring '''): 23 23 | pass 24 24 | -25 25 | - - +25 25 | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_multiline.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_multiline.py.snap index 058c60b924..f0a6a7feac 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_multiline.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_multiline.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles_module_multiline.py:4:1: Q001 [*] Double quote multiline found but single quotes preferred | @@ -47,5 +48,3 @@ docstring_doubles_module_multiline.py:9:1: Q001 [*] Double quote multiline found 10 10 | this is not a docstring 11 |-""" 11 |+''' - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_singleline.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_singleline.py.snap index 64f43441c8..5d6f9808eb 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_singleline.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_singleline.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles_module_singleline.py:2:1: Q001 [*] Double quote multiline found but single quotes preferred | @@ -34,5 +35,3 @@ docstring_doubles_module_singleline.py:6:1: Q001 [*] Double quote multiline foun 5 5 | pass 6 |-""" this is not a docstring """ 6 |+''' this is not a docstring ''' - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles.py.snap index c1c2f2c821..cd7790e71b 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles.py:1:1: Q002 [*] Single quote docstring found but double quotes preferred | @@ -74,6 +75,4 @@ docstring_singles.py:26:9: Q002 [*] Single quote docstring found but double quot 28 |+ """ 29 29 | 30 30 | some_expression = 'hello world' -31 31 | - - +31 31 | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_class.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_class.py.snap index da70df063d..9b31ff6866 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_class.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_class.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles_class.py:2:5: Q002 [*] Single quote docstring found but double quotes preferred | @@ -52,5 +53,3 @@ docstring_singles_class.py:9:29: Q002 [*] Single quote docstring found but doubl 8 8 | 9 |- class Nested(foo()[:]): ''' inline docstring '''; pass 9 |+ class Nested(foo()[:]): """ inline docstring """; pass - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_function.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_function.py.snap index cad7d15422..6f6088b691 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_function.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_function.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles_function.py:2:5: Q002 [*] Single quote docstring found but double quotes preferred | @@ -62,5 +63,3 @@ docstring_singles_function.py:27:5: Q002 [*] Single quote docstring found but do 28 28 | 29 29 | 30 30 | def double_inside_single(a): - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_class_var_1.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_class_var_1.py.snap index 6d3aeaab93..89dbadf013 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_class_var_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_class_var_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles_mixed_quotes_class_var_1.py:2:5: Q002 Single quote docstring found but double quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_class_var_2.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_class_var_2.py.snap index 60ecc511e3..ee86ebe457 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_class_var_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_class_var_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles_mixed_quotes_class_var_2.py:2:5: Q002 [*] Single quote docstring found but double quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_module_singleline_var_1.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_module_singleline_var_1.py.snap index d8a027bcd0..0d3786a620 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_module_singleline_var_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_module_singleline_var_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles_mixed_quotes_module_singleline_var_1.py:1:1: Q002 Single quote docstring found but double quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_module_singleline_var_2.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_module_singleline_var_2.py.snap index 5ffafe0ffd..9037e28bbe 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_module_singleline_var_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_mixed_quotes_module_singleline_var_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles_mixed_quotes_module_singleline_var_2.py:1:1: Q002 [*] Single quote docstring found but double quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_multiline.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_multiline.py.snap index 3924f21233..85937832a7 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_multiline.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_multiline.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles_module_multiline.py:1:1: Q002 [*] Single quote docstring found but double quotes preferred | @@ -21,5 +22,3 @@ docstring_singles_module_multiline.py:1:1: Q002 [*] Single quote docstring found 4 4 | ''' 5 5 | this is not a docstring 6 6 | ''' - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_singleline.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_singleline.py.snap index c1c3012212..061a260223 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_singleline.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_singleline.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles_module_singleline.py:1:1: Q002 [*] Single quote docstring found but double quotes preferred | @@ -15,5 +16,3 @@ docstring_singles_module_singleline.py:1:1: Q002 [*] Single quote docstring foun 2 2 | ''' this is not a docstring ''' 3 3 | 4 4 | def foo(): - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles.py.snap index 8e031c7aab..28116f3c49 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles.py:1:1: Q002 [*] Double quote docstring found but single quotes preferred | @@ -73,6 +74,4 @@ docstring_doubles.py:24:9: Q002 [*] Double quote docstring found but single quot 26 |+ ''' 27 27 | 28 28 | some_expression = 'hello world' -29 29 | - - +29 29 | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_class.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_class.py.snap index 18e358b897..6c9201b6d2 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_class.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_class.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles_class.py:2:5: Q002 [*] Double quote docstring found but single quotes preferred | @@ -52,5 +53,3 @@ docstring_doubles_class.py:9:29: Q002 [*] Double quote docstring found but singl 8 8 | 9 |- class Nested(foo()[:]): """ inline docstring """; pass 9 |+ class Nested(foo()[:]): ''' inline docstring '''; pass - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_function.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_function.py.snap index 3758fc2a7b..4d3427a7ab 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_function.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_function.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles_function.py:2:5: Q002 [*] Double quote docstring found but single quotes preferred | @@ -62,5 +63,3 @@ docstring_doubles_function.py:27:5: Q002 [*] Double quote docstring found but si 28 28 | 29 29 | 30 30 | def double_inside_single(a): - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_class_var_1.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_class_var_1.py.snap index 96ccdbd7f4..8df5f7f4ee 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_class_var_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_class_var_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles_mixed_quotes_class_var_1.py:2:5: Q002 Double quote docstring found but single quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_class_var_2.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_class_var_2.py.snap index e02c3c17c1..eef897e8a4 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_class_var_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_class_var_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles_mixed_quotes_class_var_2.py:2:5: Q002 [*] Double quote docstring found but single quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_module_singleline_var_1.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_module_singleline_var_1.py.snap index df92925a9b..77d174d871 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_module_singleline_var_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_module_singleline_var_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles_mixed_quotes_module_singleline_var_1.py:1:1: Q002 Double quote docstring found but single quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_module_singleline_var_2.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_module_singleline_var_2.py.snap index 31efd169af..8ff2ea1de0 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_module_singleline_var_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_mixed_quotes_module_singleline_var_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles_mixed_quotes_module_singleline_var_2.py:1:1: Q002 [*] Double quote docstring found but single quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_multiline.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_multiline.py.snap index f66291915d..fd73229e29 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_multiline.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_multiline.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles_module_multiline.py:1:1: Q002 [*] Double quote docstring found but single quotes preferred | @@ -21,5 +22,3 @@ docstring_doubles_module_multiline.py:1:1: Q002 [*] Double quote docstring found 4 4 | """ 5 5 | this is not a docstring 6 6 | """ - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_singleline.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_singleline.py.snap index 025add5fdd..c474d2eedb 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_singleline.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_singleline.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_doubles_module_singleline.py:1:1: Q002 [*] Double quote docstring found but single quotes preferred | @@ -15,5 +16,3 @@ docstring_doubles_module_singleline.py:1:1: Q002 [*] Double quote docstring foun 2 2 | """ this is not a docstring """ 3 3 | 4 4 | def foo(): - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles.py.snap index 2a790da62f..d3fb063bfc 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles.py:5:1: Q001 [*] Single quote multiline found but double quotes preferred | @@ -154,5 +155,3 @@ docstring_singles.py:37:13: Q001 [*] Single quote multiline found but double quo 39 |- ''' 39 |+ """ 40 40 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_class.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_class.py.snap index a3a5bcf66e..b995da2bde 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_class.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_class.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles_class.py:3:5: Q001 [*] Single quote multiline found but double quotes preferred | @@ -40,6 +41,4 @@ docstring_singles_class.py:5:23: Q001 [*] Single quote multiline found but doubl 5 |+ def foo(self, bar="""not a docstring"""): 6 6 | ''' Double quotes single line method docstring''' 7 7 | pass -8 8 | - - +8 8 | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_function.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_function.py.snap index afede01c5e..252740c4f4 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_function.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_function.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles_function.py:3:5: Q001 [*] Single quote multiline found but double quotes preferred | @@ -101,6 +102,4 @@ docstring_singles_function.py:22:5: Q001 [*] Single quote multiline found but do 22 |+ """ not a docstring """): 23 23 | pass 24 24 | -25 25 | - - +25 25 | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_multiline.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_multiline.py.snap index 3cefd7eb4a..157f519253 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_multiline.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_multiline.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles_module_multiline.py:4:1: Q001 [*] Single quote multiline found but double quotes preferred | @@ -47,5 +48,3 @@ docstring_singles_module_multiline.py:9:1: Q001 [*] Single quote multiline found 10 10 | this is not a docstring 11 |-''' 11 |+""" - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_singleline.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_singleline.py.snap index f92fff71db..907da2954a 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_singleline.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_singleline.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- docstring_singles_module_singleline.py:2:1: Q001 [*] Single quote multiline found but double quotes preferred | @@ -34,5 +35,3 @@ docstring_singles_module_singleline.py:6:1: Q001 [*] Single quote multiline foun 5 5 | pass 6 |-''' this is not a docstring ''' 6 |+""" this is not a docstring """ - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles.py.snap index 81b0fdf4da..779e8c1379 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- singles.py:1:25: Q000 [*] Single quotes found but double quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_escaped.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_escaped.py.snap index 4cc1920e73..b039517bb1 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_escaped.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_escaped.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- singles_escaped.py:1:26: Q003 [*] Change outer quotes to avoid escaping inner quotes | @@ -213,5 +214,3 @@ singles_escaped.py:39:1: Q003 [*] Change outer quotes to avoid escaping inner qu 38 38 | f"\"normal\" {f"\"nested\" {"other"} normal"} 'single quotes'" # Q003 39 |-f"\"normal\" {f"\"nested\" {"other"} 'single quotes'"} normal" # Q003 39 |+f'"normal" {f"\"nested\" {"other"} 'single quotes'"} normal' # Q003 - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_escaped_py311.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_escaped_py311.snap index e3d039ba63..0ca32efbb5 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_escaped_py311.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_escaped_py311.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- singles_escaped.py:1:26: Q003 [*] Change outer quotes to avoid escaping inner quotes | @@ -76,5 +77,3 @@ singles_escaped.py:21:5: Q003 [*] Change outer quotes to avoid escaping inner qu 22 22 | ) 23 23 | 24 24 | # Nested f-strings (Python 3.12+) - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_escaped_unnecessary.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_escaped_unnecessary.py.snap index 5408f39625..abc266c155 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_escaped_unnecessary.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_escaped_unnecessary.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- singles_escaped_unnecessary.py:1:26: Q004 [*] Unnecessary escape on inner quote character | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_implicit.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_implicit.py.snap index e85c35c669..a3e6dd40bf 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_implicit.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_implicit.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- singles_implicit.py:2:5: Q000 [*] Single quotes found but double quotes preferred | @@ -135,5 +136,3 @@ singles_implicit.py:27:1: Q000 [*] Single quotes found but double quotes preferr 26 26 | 'This can use "single" quotes' 27 |-'But this needs to be changed' 27 |+"But this needs to be changed" - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_multiline_string.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_multiline_string.py.snap index 3fdadee4d8..ae82ed4e51 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_multiline_string.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_multiline_string.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- singles_multiline_string.py:1:5: Q001 [*] Single quote multiline found but double quotes preferred | @@ -22,5 +23,3 @@ singles_multiline_string.py:1:5: Q001 [*] Single quote multiline found but doubl 4 4 | 5 5 | s = """ This 'should' 6 6 | 'not' be - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_noqa.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_noqa.py.snap index a5e579090a..81b913df5d 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_noqa.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_noqa.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_would_be_triple_quotes.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_would_be_triple_quotes.py.snap index 3c5b35cd44..6d78f8e992 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_would_be_triple_quotes.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_would_be_triple_quotes.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- singles_would_be_triple_quotes.py:1:5: Q000 Single quotes found but double quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_wrapped.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_wrapped.py.snap index a5e579090a..81b913df5d 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_wrapped.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_wrapped.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles.py.snap index 594f620909..6ff8370795 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- doubles.py:1:25: Q000 [*] Double quotes found but single quotes preferred | @@ -50,5 +51,3 @@ doubles.py:3:25: Q000 [*] Double quotes found but single quotes preferred 3 |-this_should_be_linted = f"double quote string" 3 |+this_should_be_linted = f'double quote string' 4 4 | this_should_be_linted = f"double {'quote'} string" - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_escaped.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_escaped.py.snap index e93b1aab9a..11f9ea26d4 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_escaped.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_escaped.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- doubles_escaped.py:1:26: Q003 [*] Change outer quotes to avoid escaping inner quotes | @@ -252,5 +253,3 @@ doubles_escaped.py:41:1: Q003 [*] Change outer quotes to avoid escaping inner qu 40 40 | f'\'normal\' {f'\'nested\' {'other'} normal'} "double quotes"' # Q003 41 |-f'\'normal\' {f'\'nested\' {'other'} "double quotes"'} normal' # Q00l 41 |+f"'normal' {f'\'nested\' {'other'} "double quotes"'} normal" # Q00l - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_escaped_py311.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_escaped_py311.snap index 375eaacc46..f6768a4b6f 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_escaped_py311.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_escaped_py311.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- doubles_escaped.py:1:26: Q003 [*] Change outer quotes to avoid escaping inner quotes | @@ -115,5 +116,3 @@ doubles_escaped.py:23:5: Q003 [*] Change outer quotes to avoid escaping inner qu 24 24 | ) 25 25 | 26 26 | # Nested f-strings (Python 3.12+) - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_escaped_unnecessary.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_escaped_unnecessary.py.snap index 4e7c09e9cd..23715cd437 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_escaped_unnecessary.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_escaped_unnecessary.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- doubles_escaped_unnecessary.py:1:26: Q004 [*] Unnecessary escape on inner quote character | @@ -378,5 +379,3 @@ doubles_escaped_unnecessary.py:45:26: Q004 [*] Unnecessary escape on inner quote 44 44 | this_is_fine = 'This is an \\"escaped\\" quote' 45 |-this_should_raise_Q004 = 'This is an \\\"escaped\\\" quote with an extra backslash' 45 |+this_should_raise_Q004 = 'This is an \\"escaped\\" quote with an extra backslash' - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_implicit.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_implicit.py.snap index a44c07a17c..d5b4db8f28 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_implicit.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_implicit.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- doubles_implicit.py:2:5: Q000 [*] Double quotes found but single quotes preferred | @@ -135,5 +136,3 @@ doubles_implicit.py:27:1: Q000 [*] Double quotes found but single quotes preferr 26 26 | "This can use 'double' quotes" 27 |-"But this needs to be changed" 27 |+'But this needs to be changed' - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_multiline_string.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_multiline_string.py.snap index bb0ef317cb..3f3941f842 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_multiline_string.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_multiline_string.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- doubles_multiline_string.py:1:5: Q001 [*] Double quote multiline found but single quotes preferred | @@ -22,5 +23,3 @@ doubles_multiline_string.py:1:5: Q001 [*] Double quote multiline found but singl 4 4 | 5 5 | s = ''' This "should" 6 6 | "not" be - - diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_noqa.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_noqa.py.snap index a5e579090a..81b913df5d 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_noqa.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_noqa.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_would_be_triple_quotes.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_would_be_triple_quotes.py.snap index 031164bad7..5d48f06a35 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_would_be_triple_quotes.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_would_be_triple_quotes.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- doubles_would_be_triple_quotes.py:1:5: Q000 Double quotes found but single quotes preferred | diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_wrapped.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_wrapped.py.snap index a5e579090a..81b913df5d 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_wrapped.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_wrapped.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_raise/snapshots/ruff_linter__rules__flake8_raise__tests__unnecessary-paren-on-raise-exception_RSE102.py.snap b/crates/ruff_linter/src/rules/flake8_raise/snapshots/ruff_linter__rules__flake8_raise__tests__unnecessary-paren-on-raise-exception_RSE102.py.snap index d0dd2b4084..be7643462e 100644 --- a/crates/ruff_linter/src/rules/flake8_raise/snapshots/ruff_linter__rules__flake8_raise__tests__unnecessary-paren-on-raise-exception_RSE102.py.snap +++ b/crates/ruff_linter/src/rules/flake8_raise/snapshots/ruff_linter__rules__flake8_raise__tests__unnecessary-paren-on-raise-exception_RSE102.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_raise/mod.rs +snapshot_kind: text --- RSE102.py:5:21: RSE102 [*] Unnecessary parentheses on raised exception | diff --git a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET501_RET501.py.snap b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET501_RET501.py.snap index 889492cab6..7660c5d800 100644 --- a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET501_RET501.py.snap +++ b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET501_RET501.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_return/mod.rs +snapshot_kind: text --- RET501.py:4:5: RET501 [*] Do not explicitly `return None` in function if it is the only possible return value | diff --git a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET502_RET502.py.snap b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET502_RET502.py.snap index 01d5a439db..8006570b6d 100644 --- a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET502_RET502.py.snap +++ b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET502_RET502.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_return/mod.rs +snapshot_kind: text --- RET502.py:3:9: RET502 [*] Do not implicitly `return None` in function able to return non-`None` value | @@ -18,6 +19,4 @@ RET502.py:3:9: RET502 [*] Do not implicitly `return None` in function able to re 3 |+ return None # error 4 4 | return 1 5 5 | -6 6 | - - +6 6 | diff --git a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET503_RET503.py.snap b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET503_RET503.py.snap index 38a7781530..4c4532202a 100644 --- a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET503_RET503.py.snap +++ b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET503_RET503.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_return/mod.rs +snapshot_kind: text --- RET503.py:21:5: RET503 [*] Missing explicit `return` at the end of function able to return non-`None` value | diff --git a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET504_RET504.py.snap b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET504_RET504.py.snap index 46ffb2df68..8cf3328508 100644 --- a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET504_RET504.py.snap +++ b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET504_RET504.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_return/mod.rs +snapshot_kind: text --- RET504.py:6:12: RET504 [*] Unnecessary assignment to `a` before `return` statement | diff --git a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET505_RET505.py.snap b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET505_RET505.py.snap index 08f4b537b3..5e412cfef1 100644 --- a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET505_RET505.py.snap +++ b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET505_RET505.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_return/mod.rs +snapshot_kind: text --- RET505.py:8:5: RET505 [*] Unnecessary `elif` after `return` statement | diff --git a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET506_RET506.py.snap b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET506_RET506.py.snap index b526b1a6fb..5a16ac0c71 100644 --- a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET506_RET506.py.snap +++ b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET506_RET506.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_return/mod.rs +snapshot_kind: text --- RET506.py:8:5: RET506 [*] Unnecessary `elif` after `raise` statement | diff --git a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET507_RET507.py.snap b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET507_RET507.py.snap index 6b8e47c961..7481cae384 100644 --- a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET507_RET507.py.snap +++ b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET507_RET507.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_return/mod.rs +snapshot_kind: text --- RET507.py:8:9: RET507 [*] Unnecessary `elif` after `continue` statement | diff --git a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET508_RET508.py.snap b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET508_RET508.py.snap index 072b97b754..8d62c54ea0 100644 --- a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET508_RET508.py.snap +++ b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__RET508_RET508.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_return/mod.rs +snapshot_kind: text --- RET508.py:8:9: RET508 [*] Unnecessary `elif` after `break` statement | diff --git a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__preview__RET503_RET503.py.snap b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__preview__RET503_RET503.py.snap index 96478e899a..3af50e3e47 100644 --- a/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__preview__RET503_RET503.py.snap +++ b/crates/ruff_linter/src/rules/flake8_return/snapshots/ruff_linter__rules__flake8_return__tests__preview__RET503_RET503.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_return/mod.rs +snapshot_kind: text --- RET503.py:20:1: RET503 [*] Missing explicit `return` at the end of function able to return non-`None` value | diff --git a/crates/ruff_linter/src/rules/flake8_self/snapshots/ruff_linter__rules__flake8_self__tests__ignore_names.snap b/crates/ruff_linter/src/rules/flake8_self/snapshots/ruff_linter__rules__flake8_self__tests__ignore_names.snap index f3f6136634..343e864f3c 100644 --- a/crates/ruff_linter/src/rules/flake8_self/snapshots/ruff_linter__rules__flake8_self__tests__ignore_names.snap +++ b/crates/ruff_linter/src/rules/flake8_self/snapshots/ruff_linter__rules__flake8_self__tests__ignore_names.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_self/mod.rs +snapshot_kind: text --- SLF001_extended.py:6:5: SLF001 Private member accessed: `_asdict` | @@ -14,5 +15,3 @@ SLF001_extended.py:10:5: SLF001 Private member accessed: `_bar` 10 | obj._bar # SLF001 | ^^^^^^^^ SLF001 | - - diff --git a/crates/ruff_linter/src/rules/flake8_self/snapshots/ruff_linter__rules__flake8_self__tests__private-member-access_SLF001.py.snap b/crates/ruff_linter/src/rules/flake8_self/snapshots/ruff_linter__rules__flake8_self__tests__private-member-access_SLF001.py.snap index 2399883e42..7dedeb769d 100644 --- a/crates/ruff_linter/src/rules/flake8_self/snapshots/ruff_linter__rules__flake8_self__tests__private-member-access_SLF001.py.snap +++ b/crates/ruff_linter/src/rules/flake8_self/snapshots/ruff_linter__rules__flake8_self__tests__private-member-access_SLF001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_self/mod.rs +snapshot_kind: text --- SLF001.py:34:12: SLF001 Private member accessed: `_private` | @@ -107,5 +108,3 @@ SLF001.py:68:7: SLF001 Private member accessed: `_private_thing__` 69 | 70 | print(foo.public_thing) | - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM101_SIM101.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM101_SIM101.py.snap index 7fe5ffe88b..0a3979e46f 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM101_SIM101.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM101_SIM101.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM101.py:1:4: SIM101 [*] Multiple `isinstance` calls for `a`, merge into a single call | diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM102_SIM102.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM102_SIM102.py.snap index 480bd0fa4c..9392ee7b92 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM102_SIM102.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM102_SIM102.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM102.py:2:1: SIM102 [*] Use a single `if` statement instead of nested `if` statements | @@ -353,5 +354,3 @@ SIM102.py:165:5: SIM102 [*] Use a single `if` statement instead of nested `if` s 167 |- d 165 |+ elif b and c: 166 |+ d - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM103_SIM103.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM103_SIM103.py.snap index 1b44533abc..c8b5d7fe55 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM103_SIM103.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM103_SIM103.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM103.py:3:5: SIM103 [*] Return the condition `bool(a)` directly | diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_0.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_0.py.snap index dfd257b8a0..2b875df8c0 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_0.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM105_0.py:6:1: SIM105 [*] Use `contextlib.suppress(ValueError)` instead of `try`-`except`-`pass` | @@ -290,5 +291,3 @@ SIM105_0.py:126:5: SIM105 [*] Use `contextlib.suppress(OSError)` instead of `try 127 |+ with contextlib.suppress(OSError): os.makedirs(model_dir); 129 128 | \ 130 129 | # - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_1.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_1.py.snap index 65f4991e17..4b935dd0b7 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM105_1.py:5:1: SIM105 [*] Use `contextlib.suppress(ValueError)` instead of `try`-`except`-`pass` | @@ -23,5 +24,3 @@ SIM105_1.py:5:1: SIM105 [*] Use `contextlib.suppress(ValueError)` instead of `tr 6 7 | math.sqrt(-1) 7 |-except ValueError: 8 |- pass - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_2.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_2.py.snap index 1963b91bc8..ad20200273 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM105_2.py:10:1: SIM105 [*] Use `contextlib.suppress(ValueError)` instead of `try`-`except`-`pass` | @@ -21,5 +22,3 @@ SIM105_2.py:10:1: SIM105 [*] Use `contextlib.suppress(ValueError)` instead of `t 11 11 | foo() 12 |-except ValueError: 13 |- pass - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_3.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_3.py.snap index b2ba1e9f87..5432c2ba22 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_3.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM105_3.py:10:5: SIM105 Use `contextlib.suppress(ValueError)` instead of `try`-`except`-`pass` | @@ -13,5 +14,3 @@ SIM105_3.py:10:5: SIM105 Use `contextlib.suppress(ValueError)` instead of `try`- | |____________^ SIM105 | = help: Replace with `contextlib.suppress(ValueError)` - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_4.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_4.py.snap index 1389a2ce4f..a292a320b6 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_4.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM105_SIM105_4.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM105_4.py:2:1: SIM105 [*] Use `contextlib.suppress(ImportError)` instead of `try`-`except`-`pass` | @@ -18,5 +19,3 @@ SIM105_4.py:2:1: SIM105 [*] Use `contextlib.suppress(ImportError)` instead of `t 3 |+with contextlib.suppress(ImportError): 3 4 | from __builtin__ import bytes, str, open, super, range, zip, round, int, pow, object, input 4 |-except ImportError: pass - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM107_SIM107.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM107_SIM107.py.snap index c878e47f24..8aa249ae1e 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM107_SIM107.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM107_SIM107.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM107.py:9:9: SIM107 Don't use `return` in `try`-`except` and `finally` | @@ -8,5 +9,3 @@ SIM107.py:9:9: SIM107 Don't use `return` in `try`-`except` and `finally` 9 | return "3" | ^^^^^^^^^^ SIM107 | - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM108_SIM108.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM108_SIM108.py.snap index 12e9c96372..044ff2d9c3 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM108_SIM108.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM108_SIM108.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM108.py:2:1: SIM108 [*] Use ternary operator `b = c if a else d` instead of `if`-`else`-block | diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM109_SIM109.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM109_SIM109.py.snap index 760f432942..2b07ae1874 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM109_SIM109.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM109_SIM109.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM109.py:2:4: SIM109 [*] Use `a in (b, c)` instead of multiple equality comparisons | @@ -74,5 +75,3 @@ SIM109.py:14:4: SIM109 [*] Use `a in (b, c)` instead of multiple equality compar 15 15 | d 16 16 | 17 17 | # OK - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM110_SIM110.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM110_SIM110.py.snap index f23d900036..ffbcfb7622 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM110_SIM110.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM110_SIM110.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM110.py:3:5: SIM110 [*] Use `return any(check(x) for x in iterable)` instead of `for` loop | @@ -349,5 +350,3 @@ SIM110.py:191:5: SIM110 [*] Use `return any(check(x) for x in await iterable)` i 195 192 | 196 193 | def f(): 197 194 | # OK (can't turn this into any() because the yield would end up inside a genexp) - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM110_SIM111.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM110_SIM111.py.snap index 9b59955fe1..324527ae87 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM110_SIM111.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM110_SIM111.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM111.py:3:5: SIM110 [*] Use `return any(check(x) for x in iterable)` instead of `for` loop | @@ -345,5 +346,3 @@ SIM111.py:178:5: SIM110 [*] Use `return all(not x.isdigit() for x in "012ß9💣 182 179 | 183 180 | 184 181 | def f(): - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM112_SIM112.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM112_SIM112.py.snap index fb82814e61..d077e70063 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM112_SIM112.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM112_SIM112.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM112.py:4:12: SIM112 [*] Use capitalized environment variable `FOO` instead of `foo` | @@ -114,6 +115,4 @@ SIM112.py:19:22: SIM112 [*] Use capitalized environment variable `FOO` instead o 19 |+if env := os.environ['FOO']: 20 20 | pass 21 21 | -22 22 | - - +22 22 | diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM113_SIM113.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM113_SIM113.py.snap index b8cc349f0e..d58bcf8512 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM113_SIM113.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM113_SIM113.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM113.py:6:9: SIM113 Use `enumerate()` for index variable `idx` in `for` loop | @@ -43,5 +44,3 @@ SIM113.py:44:9: SIM113 Use `enumerate()` for index variable `idx` in `for` loop | ^^^^^^^^ SIM113 45 | h(x) | - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM114_SIM114.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM114_SIM114.py.snap index 8eb406515e..5ff48d7f26 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM114_SIM114.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM114_SIM114.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM114.py:2:1: SIM114 [*] Combine `if` branches using logical `or` operator | diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM115_SIM115.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM115_SIM115.py.snap index 351d6aa3b1..445f676694 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM115_SIM115.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM115_SIM115.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM115.py:8:5: SIM115 Use a context manager for opening files | diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM116_SIM116.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM116_SIM116.py.snap index f1045b10c4..fb7742657c 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM116_SIM116.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM116_SIM116.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM116.py:5:1: SIM116 Use a dictionary instead of consecutive `if` statements | @@ -108,5 +109,3 @@ SIM116.py:79:1: SIM116 Use a dictionary instead of consecutive `if` statements 87 | 88 | # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM117_SIM117.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM117_SIM117.py.snap index 597f19d7fd..4d487d8406 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM117_SIM117.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM117_SIM117.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM117.py:2:1: SIM117 [*] Use a single `with` statement with multiple contexts instead of nested `with` statements | @@ -339,5 +340,3 @@ SIM117.py:163:1: SIM117 [*] Use a single `with` statement with multiple contexts 165 |- pass 163 |+async with asyncio.timeout(1), A(), B(): 164 |+ pass - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM118_SIM118.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM118_SIM118.py.snap index 8acd4d438b..2251effdcd 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM118_SIM118.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM118_SIM118.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM118.py:3:1: SIM118 [*] Use `key in dict` instead of `key in dict.keys()` | diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM201_SIM201.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM201_SIM201.py.snap index 7bc978ae96..b0381d5c3c 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM201_SIM201.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM201_SIM201.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM201.py:2:4: SIM201 [*] Use `a != b` instead of `not a == b` | @@ -55,5 +56,3 @@ SIM201.py:10:4: SIM201 [*] Use `a + b != c` instead of `not a + b == c` 11 11 | pass 12 12 | 13 13 | # OK - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM202_SIM202.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM202_SIM202.py.snap index 46e9c368fa..4cd1ded7e0 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM202_SIM202.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM202_SIM202.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM202.py:2:4: SIM202 [*] Use `a == b` instead of `not a != b` | @@ -55,5 +56,3 @@ SIM202.py:10:4: SIM202 [*] Use `a + b == c` instead of `not a + b != c` 11 11 | pass 12 12 | 13 13 | # OK - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM208_SIM208.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM208_SIM208.py.snap index fa96fedd50..df03a92a72 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM208_SIM208.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM208_SIM208.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM208.py:1:4: SIM208 [*] Use `a` instead of `not (not a)` | @@ -95,5 +96,3 @@ SIM208.py:20:9: SIM208 [*] Use `a` instead of `not (not a)` 20 |-if 1 + (not (not a)): # SIM208 20 |+if 1 + (bool(a)): # SIM208 21 21 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM210_SIM210.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM210_SIM210.py.snap index 50c7b4ebe9..3f510cfa80 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM210_SIM210.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM210_SIM210.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM210.py:1:5: SIM210 [*] Use `bool(...)` instead of `True if ... else False` | @@ -85,5 +86,3 @@ SIM210.py:19:11: SIM210 [*] Remove unnecessary `True if ... else False` 20 |- psl.privatesuffix(src.netloc)) else False 19 |+samesld = (psl.privatesuffix(urlparse(response.url).netloc) == 20 |+ psl.privatesuffix(src.netloc)) - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM211_SIM211.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM211_SIM211.py.snap index 8e3650b7e5..d929bce24b 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM211_SIM211.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM211_SIM211.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM211.py:1:5: SIM211 [*] Use `not ...` instead of `False if ... else True` | @@ -56,5 +57,3 @@ SIM211.py:5:5: SIM211 [*] Use `not ...` instead of `False if ... else True` 5 |+a = not b + c # SIM211 6 6 | 7 7 | a = True if b else False # OK - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM212_SIM212.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM212_SIM212.py.snap index 35b8bc12a5..e921f9fc83 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM212_SIM212.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM212_SIM212.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM212.py:1:5: SIM212 [*] Use `a if a else b` instead of `b if not a else a` | @@ -35,6 +36,4 @@ SIM212.py:3:5: SIM212 [*] Use `a if a else b + c` instead of `b + c if not a els 3 |+c = a if a else b + c # SIM212 4 4 | 5 5 | c = b if not x else a # OK -6 6 | - - +6 6 | diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM220_SIM220.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM220_SIM220.py.snap index b0c23c954c..631c661a83 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM220_SIM220.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM220_SIM220.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM220.py:1:4: SIM220 [*] Use `False` instead of `a and not a` | @@ -55,5 +56,3 @@ SIM220.py:7:5: SIM220 [*] Use `False` instead of `a and not a` 8 8 | pass 9 9 | 10 10 | if a: - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM221_SIM221.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM221_SIM221.py.snap index 038e5fcf64..ae2354a7c6 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM221_SIM221.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM221_SIM221.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM221.py:1:4: SIM221 [*] Use `True` instead of `a or not a` | @@ -55,5 +56,3 @@ SIM221.py:7:5: SIM221 [*] Use `True` instead of `a or not a` 8 8 | pass 9 9 | 10 10 | if a: - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM223_SIM223.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM223_SIM223.py.snap index 855b209182..7c83ffeb3c 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM223_SIM223.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM223_SIM223.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM223.py:1:4: SIM223 [*] Use `False` instead of `... and False` | @@ -1023,5 +1024,3 @@ SIM223.py:154:7: SIM223 [*] Use `f"{''}{''}"` instead of `f"{''}{''}" and ...` 154 |-print(f"{''}{''}" and "bar") 154 |+print(f"{''}{''}") 155 155 | print(f"{1}{''}" and "bar") - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM300_SIM300.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM300_SIM300.py.snap index 8af686ef85..208f9d0f67 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM300_SIM300.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM300_SIM300.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM300.py:2:1: SIM300 [*] Yoda condition detected | diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM401_SIM401.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM401_SIM401.py.snap index 15ceaf67f6..4a443f2237 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM401_SIM401.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM401_SIM401.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM401.py:6:1: SIM401 [*] Use `var = a_dict.get(key, "default1")` instead of an `if` block | @@ -198,5 +199,3 @@ SIM401.py:126:7: SIM401 [*] Use `a_dict.get(key, "default-1")` instead of an `if 127 127 | 128 128 | # OK (default contains effect) 129 129 | var = a_dict[key] if key in a_dict else val1 + val2 - - diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM905_SIM905.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM905_SIM905.py.snap index d0b5183467..2699e1e52d 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM905_SIM905.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM905_SIM905.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM905.py:6:1: SIM905 [*] Consider using a list literal instead of `str.split` | diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM910_SIM910.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM910_SIM910.py.snap index 1a312e520a..c43d1e140b 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM910_SIM910.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__SIM910_SIM910.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM910.py:2:1: SIM910 [*] Use `{}.get(key)` instead of `{}.get(key, None)` | diff --git a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__preview__SIM108_SIM108.py.snap b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__preview__SIM108_SIM108.py.snap index 0be8a6b7ca..e94d188dd1 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__preview__SIM108_SIM108.py.snap +++ b/crates/ruff_linter/src/rules/flake8_simplify/snapshots/ruff_linter__rules__flake8_simplify__tests__preview__SIM108_SIM108.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs +snapshot_kind: text --- SIM108.py:2:1: SIM108 [*] Use ternary operator `b = c if a else d` instead of `if`-`else`-block | diff --git a/crates/ruff_linter/src/rules/flake8_slots/snapshots/ruff_linter__rules__flake8_slots__tests__SLOT000_SLOT000.py.snap b/crates/ruff_linter/src/rules/flake8_slots/snapshots/ruff_linter__rules__flake8_slots__tests__SLOT000_SLOT000.py.snap index b98bc9ca9f..46964ddadf 100644 --- a/crates/ruff_linter/src/rules/flake8_slots/snapshots/ruff_linter__rules__flake8_slots__tests__SLOT000_SLOT000.py.snap +++ b/crates/ruff_linter/src/rules/flake8_slots/snapshots/ruff_linter__rules__flake8_slots__tests__SLOT000_SLOT000.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_slots/mod.rs +snapshot_kind: text --- SLOT000.py:1:7: SLOT000 Subclasses of `str` should define `__slots__` | @@ -7,5 +8,3 @@ SLOT000.py:1:7: SLOT000 Subclasses of `str` should define `__slots__` | ^^^ SLOT000 2 | pass | - - diff --git a/crates/ruff_linter/src/rules/flake8_slots/snapshots/ruff_linter__rules__flake8_slots__tests__SLOT001_SLOT001.py.snap b/crates/ruff_linter/src/rules/flake8_slots/snapshots/ruff_linter__rules__flake8_slots__tests__SLOT001_SLOT001.py.snap index 78d730a75e..d4bc0d6035 100644 --- a/crates/ruff_linter/src/rules/flake8_slots/snapshots/ruff_linter__rules__flake8_slots__tests__SLOT001_SLOT001.py.snap +++ b/crates/ruff_linter/src/rules/flake8_slots/snapshots/ruff_linter__rules__flake8_slots__tests__SLOT001_SLOT001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_slots/mod.rs +snapshot_kind: text --- SLOT001.py:1:7: SLOT001 Subclasses of `tuple` should define `__slots__` | diff --git a/crates/ruff_linter/src/rules/flake8_slots/snapshots/ruff_linter__rules__flake8_slots__tests__SLOT002_SLOT002.py.snap b/crates/ruff_linter/src/rules/flake8_slots/snapshots/ruff_linter__rules__flake8_slots__tests__SLOT002_SLOT002.py.snap index d59497d98b..33bac57c22 100644 --- a/crates/ruff_linter/src/rules/flake8_slots/snapshots/ruff_linter__rules__flake8_slots__tests__SLOT002_SLOT002.py.snap +++ b/crates/ruff_linter/src/rules/flake8_slots/snapshots/ruff_linter__rules__flake8_slots__tests__SLOT002_SLOT002.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_slots/mod.rs +snapshot_kind: text --- SLOT002.py:6:7: SLOT002 Subclasses of `collections.namedtuple()` should define `__slots__` | diff --git a/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__ban_all_imports.snap b/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__ban_all_imports.snap index ad07477233..50282b2469 100644 --- a/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__ban_all_imports.snap +++ b/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__ban_all_imports.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_tidy_imports/mod.rs +snapshot_kind: text --- TID252.py:7:1: TID252 Prefer absolute imports over relative imports | @@ -188,5 +189,3 @@ TID252.py:28:1: TID252 Prefer absolute imports over relative imports | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TID252 | = help: Replace relative imports with absolute imports - - diff --git a/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__ban_parent_imports.snap b/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__ban_parent_imports.snap index b8b57e3da7..9a0db54c45 100644 --- a/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__ban_parent_imports.snap +++ b/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__ban_parent_imports.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_tidy_imports/mod.rs +snapshot_kind: text --- TID252.py:9:1: TID252 Prefer absolute imports over relative imports from parent modules | @@ -143,5 +144,3 @@ TID252.py:28:1: TID252 Prefer absolute imports over relative imports from parent | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TID252 | = help: Replace relative imports from parent modules with absolute imports - - diff --git a/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__ban_parent_imports_package.snap b/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__ban_parent_imports_package.snap index 14a601b81f..58146722da 100644 --- a/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__ban_parent_imports_package.snap +++ b/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__ban_parent_imports_package.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_tidy_imports/mod.rs +snapshot_kind: text --- application.py:5:1: TID252 Prefer absolute imports over relative imports from parent modules | @@ -128,5 +129,3 @@ application.py:10:1: TID252 [*] Prefer absolute imports over relative imports fr 9 9 | from . import logger, models 10 |-from ..protocol.UpperCaseModule import some_function 10 |+from my_package.sublib.protocol.UpperCaseModule import some_function - - diff --git a/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__banned_api.snap b/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__banned_api.snap index 9e54f52400..8f97c455d8 100644 --- a/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__banned_api.snap +++ b/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__banned_api.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_tidy_imports/mod.rs +snapshot_kind: text --- TID251.py:2:8: TID251 `cgi` is banned: The cgi module is deprecated. | @@ -116,5 +117,3 @@ TID251.py:33:1: TID251 `typing.TypedDict` is banned: Use typing_extensions.Typed 34 | 35 | # relative imports are respected | - - diff --git a/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__banned_api_package.snap b/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__banned_api_package.snap index 14eb7a6345..fd5b8bfe8b 100644 --- a/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__banned_api_package.snap +++ b/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__banned_api_package.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_tidy_imports/mod.rs +snapshot_kind: text --- application.py:3:8: TID251 `attrs` is banned: The attrs module is deprecated. | @@ -27,5 +28,3 @@ application.py:10:1: TID251 `my_package.sublib.protocol` is banned: The protocol 10 | from ..protocol.UpperCaseModule import some_function | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TID251 | - - diff --git a/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__banned_module_level_imports.snap b/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__banned_module_level_imports.snap index dbabca1e24..cf8a780c15 100644 --- a/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__banned_module_level_imports.snap +++ b/crates/ruff_linter/src/rules/flake8_tidy_imports/snapshots/ruff_linter__rules__flake8_tidy_imports__tests__banned_module_level_imports.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_tidy_imports/mod.rs +snapshot_kind: text --- TID253.py:2:8: TID253 `torch` is banned at the module level | @@ -77,5 +78,3 @@ TID253.py:18:1: TID253 `torch` is banned at the module level 19 | 20 | # unlike TID251, inline imports are *not* banned | - - diff --git a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__invalid-todo-capitalization_TD006.py.snap b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__invalid-todo-capitalization_TD006.py.snap index 7e5c3c1482..6b84c98c68 100644 --- a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__invalid-todo-capitalization_TD006.py.snap +++ b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__invalid-todo-capitalization_TD006.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_todos/mod.rs +snapshot_kind: text --- TD006.py:5:3: TD006 [*] Invalid TODO capitalization: `ToDo` should be `TODO` | diff --git a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__invalid-todo-tag_TD001.py.snap b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__invalid-todo-tag_TD001.py.snap index 1fec01f216..1bc8754c51 100644 --- a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__invalid-todo-tag_TD001.py.snap +++ b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__invalid-todo-tag_TD001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_todos/mod.rs +snapshot_kind: text --- TD001.py:7:3: TD001 Invalid TODO tag: `XXX` | @@ -26,5 +27,3 @@ TD001.py:9:9: TD001 Invalid TODO tag: `XXX` 9 | # foo # XXX: this isn't fine either | ^^^ TD001 | - - diff --git a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-space-after-todo-colon_TD007.py.snap b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-space-after-todo-colon_TD007.py.snap index f786677cea..babe25d322 100644 --- a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-space-after-todo-colon_TD007.py.snap +++ b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-space-after-todo-colon_TD007.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_todos/mod.rs +snapshot_kind: text --- TD007.py:5:3: TD007 Missing space after colon in TODO | @@ -49,5 +50,3 @@ TD007.py:9:9: TD007 Missing space after colon in TODO | ^^^^ TD007 10 | # TODO this colon doesn't terminate the tag, so don't check it. https://www.google.com | - - diff --git a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-author_TD002.py.snap b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-author_TD002.py.snap index 6c6e46881b..5c941c0c12 100644 --- a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-author_TD002.py.snap +++ b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-author_TD002.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_todos/mod.rs +snapshot_kind: text --- TD002.py:11:3: TD002 Missing author in TODO; try: `# TODO(): ...` or `# TODO @: ...` | @@ -37,5 +38,3 @@ TD002.py:14:9: TD002 Missing author in TODO; try: `# TODO(): ...` o 14 | # foo # TODO: this doesn't either | ^^^^ TD002 | - - diff --git a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-colon_TD004.py.snap b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-colon_TD004.py.snap index 2017416133..6b10dd8618 100644 --- a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-colon_TD004.py.snap +++ b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-colon_TD004.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_todos/mod.rs +snapshot_kind: text --- TD004.py:4:3: TD004 Missing colon in TODO | @@ -47,5 +48,3 @@ TD004.py:8:3: TD004 Missing colon in TODO 8 | # TODO this has a colon but it doesn't terminate the tag, so this should throw. https://www.google.com | ^^^^ TD004 | - - diff --git a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-description_TD005.py.snap b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-description_TD005.py.snap index c965f640e5..861fd96e8c 100644 --- a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-description_TD005.py.snap +++ b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-description_TD005.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_todos/mod.rs +snapshot_kind: text --- TD005.py:4:3: TD005 Missing issue description after `TODO` | @@ -37,5 +38,3 @@ TD005.py:7:9: TD005 Missing issue description after `TODO` 7 | # foo # TODO | ^^^^ TD005 | - - diff --git a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-link_TD003.py.snap b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-link_TD003.py.snap index cded21ee12..fb2932b140 100644 --- a/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-link_TD003.py.snap +++ b/crates/ruff_linter/src/rules/flake8_todos/snapshots/ruff_linter__rules__flake8_todos__tests__missing-todo-link_TD003.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_todos/mod.rs +snapshot_kind: text --- TD003.py:9:3: TD003 Missing issue link on the line following this TODO | @@ -46,5 +47,3 @@ TD003.py:31:3: TD003 Missing issue link on the line following this TODO 31 | # TODO: here's a TODO on the last line with no link | ^^^^ TD003 | - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap index 8e6ff46d09..c031566e4f 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH005.py:4:5: TCH005 [*] Found empty type-checking block | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__exempt_modules.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__exempt_modules.snap index 1d292b3f73..fe74f7cac2 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__exempt_modules.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__exempt_modules.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- exempt_modules.py:14:12: TCH002 [*] Move third-party import `flask` into a type-checking block | @@ -26,5 +27,3 @@ exempt_modules.py:14:12: TCH002 [*] Move third-party import `flask` into a type- 14 |- import flask 15 18 | 16 19 | x: flask - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__import_from.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__import_from.snap index 3e81c240c5..1446fb82c6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__import_from.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__import_from.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- :5:5: TCH002 [*] Move third-party import `pandas.DataFrame` into a type-checking block | @@ -27,5 +28,3 @@ source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs 8 13 | 9 14 | def f(x: DataFrame): 10 15 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__import_from_type_checking_block.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__import_from_type_checking_block.snap index 2d2a07add9..b7f4fd394e 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__import_from_type_checking_block.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__import_from_type_checking_block.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- :7:5: TCH002 [*] Move third-party import `pandas.DataFrame` into a type-checking block | @@ -26,5 +27,3 @@ source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs 12 14 | import os 13 15 | 14 16 | def f(x: DataFrame): - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__multiple_members.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__multiple_members.snap index 76bd56d43c..4e3d85fa50 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__multiple_members.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__multiple_members.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- :7:5: TCH002 [*] Move third-party import `pandas.DataFrame` into a type-checking block | @@ -56,5 +57,3 @@ source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs 12 |+ 11 13 | def f(x: DataFrame, y: Series): 12 14 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__multiple_modules_different_types.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__multiple_modules_different_types.snap index 567f695f25..8e5f319bb5 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__multiple_modules_different_types.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__multiple_modules_different_types.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- :6:8: TCH003 [*] Move standard library import `os` into a type-checking block | @@ -48,5 +49,3 @@ source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs 7 10 | 8 11 | def f(x: os, y: pandas): 9 12 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__multiple_modules_same_type.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__multiple_modules_same_type.snap index 6814710f48..379e541537 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__multiple_modules_same_type.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__multiple_modules_same_type.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- :6:8: TCH003 [*] Move standard library import `os` into a type-checking block | @@ -46,5 +47,3 @@ source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs 9 |+ 8 10 | def f(x: os, y: sys): 9 11 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__no_typing_import.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__no_typing_import.snap index 3f9c1fb4f7..9ad0fda0a8 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__no_typing_import.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__no_typing_import.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- :4:18: TCH002 [*] Move third-party import `pandas` into a type-checking block | @@ -24,5 +25,3 @@ source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs 5 8 | 6 9 | def f(x: pd.DataFrame): 7 10 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote.py.snap index de91616ce8..a7faea4767 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- quote.py:57:28: TCH004 [*] Quote references to `pandas.DataFrame`. Import is in a type-checking block. | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote2.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote2.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote2.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote3.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote3.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote3.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote3.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_typing-only-third-party-import_quote3.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_typing-only-third-party-import_quote3.py.snap index 3a33fc66a8..2e7b3d46cd 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_typing-only-third-party-import_quote3.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_typing-only-third-party-import_quote3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- quote3.py:4:44: TCH002 [*] Move third-party import `django.contrib.auth.models.AbstractBaseUser` into a type-checking block | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap index b11905593b..e3041bda97 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH004_1.py:4:26: TCH004 [*] Move import `datetime.datetime` out of type-checking block. Import is used for more than type hinting. | @@ -18,5 +19,3 @@ TCH004_1.py:4:26: TCH004 [*] Move import `datetime.datetime` out of type-checkin 4 |- from datetime import datetime 5 |+ pass 5 6 | x = datetime - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_10.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_10.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_10.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_10.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_11.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_11.py.snap index 1c4e1df589..f37b5a0811 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_11.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_11.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH004_11.py:4:24: TCH004 [*] Move import `typing.List` out of type-checking block. Import is used for more than type hinting. | @@ -20,5 +21,3 @@ TCH004_11.py:4:24: TCH004 [*] Move import `typing.List` out of type-checking blo 5 |+ pass 5 6 | 6 7 | __all__ = ("List",) - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_12.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_12.py.snap index 8efe1fd384..c9c15c35a7 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_12.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_12.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH004_12.py:6:33: TCH004 [*] Move import `collections.abc.Callable` out of type-checking block. Import is used for more than type hinting. | @@ -22,5 +23,3 @@ TCH004_12.py:6:33: TCH004 [*] Move import `collections.abc.Callable` out of type 7 |+ pass 7 8 | 8 9 | AnyCallable: TypeAlias = Callable[..., Any] - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_13.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_13.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_13.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_13.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_14.pyi.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_14.pyi.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_14.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_14.pyi.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_15.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_15.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_15.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_15.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_16.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_16.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_16.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_16.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_17.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_17.py.snap index 785c4c1d2e..d31e06bd48 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_17.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_17.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH004_17.py:6:24: TCH004 [*] Move import `pandas.DataFrame` out of type-checking block. Import is used for more than type hinting. | @@ -21,5 +22,3 @@ TCH004_17.py:6:24: TCH004 [*] Move import `pandas.DataFrame` out of type-checkin 7 8 | 8 9 | 9 10 | def example() -> DataFrame: - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap index 7e49226762..5a8e674947 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH004_2.py:4:26: TCH004 [*] Move import `datetime.date` out of type-checking block. Import is used for more than type hinting. | @@ -19,5 +20,3 @@ TCH004_2.py:4:26: TCH004 [*] Move import `datetime.date` out of type-checking bl 5 6 | 6 7 | 7 8 | def example(): - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_3.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_3.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_3.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_3.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap index aa464d7840..99c8a1d035 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH004_4.py:4:24: TCH004 [*] Move import `typing.Any` out of type-checking block. Import is used for more than type hinting. | @@ -19,5 +20,3 @@ TCH004_4.py:4:24: TCH004 [*] Move import `typing.Any` out of type-checking block 5 6 | 6 7 | 7 8 | def example(*args: Any, **kwargs: Any): - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap index ff1e64f7b5..5459aac07d 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH004_5.py:4:24: TCH004 [*] Move import `typing.List` out of type-checking block. Import is used for more than type hinting. | @@ -57,5 +58,3 @@ TCH004_5.py:4:40: TCH004 [*] Move import `typing.Set` out of type-checking block 5 6 | 6 7 | 7 8 | def example(a: List[int], /, b: Sequence[int], *, c: Set[int]): - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_6.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_6.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_6.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_6.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_7.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_7.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_7.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_7.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_8.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_8.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_8.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_8.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_9.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_9.py.snap index 0c30f3a800..8ad6ada375 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_9.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_9.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH004_9.py:4:24: TCH004 [*] Move import `typing.Tuple` out of type-checking block. Import is used for more than type hinting. | @@ -41,6 +42,4 @@ TCH004_9.py:4:31: TCH004 [*] Move import `typing.List` out of type-checking bloc 5 |+ from typing import Dict 5 6 | 6 7 | x: Tuple -7 8 | - - +7 8 | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_quote.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_quote.py.snap index cc6b8d74f4..76a2daba73 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_quote.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_quote.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- quote.py:57:28: TCH004 [*] Move import `pandas.DataFrame` out of type-checking block. Import is used for more than type hinting. | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_base_classes_1.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_base_classes_1.py.snap index e3174cb454..280351a732 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_base_classes_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_base_classes_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- runtime_evaluated_base_classes_1.py:10:12: TCH004 [*] Move import `datetime` out of type-checking block. Import is used for more than type hinting. | @@ -69,6 +70,4 @@ runtime_evaluated_base_classes_1.py:13:12: TCH004 [*] Move import `pandas` out o 13 |- import pandas # TCH004 14 14 | import pyproj 15 15 | -16 16 | - - +16 16 | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_decorators_1.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_decorators_1.py.snap index d229203c36..b1ccd2fb69 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_decorators_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_decorators_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- runtime_evaluated_decorators_1.py:12:12: TCH004 [*] Move import `datetime` out of type-checking block. Import is used for more than type hinting. | @@ -69,6 +70,4 @@ runtime_evaluated_decorators_1.py:15:12: TCH004 [*] Move import `pandas` out of 15 |- import pandas # TCH004 16 16 | import pyproj 17 17 | -18 18 | - - +18 18 | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-string-union_TCH010_1.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-string-union_TCH010_1.py.snap index bf78da6c60..f390b09be5 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-string-union_TCH010_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-string-union_TCH010_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH010_1.py:18:30: TCH010 Invalid string member in `X | Y`-style union type | @@ -8,5 +9,3 @@ TCH010_1.py:18:30: TCH010 Invalid string member in `X | Y`-style union type 18 | OldS = TypeVar('OldS', int | 'str', str) # TCH010 | ^^^^^ TCH010 | - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-string-union_TCH010_2.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-string-union_TCH010_2.py.snap index f03037ad82..ac29273ca4 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-string-union_TCH010_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-string-union_TCH010_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH010_2.py:4:4: TCH010 Invalid string member in `X | Y`-style union type | @@ -37,5 +38,3 @@ TCH010_2.py:16:30: TCH010 Invalid string member in `X | Y`-style union type 16 | OldS = TypeVar('OldS', int | 'str', str) # TCH010 | ^^^^^ TCH010 | - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__strict_typing-only-standard-library-import_init_var.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__strict_typing-only-standard-library-import_init_var.py.snap index 64ba87ffb3..ccf07d1231 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__strict_typing-only-standard-library-import_init_var.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__strict_typing-only-standard-library-import_init_var.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- init_var.py:5:25: TCH003 [*] Move standard library import `dataclasses.FrozenInstanceError` into a type-checking block | @@ -46,5 +47,3 @@ init_var.py:6:21: TCH003 [*] Move standard library import `pathlib.Path` into a 7 10 | 8 11 | 9 12 | @dataclass - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__strict_typing-only-standard-library-import_kw_only.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__strict_typing-only-standard-library-import_kw_only.py.snap index 478af5eba4..16093cb706 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__strict_typing-only-standard-library-import_kw_only.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__strict_typing-only-standard-library-import_kw_only.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- kw_only.py:5:45: TCH003 [*] Move standard library import `dataclasses.Field` into a type-checking block | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__strict_typing-only-third-party-import_strict.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__strict_typing-only-third-party-import_strict.py.snap index 99d8f413bb..d7749bfb9d 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__strict_typing-only-third-party-import_strict.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__strict_typing-only-third-party-import_strict.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- strict.py:27:21: TCH002 [*] Move third-party import `pkg.A` into a type-checking block | @@ -229,5 +230,3 @@ strict.py:101:23: TCH002 [*] Move third-party import `pkg.foo` into a type-check 102 105 | 103 106 | def test(value: F.Foo): 104 107 | return B.Bar() - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_after_usage.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_after_usage.snap index da83b1545f..f30a9d6393 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_after_usage.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_after_usage.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- :6:18: TCH002 [*] Move third-party import `pandas` into a type-checking block | @@ -23,6 +24,4 @@ source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs 9 |+ 8 10 | def f(x: pd.DataFrame): 9 11 | pass -10 12 | - - +10 12 | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_comment.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_comment.snap index 0cd80a368e..f227c90187 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_comment.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_comment.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- :6:18: TCH002 [*] Move third-party import `pandas` into a type-checking block | @@ -24,5 +25,3 @@ source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs 10 10 | import os 11 11 | 12 12 | def f(x: pd.DataFrame): - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_inline.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_inline.snap index c79f7c9e53..968cf83961 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_inline.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_inline.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- :6:18: TCH002 [*] Move third-party import `pandas` into a type-checking block | @@ -23,5 +24,3 @@ source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs 9 8 | 10 9 | def f(x: pd.DataFrame): 11 10 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_own_line.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_own_line.snap index bf141729eb..fbc9fffac1 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_own_line.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__type_checking_block_own_line.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- :6:18: TCH002 [*] Move third-party import `pandas` into a type-checking block | @@ -23,5 +24,3 @@ source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs 9 9 | import os 10 10 | 11 11 | def f(x: pd.DataFrame): - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap index 2c086380af..280c98d1a1 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH001.py:20:19: TCH001 [*] Move application import `.TYP001` into a type-checking block | @@ -29,6 +30,4 @@ TCH001.py:20:19: TCH001 [*] Move application import `.TYP001` into a type-checki 20 |- from . import TYP001 21 24 | 22 25 | x: TYP001 -23 26 | - - +23 26 | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap index a5016892c3..54a19f12cb 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH003.py:8:12: TCH003 [*] Move standard library import `os` into a type-checking block | @@ -25,6 +26,4 @@ TCH003.py:8:12: TCH003 [*] Move standard library import `os` into a type-checkin 8 |- import os 9 12 | 10 13 | x: os -11 14 | - - +11 14 | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_exempt_type_checking_1.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_exempt_type_checking_1.py.snap index ca63f50e1f..a258a658c9 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_exempt_type_checking_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_exempt_type_checking_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- exempt_type_checking_1.py:5:20: TCH003 [*] Move standard library import `typing.Final` into a type-checking block | @@ -23,5 +24,3 @@ exempt_type_checking_1.py:5:20: TCH003 [*] Move standard library import `typing. 8 |+ from typing import Final 6 9 | 7 10 | Const: Final[dict] = {} - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_exempt_type_checking_2.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_exempt_type_checking_2.py.snap index 82d27250c6..2fd90e9329 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_exempt_type_checking_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_exempt_type_checking_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- exempt_type_checking_2.py:5:20: TCH003 [*] Move standard library import `typing.Final` into a type-checking block | @@ -23,5 +24,3 @@ exempt_type_checking_2.py:5:20: TCH003 [*] Move standard library import `typing. 8 |+ from typing import Final 6 9 | 7 10 | Const: Final[dict] = {} - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_exempt_type_checking_3.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_exempt_type_checking_3.py.snap index 18b9b569ec..1771dca763 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_exempt_type_checking_3.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_exempt_type_checking_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- exempt_type_checking_3.py:5:20: TCH003 [*] Move standard library import `typing.Final` into a type-checking block | @@ -24,5 +25,3 @@ exempt_type_checking_3.py:5:20: TCH003 [*] Move standard library import `typing. 9 |+ from typing import Final 6 10 | 7 11 | Const: Final[dict] = {} - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_init_var.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_init_var.py.snap index 08a45c92e1..43013e15c1 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_init_var.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_init_var.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- init_var.py:6:21: TCH003 [*] Move standard library import `pathlib.Path` into a type-checking block | @@ -21,5 +22,3 @@ init_var.py:6:21: TCH003 [*] Move standard library import `pathlib.Path` into a 7 10 | 8 11 | 9 12 | @dataclass - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_kw_only.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_kw_only.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_kw_only.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_kw_only.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__direct.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__direct.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__direct.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__direct.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__import.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__import.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__import.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__import.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__undefined.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__undefined.py.snap index b7f049eaa8..e5f2701c5d 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__undefined.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__undefined.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- undefined.py:3:29: TCH003 [*] Move standard library import `collections.abc.Sequence` into a type-checking block | @@ -21,5 +22,3 @@ undefined.py:3:29: TCH003 [*] Move standard library import `collections.abc.Sequ 4 7 | 5 8 | 6 9 | class Foo(MyBaseClass): - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_3.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_3.py.snap index 7eb6ba9877..5face1e325 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_3.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- runtime_evaluated_base_classes_3.py:5:18: TCH003 [*] Move standard library import `uuid.UUID` into a type-checking block | @@ -27,5 +28,3 @@ runtime_evaluated_base_classes_3.py:5:18: TCH003 [*] Move standard library impor 9 12 | 10 13 | 11 14 | class A(pydantic.BaseModel): - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_4.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_4.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_4.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_4.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_decorators_3.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_decorators_3.py.snap index 6189280996..69d3595d33 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_decorators_3.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_decorators_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- runtime_evaluated_decorators_3.py:6:18: TCH003 [*] Move standard library import `uuid.UUID` into a type-checking block | @@ -29,5 +30,3 @@ runtime_evaluated_decorators_3.py:6:18: TCH003 [*] Move standard library import 12 15 | 13 16 | 14 17 | @attrs.define(auto_attribs=True) - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_singledispatchmethod.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_singledispatchmethod.py.snap index 53c691d795..19e26960de 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_singledispatchmethod.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_singledispatchmethod.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- singledispatchmethod.py:4:21: TCH003 [*] Move standard library import `pathlib.Path` into a type-checking block | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_snapshot.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_snapshot.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_snapshot.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_snapshot.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap index 7d8365daa6..57fea806f5 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- TCH002.py:5:22: TCH002 [*] Move third-party import `pandas` into a type-checking block | @@ -248,6 +249,4 @@ TCH002.py:172:24: TCH002 [*] Move third-party import `module.Member` into a type 172 |- from module import Member 173 176 | 174 177 | x: Member = 1 -175 178 | - - +175 178 | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_quote.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_quote.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_quote.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_quote.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_2.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_2.py.snap index fdefb73be5..1574384e8f 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- runtime_evaluated_base_classes_2.py:3:21: TCH002 [*] Move third-party import `geopandas` into a type-checking block | @@ -54,5 +55,3 @@ runtime_evaluated_base_classes_2.py:5:8: TCH002 [*] Move third-party import `pyp 9 12 | 10 13 | 11 14 | class A(BaseModel): - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_5.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_5.py.snap index 6c5ead2742..173cb5a2d6 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_5.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_5.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_decorators_2.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_decorators_2.py.snap index 518edf55aa..10698e8545 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_decorators_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_decorators_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- runtime_evaluated_decorators_2.py:10:8: TCH002 [*] Move third-party import `numpy` into a type-checking block | @@ -22,5 +23,3 @@ runtime_evaluated_decorators_2.py:10:8: TCH002 [*] Move third-party import `nump 11 14 | 12 15 | 13 16 | @attrs.define(auto_attribs=True) - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_singledispatch.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_singledispatch.py.snap index 1014052576..70028e22f7 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_singledispatch.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_singledispatch.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- singledispatch.py:12:20: TCH002 [*] Move third-party import `pandas.DataFrame` into a type-checking block | diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_strict.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_strict.py.snap index f9d6240613..a646e661fd 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_strict.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_strict.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- strict.py:54:25: TCH002 [*] Move third-party import `pkg.bar.A` into a type-checking block | @@ -57,5 +58,3 @@ strict.py:91:12: TCH002 [*] Move third-party import `pkg` into a type-checking b 92 95 | import pkgfoo.bar as B 93 96 | 94 97 | def test(value: pkg.A): - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_typing_modules_1.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_typing_modules_1.py.snap index 3e758fc6c1..8e5d5a34d9 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_typing_modules_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_typing_modules_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- typing_modules_1.py:7:24: TCH002 [*] Move third-party import `pandas.DataFrame` into a type-checking block | @@ -25,5 +26,3 @@ typing_modules_1.py:7:24: TCH002 [*] Move third-party import `pandas.DataFrame` 7 |- from pandas import DataFrame 8 11 | 9 12 | df: DataFrame - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_typing_modules_2.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_typing_modules_2.py.snap index 820be3f860..4f8902f141 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_typing_modules_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_typing_modules_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- typing_modules_2.py:7:24: TCH002 [*] Move third-party import `pandas.DataFrame` into a type-checking block | @@ -23,5 +24,3 @@ typing_modules_2.py:7:24: TCH002 [*] Move third-party import `pandas.DataFrame` 7 |- from pandas import DataFrame 8 10 | 9 11 | df: DataFrame - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing_import_after_package_import.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing_import_after_package_import.snap index d8f9298f51..09fac85b0c 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing_import_after_package_import.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing_import_after_package_import.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- :4:18: TCH002 [*] Move third-party import `pandas` into a type-checking block | @@ -25,5 +26,3 @@ source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs 9 |+ 8 10 | def f(x: pd.DataFrame): 9 11 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing_import_after_usage.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing_import_after_usage.snap index 03cb3c36fe..9cbe4402f7 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing_import_after_usage.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing_import_after_usage.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- :4:18: TCH002 Move third-party import `pandas` into a type-checking block | @@ -11,5 +12,3 @@ source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs 6 | def f(x: pd.DataFrame): | = help: Move into type-checking block - - diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing_import_before_package_import.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing_import_before_package_import.snap index d939819ed6..21044eb1bd 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing_import_before_package_import.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing_import_before_package_import.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs +snapshot_kind: text --- :6:18: TCH002 [*] Move third-party import `pandas` into a type-checking block | @@ -23,5 +24,3 @@ source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs 9 |+ 8 10 | def f(x: pd.DataFrame): 9 11 | pass - - diff --git a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG001_ARG.py.snap b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG001_ARG.py.snap index 0b65aed7a1..f53c64b064 100644 --- a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG001_ARG.py.snap +++ b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG001_ARG.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_unused_arguments/mod.rs +snapshot_kind: text --- ARG.py:9:7: ARG001 Unused function argument: `self` | diff --git a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG002_ARG.py.snap b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG002_ARG.py.snap index d045303435..b1b8ae68ff 100644 --- a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG002_ARG.py.snap +++ b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG002_ARG.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_unused_arguments/mod.rs +snapshot_kind: text --- ARG.py:37:17: ARG002 Unused method argument: `x` | diff --git a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG003_ARG.py.snap b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG003_ARG.py.snap index 39f89b091b..1a7e8e356a 100644 --- a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG003_ARG.py.snap +++ b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG003_ARG.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_unused_arguments/mod.rs +snapshot_kind: text --- ARG.py:47:16: ARG003 Unused class method argument: `x` | @@ -8,5 +9,3 @@ ARG.py:47:16: ARG003 Unused class method argument: `x` | ^ ARG003 48 | print("Hello, world!") | - - diff --git a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG004_ARG.py.snap b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG004_ARG.py.snap index b1b046fe91..47b8107b46 100644 --- a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG004_ARG.py.snap +++ b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG004_ARG.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_unused_arguments/mod.rs +snapshot_kind: text --- ARG.py:51:11: ARG004 Unused static method argument: `cls` | @@ -24,5 +25,3 @@ ARG.py:55:11: ARG004 Unused static method argument: `x` | ^ ARG004 56 | print("Hello, world!") | - - diff --git a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG005_ARG.py.snap b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG005_ARG.py.snap index 3a8fb2cf56..3f54ce449f 100644 --- a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG005_ARG.py.snap +++ b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ARG005_ARG.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_unused_arguments/mod.rs +snapshot_kind: text --- ARG.py:28:8: ARG005 Unused lambda argument: `x` | @@ -10,5 +11,3 @@ ARG.py:28:8: ARG005 Unused lambda argument: `x` 29 | 30 | lambda: print("Hello, world!") | - - diff --git a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__enforce_variadic_names.snap b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__enforce_variadic_names.snap index e8d246aa94..21ec1b0eb1 100644 --- a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__enforce_variadic_names.snap +++ b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__enforce_variadic_names.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_unused_arguments/mod.rs +snapshot_kind: text --- ignore_variadic_names.py:1:7: ARG001 Unused function argument: `a` | @@ -94,5 +95,3 @@ ignore_variadic_names.py:13:32: ARG002 Unused method argument: `kwargs` | ^^^^^^ ARG002 14 | print("Hello, world!") | - - diff --git a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ignore_variadic_names.snap b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ignore_variadic_names.snap index d22cfbe1f5..3702d0d849 100644 --- a/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ignore_variadic_names.snap +++ b/crates/ruff_linter/src/rules/flake8_unused_arguments/snapshots/ruff_linter__rules__flake8_unused_arguments__tests__ignore_variadic_names.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_unused_arguments/mod.rs +snapshot_kind: text --- ignore_variadic_names.py:1:7: ARG001 Unused function argument: `a` | @@ -62,5 +63,3 @@ ignore_variadic_names.py:13:20: ARG002 Unused method argument: `b` | ^ ARG002 14 | print("Hello, world!") | - - diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH124_py_path_1.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH124_py_path_1.py.snap index d69400baf7..6a27ee2653 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH124_py_path_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH124_py_path_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- py_path_1.py:3:5: PTH124 `py.path` is in maintenance mode, use `pathlib` instead | @@ -8,5 +9,3 @@ py_path_1.py:3:5: PTH124 `py.path` is in maintenance mode, use `pathlib` instead 3 | p = py.path.local("../foo") | ^^^^^^^^^^^^^ PTH124 | - - diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH124_py_path_2.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH124_py_path_2.py.snap index a5f1a2cf92..fcc8f00471 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH124_py_path_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH124_py_path_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- py_path_2.py:3:5: PTH124 `py.path` is in maintenance mode, use `pathlib` instead | @@ -8,5 +9,3 @@ py_path_2.py:3:5: PTH124 `py.path` is in maintenance mode, use `pathlib` instead 3 | p = path("/foo") | ^^^^ PTH124 | - - diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH201_PTH201.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH201_PTH201.py.snap index 045e8c733e..2b0828e70a 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH201_PTH201.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH201_PTH201.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- PTH201.py:5:10: PTH201 [*] Do not pass the current directory explicitly to `Path` | @@ -82,5 +83,3 @@ PTH201.py:8:10: PTH201 [*] Do not pass the current directory explicitly to `Path 9 9 | 10 10 | # no match 11 11 | _ = Path() - - diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH202_PTH202.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH202_PTH202.py.snap index 033a2d511e..51311bf399 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH202_PTH202.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH202_PTH202.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- PTH202.py:6:1: PTH202 `os.path.getsize` should be replaced by `Path.stat().st_size` | @@ -72,5 +73,3 @@ PTH202.py:14:1: PTH202 `os.path.getsize` should be replaced by `Path.stat().st_s 14 | getsize(__file__) | ^^^^^^^ PTH202 | - - diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH203_PTH203.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH203_PTH203.py.snap index db0681da91..9e3f3de473 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH203_PTH203.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH203_PTH203.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- PTH203.py:5:1: PTH203 `os.path.getatime` should be replaced by `Path.stat().st_atime` | @@ -50,5 +51,3 @@ PTH203.py:12:1: PTH203 `os.path.getatime` should be replaced by `Path.stat().st_ 12 | getatime(Path("filename")) | ^^^^^^^^ PTH203 | - - diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH204_PTH204.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH204_PTH204.py.snap index 1451bdb737..b137cbd772 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH204_PTH204.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH204_PTH204.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- PTH204.py:6:1: PTH204 `os.path.getmtime` should be replaced by `Path.stat().st_mtime` | @@ -48,5 +49,3 @@ PTH204.py:13:1: PTH204 `os.path.getmtime` should be replaced by `Path.stat().st_ 13 | getmtime(Path("filename")) | ^^^^^^^^ PTH204 | - - diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH205_PTH205.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH205_PTH205.py.snap index 5afa0f483a..bfa2aefd0e 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH205_PTH205.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH205_PTH205.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- PTH205.py:6:1: PTH205 `os.path.getctime` should be replaced by `Path.stat().st_ctime` | @@ -52,5 +53,3 @@ PTH205.py:12:1: PTH205 `os.path.getctime` should be replaced by `Path.stat().st_ 12 | getctime(Path("filename")) | ^^^^^^^^ PTH205 | - - diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH206_PTH206.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH206_PTH206.py.snap index 86aeedbfbc..0fc3af2ead 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH206_PTH206.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH206_PTH206.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- PTH206.py:8:12: PTH206 Replace `.split(os.sep)` with `Path.parts` | @@ -98,5 +99,3 @@ PTH206.py:17:30: PTH206 Replace `.split(os.sep)` with `Path.parts` 18 | 19 | # OK | - - diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH207_PTH207.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH207_PTH207.py.snap index fde2f146d9..6d30e0fb5e 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH207_PTH207.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__PTH207_PTH207.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- PTH207.py:9:1: PTH207 Replace `glob` with `Path.glob` or `Path.rglob` | @@ -26,5 +27,3 @@ PTH207.py:11:1: PTH207 Replace `glob` with `Path.glob` or `Path.rglob` 11 | search("*.png") | ^^^^^^ PTH207 | - - diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__full_name.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__full_name.py.snap index ddcff48231..1bc3020743 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__full_name.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__full_name.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- full_name.py:7:5: PTH100 `os.path.abspath()` should be replaced by `Path.resolve()` | diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__import_as.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__import_as.py.snap index 30ea651dac..ba094e790e 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__import_as.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__import_as.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- import_as.py:7:5: PTH100 `os.path.abspath()` should be replaced by `Path.resolve()` | @@ -246,5 +247,3 @@ import_as.py:31:1: PTH122 `os.path.splitext()` should be replaced by `Path.suffi 31 | foo_p.splitext(p) | ^^^^^^^^^^^^^^ PTH122 | - - diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__import_from.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__import_from.py.snap index 7dcdd1a5c2..a021b5d13b 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__import_from.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__import_from.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- import_from.py:9:5: PTH100 `os.path.abspath()` should be replaced by `Path.resolve()` | @@ -267,5 +268,3 @@ import_from.py:36:1: PTH123 `open()` should be replaced by `Path.open()` 36 | open(p).close() | ^^^^ PTH123 | - - diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__import_from_as.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__import_from_as.py.snap index 759f682c6a..685a57a5c4 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__import_from_as.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__import_from_as.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- import_from_as.py:14:5: PTH100 `os.path.abspath()` should be replaced by `Path.resolve()` | @@ -246,5 +247,3 @@ import_from_as.py:38:1: PTH122 `os.path.splitext()` should be replaced by `Path. 38 | xsplitext(p) | ^^^^^^^^^ PTH122 | - - diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__use_pathlib.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__use_pathlib.py.snap index 10a495237c..0839f70e26 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__use_pathlib.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__use_pathlib.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flynt/snapshots/ruff_linter__rules__flynt__tests__FLY002_FLY002.py.snap b/crates/ruff_linter/src/rules/flynt/snapshots/ruff_linter__rules__flynt__tests__FLY002_FLY002.py.snap index 5d531d603b..cdc4d6f996 100644 --- a/crates/ruff_linter/src/rules/flynt/snapshots/ruff_linter__rules__flynt__tests__FLY002_FLY002.py.snap +++ b/crates/ruff_linter/src/rules/flynt/snapshots/ruff_linter__rules__flynt__tests__FLY002_FLY002.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/flynt/mod.rs +snapshot_kind: text --- FLY002.py:5:7: FLY002 [*] Consider `f"{a} World"` instead of string join | @@ -140,5 +141,3 @@ FLY002.py:23:11: FLY002 [*] Consider `f"{url}{filename}"` instead of string join 22 22 | def create_file_public_url(url, filename): 23 |- return''.join([url, filename]) 23 |+ return f"{url}{filename}" - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__1_separate_subpackage_first_and_third_party_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__1_separate_subpackage_first_and_third_party_imports.py.snap index 68c6ab87dd..a0a0a2d948 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__1_separate_subpackage_first_and_third_party_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__1_separate_subpackage_first_and_third_party_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- separate_subpackage_first_and_third_party_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -29,5 +30,3 @@ separate_subpackage_first_and_third_party_imports.py:1:1: I001 [*] Import block 6 |-import foo 7 |-import foo.bar 8 |-import foo.bar.baz - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__2_separate_subpackage_first_and_third_party_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__2_separate_subpackage_first_and_third_party_imports.py.snap index 26039b8c93..b8a7ec94ee 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__2_separate_subpackage_first_and_third_party_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__2_separate_subpackage_first_and_third_party_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- separate_subpackage_first_and_third_party_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -28,5 +29,3 @@ separate_subpackage_first_and_third_party_imports.py:1:1: I001 [*] Import block 7 |-import foo.bar 8 |-import foo.bar.baz 10 |+from foo import bar, baz - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__add_newline_before_comments.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__add_newline_before_comments.py.snap index 95cca1454b..e57f95fe89 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__add_newline_before_comments.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__add_newline_before_comments.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- add_newline_before_comments.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -24,5 +25,3 @@ add_newline_before_comments.py:1:1: I001 [*] Import block is un-sorted or un-for 5 8 | # This is a comment, but it starts a new section, so we don't need to add a newline 6 9 | # before it. 7 10 | import leading_prefix - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__as_imports_comments.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__as_imports_comments.py.snap index 4866de74a6..6913e7d70a 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__as_imports_comments.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__as_imports_comments.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- as_imports_comments.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__bom_sorted.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__bom_sorted.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__bom_sorted.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__bom_sorted.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__bom_unsorted.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__bom_unsorted.py.snap index d9c75d398f..68cceefab1 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__bom_unsorted.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__bom_unsorted.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- bom_unsorted.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__case_sensitive_case_sensitive.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__case_sensitive_case_sensitive.py.snap index 1374bd787f..7120fa9788 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__case_sensitive_case_sensitive.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__case_sensitive_case_sensitive.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- case_sensitive.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -29,5 +30,3 @@ case_sensitive.py:1:1: I001 [*] Import block is un-sorted or un-formatted 9 |-from h import A, b, C 8 |+from g import B, a, c 9 |+from h import A, C, b - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__closest_to_furthest_relative_imports_order.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__closest_to_furthest_relative_imports_order.py.snap index 3c554a7eed..b01de83984 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__closest_to_furthest_relative_imports_order.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__closest_to_furthest_relative_imports_order.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- relative_imports_order.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -15,5 +16,3 @@ relative_imports_order.py:1:1: I001 [*] Import block is un-sorted or un-formatte 1 3 | from ... import a 2 |-from .. import b 3 |-from . import c - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__combine_as_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__combine_as_imports.py.snap index 7888f59e11..e592fbea13 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__combine_as_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__combine_as_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- combine_as_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -16,5 +17,3 @@ combine_as_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted 2 |-from module import CONSTANT 3 |-from module import function 4 3 | from module import function as f - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__combine_as_imports_combine_as_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__combine_as_imports_combine_as_imports.py.snap index 0ec3437a37..5997aa9cee 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__combine_as_imports_combine_as_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__combine_as_imports_combine_as_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- combine_as_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -16,5 +17,3 @@ combine_as_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted 3 |-from module import function 4 |-from module import function as f 1 |+from module import CONSTANT, Class as C, function, function as f - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__combine_import_from.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__combine_import_from.py.snap index b5783de363..4cab097732 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__combine_import_from.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__combine_import_from.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- combine_import_from.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -25,5 +26,3 @@ combine_import_from.py:1:1: I001 [*] Import block is un-sorted or un-formatted 6 |+ MutableMapping, 7 |+ MutableSequence, 8 |+) - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__comments.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__comments.py.snap index 133ac94214..61e9508f07 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__comments.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__comments.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- comments.py:3:1: I001 [*] Import block is un-sorted or un-formatted | @@ -85,5 +86,3 @@ comments.py:3:1: I001 [*] Import block is un-sorted or un-formatted 23 |+ a, # Comment 1 24 |+ b, 25 |+) - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__deduplicate_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__deduplicate_imports.py.snap index 4ec8ce1b51..2c9617e08c 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__deduplicate_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__deduplicate_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- deduplicate_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -15,5 +16,3 @@ deduplicate_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted 2 |-import os 3 2 | import os as os1 4 3 | import os as os2 - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__default_section_can_map_to_user_defined_section_default_section_user_defined.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__default_section_can_map_to_user_defined_section_default_section_user_defined.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__default_section_can_map_to_user_defined_section_default_section_user_defined.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__default_section_can_map_to_user_defined_section_default_section_user_defined.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__detect_same_package.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__detect_same_package.snap index 25d20bc8a5..028912b06f 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__detect_same_package.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__detect_same_package.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- bar.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -15,5 +16,3 @@ bar.py:1:1: I001 [*] Import block is un-sorted or un-formatted 2 3 | import pandas 4 |+ 3 5 | import foo.baz - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__fit_line_length.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__fit_line_length.py.snap index e6ea05b4e4..1d16dfe290 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__fit_line_length.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__fit_line_length.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- fit_line_length.py:7:1: I001 [*] Import block is un-sorted or un-formatted | @@ -38,5 +39,3 @@ fit_line_length.py:7:1: I001 [*] Import block is un-sorted or un-formatted 12 20 | from line_with_93 import ( 13 21 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, 14 22 | ) - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__fit_line_length_comment.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__fit_line_length_comment.py.snap index 5efdf7d321..ca23140626 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__fit_line_length_comment.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__fit_line_length_comment.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- fit_line_length_comment.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -32,5 +33,3 @@ fit_line_length_comment.py:1:1: I001 [*] Import block is un-sorted or un-formatt 13 |+from h import ( 14 |+ i, # 012ß9💣2ℝ9012ß9💣2ℝ9012ß9💣2ℝ9012ß9💣2ℝ9012ß9💣2ℝ9012ß9💣2ℝ9012ß9💣2ℝ9 15 |+) - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_single_line_force_single_line.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_single_line_force_single_line.py.snap index b7fa34f0e2..cfd74fe0f2 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_single_line_force_single_line.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_single_line_force_single_line.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- force_single_line.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -81,5 +82,3 @@ force_single_line.py:1:1: I001 [*] Import block is un-sorted or un-formatted 29 |+from third_party import lib5 30 |+from third_party import lib6 31 |+from third_party import lib7 - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections.py.snap index 43ecebee22..1592f63971 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- force_sort_within_sections.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -39,5 +40,3 @@ force_sort_within_sections.py:1:1: I001 [*] Import block is un-sorted or un-form 11 |-from . import my 12 13 | from .my.nested import fn2 13 |-from ...grandparent import fn3 - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections.py.snap index 412d6f3886..abe86b24d5 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- force_sort_within_sections.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -40,5 +41,3 @@ force_sort_within_sections.py:1:1: I001 [*] Import block is un-sorted or un-form 11 |-from . import my 12 13 | from .my.nested import fn2 13 |-from ...grandparent import fn3 - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_future.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_future.py.snap index 6864d488b7..19613adbb0 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_future.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_future.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- force_sort_within_sections_future.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -12,5 +13,3 @@ force_sort_within_sections_future.py:1:1: I001 [*] Import block is un-sorted or 1 |+from __future__ import annotations 1 2 | import __future__ 2 |-from __future__ import annotations - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_lines_between.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_lines_between.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_lines_between.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_lines_between.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_with_as_names.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_with_as_names.py.snap index b14f52ac65..2919ca2ee5 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_with_as_names.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_with_as_names.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- force_sort_within_sections_with_as_names.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -21,5 +22,3 @@ force_sort_within_sections_with_as_names.py:1:1: I001 [*] Import block is un-sor 3 |-from datetime import timedelta 4 |-import datetime as dt 5 |-import datetime - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_to_top.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_to_top.py.snap index eccb76bc9e..c6157cbf70 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_to_top.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_to_top.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- force_to_top.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -63,5 +64,3 @@ force_to_top.py:1:1: I001 [*] Import block is un-sorted or un-formatted 23 17 | from lib3.lib4.lib5 import foo 18 |+from lib4 import lib1, lib2 19 |+from lib5 import lib1, lib2 - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_to_top_force_to_top.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_to_top_force_to_top.py.snap index eb5678616b..b772873530 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_to_top_force_to_top.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_to_top_force_to_top.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- force_to_top.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -66,5 +67,3 @@ force_to_top.py:1:1: I001 [*] Import block is un-sorted or un-formatted 17 |+from lib2 import foo 23 18 | from lib3.lib4.lib5 import foo 19 |+from lib4 import lib1, lib2 - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_wrap_aliases.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_wrap_aliases.py.snap index e19ca4942b..df767bb976 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_wrap_aliases.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_wrap_aliases.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- force_wrap_aliases.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -15,5 +16,3 @@ force_wrap_aliases.py:1:1: I001 [*] Import block is un-sorted or un-formatted 2 |+from .a import a2 as a2 2 3 | from .b import b1 as b1 3 4 | from .c import c1 - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_wrap_aliases_force_wrap_aliases.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_wrap_aliases_force_wrap_aliases.py.snap index d59c8a13d1..ce99622c1d 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_wrap_aliases_force_wrap_aliases.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_wrap_aliases_force_wrap_aliases.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- force_wrap_aliases.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -17,5 +18,3 @@ force_wrap_aliases.py:1:1: I001 [*] Import block is un-sorted or un-formatted 4 |+) 2 5 | from .b import b1 as b1 3 6 | from .c import c1 - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__forced_separate.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__forced_separate.py.snap index ad410b015c..273723b3fa 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__forced_separate.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__forced_separate.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- forced_separate.py:3:1: I001 [*] Import block is un-sorted or un-formatted | @@ -26,5 +27,3 @@ forced_separate.py:3:1: I001 [*] Import block is un-sorted or un-formatted 6 9 | from experiments.starry import * 7 10 | from experiments.weird import varieties 8 |-from office_helper.assistants import entity_registry as er - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__from_first_from_first.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__from_first_from_first.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__from_first_from_first.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__from_first_from_first.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__future_from.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__future_from.py.snap index f3f5cd2a35..03677390cf 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__future_from.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__future_from.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- future_from.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -12,5 +13,3 @@ future_from.py:1:1: I001 [*] Import block is un-sorted or un-formatted 1 |+from __future__ import annotations 1 2 | import __future__ 2 |-from __future__ import annotations - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__glob_1_separate_subpackage_first_and_third_party_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__glob_1_separate_subpackage_first_and_third_party_imports.py.snap index 68c6ab87dd..a0a0a2d948 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__glob_1_separate_subpackage_first_and_third_party_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__glob_1_separate_subpackage_first_and_third_party_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- separate_subpackage_first_and_third_party_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -29,5 +30,3 @@ separate_subpackage_first_and_third_party_imports.py:1:1: I001 [*] Import block 6 |-import foo 7 |-import foo.bar 8 |-import foo.bar.baz - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__if_elif_else.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__if_elif_else.py.snap index 4a09c500c4..cc45519b32 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__if_elif_else.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__if_elif_else.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- if_elif_else.py:6:1: I001 [*] Import block is un-sorted or un-formatted | @@ -17,5 +18,3 @@ if_elif_else.py:6:1: I001 [*] Import block is un-sorted or un-formatted 6 |+ from distutils.command.sdist import sdist as _sdist 6 7 | from setuptools.command.sdist import sdist as _sdist 7 |- from distutils.command.sdist import sdist as _sdist - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__import_from_after_import.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__import_from_after_import.py.snap index 09e2aa2a32..5f6acddeeb 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__import_from_after_import.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__import_from_after_import.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- import_from_after_import.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -12,5 +13,3 @@ import_from_after_import.py:1:1: I001 [*] Import block is un-sorted or un-format 1 |+import os 1 2 | from collections import Collection 2 |-import os - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__inline_comments.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__inline_comments.py.snap index bc6a07f658..d8bbe22239 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__inline_comments.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__inline_comments.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- inline_comments.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -36,5 +37,3 @@ inline_comments.py:1:1: I001 [*] Import block is un-sorted or un-formatted 11 |+ OTHER_RUNNING_TOTAL, 12 |+ TERMINAL_CURRENTLY_RUNNING_TOTAL, 13 |+) - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__insert_empty_lines.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__insert_empty_lines.py.snap index 238cb60922..9690dc9537 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__insert_empty_lines.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__insert_empty_lines.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- insert_empty_lines.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -84,5 +85,3 @@ insert_empty_lines.py:52:1: I001 [*] Import block is un-sorted or un-formatted 54 55 | # Comment goes here. 55 56 | def f(): 56 57 | pass - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__insert_empty_lines.pyi.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__insert_empty_lines.pyi.snap index a2e262e7e8..a9a450c2b3 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__insert_empty_lines.pyi.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__insert_empty_lines.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- insert_empty_lines.pyi:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -63,5 +64,3 @@ insert_empty_lines.pyi:14:1: I001 [*] Import block is un-sorted or un-formatted 16 17 | """Docstring""" 17 18 | 18 19 | if True: - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__isort_skip_file.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__isort_skip_file.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__isort_skip_file.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__isort_skip_file.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__known_local_folder_closest_separate_local_folder_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__known_local_folder_closest_separate_local_folder_imports.py.snap index 8eb419a4a4..542f24610b 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__known_local_folder_closest_separate_local_folder_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__known_local_folder_closest_separate_local_folder_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- separate_local_folder_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__known_local_folder_separate_local_folder_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__known_local_folder_separate_local_folder_imports.py.snap index 21ed77408c..89d704758a 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__known_local_folder_separate_local_folder_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__known_local_folder_separate_local_folder_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- separate_local_folder_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__leading_prefix.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__leading_prefix.py.snap index c84144c29e..19ce312aa3 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__leading_prefix.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__leading_prefix.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- leading_prefix.py:1:8: I001 Import block is un-sorted or un-formatted | @@ -42,5 +43,3 @@ leading_prefix.py:13:1: I001 Import block is un-sorted or un-formatted | ^^^^^^^^^ I001 | = help: Organize imports - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_from_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_from_imports.py.snap index a2183e7de3..4eae12de52 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_from_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_from_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- length_sort_from_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -14,5 +15,3 @@ length_sort_from_imports.py:1:1: I001 [*] Import block is un-sorted or un-format 1 2 | from mediuuuuuuuuuuum import a 2 |-from short import b 3 3 | from loooooooooooooooooooooog import c - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_non_ascii_members.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_non_ascii_members.py.snap index d6cfc0e340..75cd508129 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_non_ascii_members.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_non_ascii_members.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- length_sort_non_ascii_members.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -33,5 +34,3 @@ length_sort_non_ascii_members.py:1:1: I001 [*] Import block is un-sorted or un-f 10 9 | λοοοοοοοοοοοοοονγ, 10 |+ looooooooooooooong, 11 11 | ) - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_non_ascii_modules.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_non_ascii_modules.py.snap index e1d66bd9a7..c2b5ab2b6c 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_non_ascii_modules.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_non_ascii_modules.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- length_sort_non_ascii_modules.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -28,5 +29,3 @@ length_sort_non_ascii_modules.py:1:1: I001 [*] Import block is un-sorted or un-f 7 8 | import λοοοοοοοοοοοοοονγ 8 |-import μεδιυυυυυμ 9 9 | import looooooooooooooong - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_straight_and_from_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_straight_and_from_imports.py.snap index 7acc627804..e514815c01 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_straight_and_from_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_straight_and_from_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- length_sort_straight_and_from_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -22,5 +23,3 @@ length_sort_straight_and_from_imports.py:1:1: I001 [*] Import block is un-sorted 5 5 | from mediuuuum import c 6 |-from short import b 6 |+from looooooooooooooong import a - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_straight_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_straight_imports.py.snap index 6c73af3a2a..7338fbae63 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_straight_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_straight_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- length_sort_straight_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -17,5 +18,3 @@ length_sort_straight_imports.py:1:1: I001 [*] Import block is un-sorted or un-fo 2 |-import short 3 4 | import looooooooooooooooong 4 |-import mediuuuuuuma - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_with_relative_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_with_relative_imports.py.snap index 20531ecd26..67e98d0dab 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_with_relative_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort__length_sort_with_relative_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- length_sort_with_relative_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -24,5 +25,3 @@ length_sort_with_relative_imports.py:1:1: I001 [*] Import block is un-sorted or 7 5 | from ......short import b 6 |+from ...mediuuuum import b 7 |+from ..looooooooooooooong import a - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort_straight__length_sort_from_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort_straight__length_sort_from_imports.py.snap index 35bdec18f1..dc6f95ebfa 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort_straight__length_sort_from_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort_straight__length_sort_from_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- length_sort_from_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -14,5 +15,3 @@ length_sort_from_imports.py:1:1: I001 [*] Import block is un-sorted or un-format 1 2 | from mediuuuuuuuuuuum import a 2 3 | from short import b 3 |-from loooooooooooooooooooooog import c - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort_straight__length_sort_straight_and_from_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort_straight__length_sort_straight_and_from_imports.py.snap index 3cd80a04ef..85edb87825 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort_straight__length_sort_straight_and_from_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort_straight__length_sort_straight_and_from_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- length_sort_straight_and_from_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -19,5 +20,3 @@ length_sort_straight_and_from_imports.py:1:1: I001 [*] Import block is un-sorted 3 3 | import looooooooooooooooong 4 4 | from looooooooooooooong import a 5 5 | from mediuuuum import c - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort_straight__length_sort_straight_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort_straight__length_sort_straight_imports.py.snap index 6c73af3a2a..7338fbae63 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort_straight__length_sort_straight_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__length_sort_straight__length_sort_straight_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- length_sort_straight_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -17,5 +18,3 @@ length_sort_straight_imports.py:1:1: I001 [*] Import block is un-sorted or un-fo 2 |-import short 3 4 | import looooooooooooooooong 4 |-import mediuuuuuuma - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__line_ending_crlf.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__line_ending_crlf.py.snap index 07043dd802..fd6eeec94b 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__line_ending_crlf.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__line_ending_crlf.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- line_ending_crlf.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -18,6 +19,4 @@ line_ending_crlf.py:1:1: I001 [*] Import block is un-sorted or un-formatted 5 |+ member_three, 6 |+ member_two, 7 |+) -2 8 | - - +2 8 | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__line_ending_lf.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__line_ending_lf.py.snap index 757fdaa980..cdf02f650d 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__line_ending_lf.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__line_ending_lf.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- line_ending_lf.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -18,6 +19,4 @@ line_ending_lf.py:1:1: I001 [*] Import block is un-sorted or un-formatted 5 |+ member_three, 6 |+ member_two, 7 |+) -2 8 | - - +2 8 | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports.pyi.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports.pyi.snap index 3cb4eb573c..28f192ce47 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports.pyi.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- lines_after_imports.pyi:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -37,5 +38,3 @@ lines_after_imports.pyi:1:1: I001 [*] Import block is un-sorted or un-formatted 12 9 | 13 10 | class Thing(object): 14 11 | name: str - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_class_after.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_class_after.py.snap index 8f5efb9988..6b12c68c08 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_class_after.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_class_after.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- lines_after_imports_class_after.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -34,5 +35,3 @@ lines_after_imports_class_after.py:1:1: I001 [*] Import block is un-sorted or un 10 11 | class Thing(object): 11 12 | name: str 12 13 | def __init__(self, name: str): - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_func_after.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_func_after.py.snap index 0f71f16f36..4c84e821e9 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_func_after.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_func_after.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- lines_after_imports_func_after.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -51,5 +52,3 @@ lines_after_imports_func_after.py:1:1: I001 [*] Import block is un-sorted or un- 19 9 | 20 10 | 21 11 | def main(): - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports.pyi.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports.pyi.snap index 3cb4eb573c..28f192ce47 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports.pyi.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- lines_after_imports.pyi:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -37,5 +38,3 @@ lines_after_imports.pyi:1:1: I001 [*] Import block is un-sorted or un-formatted 12 9 | 13 10 | class Thing(object): 14 11 | name: str - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports_class_after.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports_class_after.py.snap index 747af3269a..7a01afa397 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports_class_after.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports_class_after.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- lines_after_imports_class_after.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -35,5 +36,3 @@ lines_after_imports_class_after.py:1:1: I001 [*] Import block is un-sorted or un 10 12 | class Thing(object): 11 13 | name: str 12 14 | def __init__(self, name: str): - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports_func_after.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports_func_after.py.snap index ff312106a4..b6a001790b 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports_func_after.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports_func_after.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- lines_after_imports_func_after.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -49,6 +50,4 @@ lines_after_imports_func_after.py:1:1: I001 [*] Import block is un-sorted or un- 17 |- 18 9 | 19 10 | -20 11 | - - +20 11 | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports_nothing_after.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports_nothing_after.py.snap index 37d9fca223..031bcb5070 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports_nothing_after.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_after_imports_lines_after_imports_nothing_after.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- lines_after_imports_nothing_after.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -25,5 +26,3 @@ lines_after_imports_nothing_after.py:1:1: I001 [*] Import block is un-sorted or 6 |+from requests import Session 8 7 | 9 8 | from . import my_local_folder_object - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_between_typeslines_between_types.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_between_typeslines_between_types.py.snap index 09ff2aa19e..1b48f1050f 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_between_typeslines_between_types.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__lines_between_typeslines_between_types.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- lines_between_types.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -32,5 +33,3 @@ lines_between_types.py:1:1: I001 [*] Import block is un-sorted or un-formatted 14 14 | 15 15 | from . import config 16 16 | from .data import Data - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__magic_trailing_comma.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__magic_trailing_comma.py.snap index 78c0456bcd..f9942519d4 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__magic_trailing_comma.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__magic_trailing_comma.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- magic_trailing_comma.py:2:1: I001 [*] Import block is un-sorted or un-formatted | @@ -97,5 +98,3 @@ magic_trailing_comma.py:2:1: I001 [*] Import block is un-sorted or un-formatted 30 |+ member2, 37 31 | member3, 38 32 | ) - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__match_case.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__match_case.py.snap index d3a6f45d7e..67da838e16 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__match_case.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__match_case.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- match_case.py:3:1: I001 [*] Import block is un-sorted or un-formatted | @@ -40,5 +41,3 @@ match_case.py:6:1: I001 [*] Import block is un-sorted or un-formatted 6 |+ import abc 6 7 | import collections 7 |- import abc - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__natural_order.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__natural_order.py.snap index dbfade412a..a999e1d403 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__natural_order.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__natural_order.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- natural_order.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -42,5 +43,3 @@ natural_order.py:1:1: I001 [*] Import block is un-sorted or un-formatted 14 14 | uint32, 15 15 | uint64, 16 16 | ) - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_detect_same_package.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_detect_same_package.snap index 391a603c79..f83e72de04 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_detect_same_package.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_detect_same_package.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- bar.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -15,5 +16,3 @@ bar.py:1:1: I001 [*] Import block is un-sorted or un-formatted 2 |+ 3 3 | import foo.baz 4 |+import pandas - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_lines_before.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_lines_before.py.snap index 4947f22fef..73f379d76f 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_lines_before.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_lines_before.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- no_lines_before.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -25,5 +26,3 @@ no_lines_before.py:1:1: I001 [*] Import block is un-sorted or un-formatted 6 |+from requests import Session 8 7 | 9 8 | from . import my_local_folder_object - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_lines_before.py_no_lines_before.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_lines_before.py_no_lines_before.py.snap index d85f8eb6c3..019ad9b8db 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_lines_before.py_no_lines_before.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_lines_before.py_no_lines_before.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- no_lines_before.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -26,5 +27,3 @@ no_lines_before.py:1:1: I001 [*] Import block is un-sorted or un-formatted 7 |-from my_first_party import my_first_party_object 8 |- 9 5 | from . import my_local_folder_object - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_lines_before_with_empty_sections.py_no_lines_before_with_empty_sections.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_lines_before_with_empty_sections.py_no_lines_before_with_empty_sections.py.snap index 0e8d39e7ca..e2b900a69d 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_lines_before_with_empty_sections.py_no_lines_before_with_empty_sections.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_lines_before_with_empty_sections.py_no_lines_before_with_empty_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- no_lines_before_with_empty_sections.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -14,5 +15,3 @@ no_lines_before_with_empty_sections.py:1:1: I001 [*] Import block is un-sorted o 2 2 | from typing import Any 3 |+ 3 4 | from . import my_local_folder_object - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_reorder_within_section.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_reorder_within_section.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_reorder_within_section.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_reorder_within_section.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_sections_no_sections.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_sections_no_sections.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_sections_no_sections.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_sections_no_sections.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_standard_library_no_standard_library.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_standard_library_no_standard_library.py.snap index 8dfcfe5183..fe135c4a7c 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_standard_library_no_standard_library.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_standard_library_no_standard_library.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- no_standard_library.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_wrap_star.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_wrap_star.py.snap index c99b0fdb4e..e4116bc077 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_wrap_star.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_wrap_star.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- no_wrap_star.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -10,5 +11,3 @@ no_wrap_star.py:1:1: I001 [*] Import block is un-sorted or un-formatted ℹ Safe fix 1 |-from .subscription import * # type: ignore # some very long comment explaining why this needs a type ignore 1 |+from .subscription import * # type: ignore # some very long comment explaining why this needs a type ignore - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type.py.snap index d8b5661706..f6d316e71f 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- order_by_type.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -37,5 +38,3 @@ order_by_type.py:1:1: I001 [*] Import block is un-sorted or un-formatted 11 |+import foo 12 |+import StringIO 13 |+from module import BASIC, CONSTANT, Apple, Class, function - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_false_order_by_type.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_false_order_by_type.py.snap index e529a09b24..a9a30bb189 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_false_order_by_type.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_false_order_by_type.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- order_by_type.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -36,5 +37,3 @@ order_by_type.py:1:1: I001 [*] Import block is un-sorted or un-formatted 11 |+import foo 12 |+import StringIO 13 |+from module import Apple, BASIC, Class, CONSTANT, function - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_classes.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_classes.py.snap index 63462bfd80..787026cde4 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_classes.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_classes.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- order_by_type_with_custom_classes.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -20,5 +21,3 @@ order_by_type_with_custom_classes.py:1:1: I001 [*] Import block is un-sorted or 3 |+from module import BASIC, CLASS, CONSTANT, Apple, Class, function 4 |+from sklearn.svm import CONST, SVC, Klass, func 5 |+from torch.nn import A_CONSTANT, SELU, AClass - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_classes_order_by_type_with_custom_classes.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_classes_order_by_type_with_custom_classes.py.snap index 08c6f19dde..63397c3886 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_classes_order_by_type_with_custom_classes.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_classes_order_by_type_with_custom_classes.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- order_by_type_with_custom_classes.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -20,5 +21,3 @@ order_by_type_with_custom_classes.py:1:1: I001 [*] Import block is un-sorted or 3 |+from module import BASIC, CONSTANT, Apple, CLASS, Class, function 4 |+from sklearn.svm import CONST, Klass, SVC, func 5 |+from torch.nn import A_CONSTANT, AClass, SELU - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_constants.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_constants.py.snap index d935e77286..c0a083b0a5 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_constants.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_constants.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- order_by_type_with_custom_constants.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -14,5 +15,3 @@ order_by_type_with_custom_constants.py:1:1: I001 [*] Import block is un-sorted o 1 |+from subprocess import STDOUT, A_constant, Class, First, Last, func, konst, var 2 |+ 3 |+from sklearn.svm import XYZ, Const, Klass, constant, func, variable - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_constants_order_by_type_with_custom_constants.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_constants_order_by_type_with_custom_constants.py.snap index ce509d7bdc..d1e18cb875 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_constants_order_by_type_with_custom_constants.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_constants_order_by_type_with_custom_constants.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- order_by_type_with_custom_constants.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -14,5 +15,3 @@ order_by_type_with_custom_constants.py:1:1: I001 [*] Import block is un-sorted o 1 |+from subprocess import A_constant, First, konst, Last, STDOUT, Class, func, var 2 |+ 3 |+from sklearn.svm import Const, constant, XYZ, Klass, func, variable - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_variables.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_variables.py.snap index 5285c77bf8..26485f5bb5 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_variables.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_variables.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- order_by_type_with_custom_variables.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -14,5 +15,3 @@ order_by_type_with_custom_variables.py:1:1: I001 [*] Import block is un-sorted o 1 |+from subprocess import CONSTANT, Klass, Variable, exe, utils, var_ABC 2 |+ 3 |+from sklearn.svm import CONST, VAR, Class, MyVar, abc - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_variables_order_by_type_with_custom_variables.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_variables_order_by_type_with_custom_variables.py.snap index ed6c44822c..0188217dd3 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_variables_order_by_type_with_custom_variables.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_by_type_with_custom_variables_order_by_type_with_custom_variables.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- order_by_type_with_custom_variables.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -14,5 +15,3 @@ order_by_type_with_custom_variables.py:1:1: I001 [*] Import block is un-sorted o 1 |+from subprocess import CONSTANT, Klass, exe, utils, var_ABC, Variable 2 |+ 3 |+from sklearn.svm import CONST, Class, abc, MyVar, VAR - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_relative_imports_by_level.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_relative_imports_by_level.py.snap index f1aad7edc0..163a40ce4c 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_relative_imports_by_level.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__order_relative_imports_by_level.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- order_relative_imports_by_level.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -16,5 +17,3 @@ order_relative_imports_by_level.py:1:1: I001 [*] Import block is un-sorted or un 3 2 | from ..b import a 3 |+from .a import a 4 4 | from .b import a - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_comment_order.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_comment_order.py.snap index 375b252ccf..d6b5c74842 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_comment_order.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_comment_order.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- preserve_comment_order.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -29,5 +30,3 @@ preserve_comment_order.py:1:1: I001 [*] Import block is un-sorted or un-formatte 9 11 | # EIEIO 10 12 | from errno import EIO 11 |-import abc - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_import_star.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_import_star.py.snap index e44b824e4d..7af1fcf168 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_import_star.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_import_star.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- preserve_import_star.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -24,5 +25,3 @@ preserve_import_star.py:1:1: I001 [*] Import block is un-sorted or un-formatted 5 |+from some_module import some_class # Aside 6 |+from some_other_module import * 7 |+from some_other_module import some_class - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_indentation.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_indentation.py.snap index d9117c89e6..50b7f816b7 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_indentation.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_indentation.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- preserve_indentation.py:2:1: I001 [*] Import block is un-sorted or un-formatted | @@ -38,5 +39,3 @@ preserve_indentation.py:5:1: I001 [*] Import block is un-sorted or un-formatted 5 |+ import os 5 6 | import sys 6 |- import os - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs_2.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs_2.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs_2.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs_2.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__propagate_inline_comments_propagate_inline_comments.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__propagate_inline_comments_propagate_inline_comments.py.snap index 6346a04dd2..709cc224ca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__propagate_inline_comments_propagate_inline_comments.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__propagate_inline_comments_propagate_inline_comments.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- propagate_inline_comments.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -16,5 +17,3 @@ propagate_inline_comments.py:1:1: I001 [*] Import block is un-sorted or un-forma 3 |- items, 4 3 | ) 4 |+from mypackage.subpackage import items # long comment that seems to be a problem - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__relative_imports_order.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__relative_imports_order.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__relative_imports_order.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__relative_imports_order.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__reorder_within_section.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__reorder_within_section.py.snap index 23d95af354..baed688328 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__reorder_within_section.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__reorder_within_section.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- reorder_within_section.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -12,5 +13,3 @@ reorder_within_section.py:1:1: I001 [*] Import block is un-sorted or un-formatte 1 |+import os 1 2 | import sys 2 |-import os - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_comment.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_comment.py.snap index 313ec7cbb4..6cb60ee453 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_comment.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_comment.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- comment.py:1:1: I002 [*] Missing required import: `from __future__ import annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_comments_and_newlines.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_comments_and_newlines.py.snap index c5d92854a2..f7ba64f556 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_comments_and_newlines.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_comments_and_newlines.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- comments_and_newlines.py:1:1: I002 [*] Missing required import: `from __future__ import annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring.py.snap index 4a51354685..d42aa75e7c 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- docstring.py:1:1: I002 [*] Missing required import: `from __future__ import annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring.pyi.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring.pyi.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring.pyi.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring.pyi.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_only.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_only.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_only.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_only.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_with_continuation.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_with_continuation.py.snap index c48ef63610..29dd093d4a 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_with_continuation.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_with_continuation.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- docstring_with_continuation.py:1:1: I002 [*] Missing required import: `from __future__ import annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_with_semicolon.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_with_semicolon.py.snap index dfd35beb25..2d76188cec 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_with_semicolon.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_with_semicolon.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- docstring_with_semicolon.py:1:1: I002 [*] Missing required import: `from __future__ import annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_empty.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_empty.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_empty.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_empty.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_existing_import.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_existing_import.py.snap index 12ff6dbd5c..b8f83954fb 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_existing_import.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_existing_import.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- existing_import.py:1:1: I002 [*] Missing required import: `from __future__ import annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_multiline_docstring.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_multiline_docstring.py.snap index 18e6b94876..794cf1641d 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_multiline_docstring.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_multiline_docstring.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- multiline_docstring.py:1:1: I002 [*] Missing required import: `from __future__ import annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_off.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_off.py.snap index 5107b91290..4cf37432a7 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_off.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_off.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- off.py:1:1: I002 [*] Missing required import: `from __future__ import annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_unused.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_unused.py.snap index 0d79276e0e..d2e56b8e36 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_unused.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_unused.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- unused.py:5:8: F401 [*] `sys` imported but unused | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_comment.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_comment.py.snap index ea3f16c36b..e2fe2c526b 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_comment.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_comment.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- comment.py:1:1: I002 [*] Missing required import: `from __future__ import annotations as _annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_comments_and_newlines.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_comments_and_newlines.py.snap index 509094af63..168812400c 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_comments_and_newlines.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_comments_and_newlines.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- comments_and_newlines.py:1:1: I002 [*] Missing required import: `from __future__ import annotations as _annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring.py.snap index 21c36c4e30..00eff57da5 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- docstring.py:1:1: I002 [*] Missing required import: `from __future__ import annotations as _annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring.pyi.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring.pyi.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring.pyi.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring.pyi.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_only.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_only.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_only.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_only.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_with_continuation.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_with_continuation.py.snap index 0a40adb35a..e68324b25f 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_with_continuation.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_with_continuation.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- docstring_with_continuation.py:1:1: I002 [*] Missing required import: `from __future__ import annotations as _annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_with_semicolon.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_with_semicolon.py.snap index 3c61e64a8b..f6ff025e7c 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_with_semicolon.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_with_semicolon.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- docstring_with_semicolon.py:1:1: I002 [*] Missing required import: `from __future__ import annotations as _annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_empty.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_empty.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_empty.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_empty.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_existing_import.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_existing_import.py.snap index 96e891413b..122d844256 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_existing_import.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_existing_import.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- existing_import.py:1:1: I002 [*] Missing required import: `from __future__ import annotations as _annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_multiline_docstring.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_multiline_docstring.py.snap index 6426ab3898..8087f019db 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_multiline_docstring.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_multiline_docstring.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- multiline_docstring.py:1:1: I002 [*] Missing required import: `from __future__ import annotations as _annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_off.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_off.py.snap index 4387774ddd..1a194ac0cf 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_off.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_off.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- off.py:1:1: I002 [*] Missing required import: `from __future__ import annotations as _annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_useless_alias_this_this.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_useless_alias_this_this.py.snap index ae68eebe4c..c59adb4f32 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_useless_alias_this_this.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_useless_alias_this_this.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- this_this.py:1:8: PLC0414 Required import does not rename original package. | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_importfrom_with_useless_alias_this_this_from.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_importfrom_with_useless_alias_this_this_from.py.snap index 49767099e0..50dbb294d5 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_importfrom_with_useless_alias_this_this_from.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_importfrom_with_useless_alias_this_this_from.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- this_this_from.py:1:20: PLC0414 Required import does not rename original package. | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring.py.snap index d65d89b703..1ce65ad21f 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- docstring.py:1:1: I002 [*] Missing required import: `from __future__ import annotations` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring.pyi.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring.pyi.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring.pyi.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring.pyi.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring_only.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring_only.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring_only.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring_only.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_empty.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_empty.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_empty.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_empty.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__ruff_skip_file.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__ruff_skip_file.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__ruff_skip_file.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__ruff_skip_file.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__section_order_sections.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__section_order_sections.py.snap index 8643ef2443..771c778720 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__section_order_sections.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__section_order_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- sections.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -26,5 +27,3 @@ sections.py:1:1: I001 [*] Import block is un-sorted or un-formatted 6 10 | from library import foo 11 |+ 7 12 | from . import local - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__sections_main_first_party.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__sections_main_first_party.py.snap index 404ad962cb..406b339a5b 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__sections_main_first_party.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__sections_main_first_party.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- main_first_party.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -27,5 +28,3 @@ main_first_party.py:1:1: I001 [*] Import block is un-sorted or un-formatted 6 6 | import first_party 7 7 | 8 8 | os.a - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__sections_sections.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__sections_sections.py.snap index 15572d6be1..f64def1fe0 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__sections_sections.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__sections_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- sections.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -26,5 +27,3 @@ sections.py:1:1: I001 [*] Import block is un-sorted or un-formatted 7 9 | from . import local 10 |+ 11 |+import django.settings - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_first_party_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_first_party_imports.py.snap index e1f4b5298d..4d825d6568 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_first_party_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_first_party_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- separate_first_party_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -21,5 +22,3 @@ separate_first_party_imports.py:1:1: I001 [*] Import block is un-sorted or un-fo 3 |-import numpy as np 4 |-import os 5 7 | from leading_prefix import Class - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_future_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_future_imports.py.snap index 238a0b20f6..9c916a94c2 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_future_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_future_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- separate_future_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -16,5 +17,3 @@ separate_future_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatt 2 |+ 3 |+import os 4 |+import sys - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_local_folder_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_local_folder_imports.py.snap index 88d2f3a1bc..a7a86d4796 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_local_folder_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_local_folder_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- separate_local_folder_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_third_party_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_third_party_imports.py.snap index 955c5421ff..5b23952b2e 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_third_party_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__separate_third_party_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- separate_third_party_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -18,5 +19,3 @@ separate_third_party_imports.py:1:1: I001 [*] Import block is un-sorted or un-fo 3 4 | import numpy as np 4 |-import os 5 |+import pandas as pd - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__skip.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__skip.py.snap index acd83b5cbe..3acb2d46e3 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__skip.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__skip.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- skip.py:20:1: I001 [*] Import block is un-sorted or un-formatted | @@ -64,5 +65,3 @@ skip.py:34:1: I001 [*] Import block is un-sorted or un-formatted 34 |- import sys; import os 34 |+ import os 35 |+ import sys - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__sort_similar_imports.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__sort_similar_imports.py.snap index 588a1c9a97..2dadc46d8e 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__sort_similar_imports.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__sort_similar_imports.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- sort_similar_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -73,5 +74,3 @@ sort_similar_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted 24 |-import x as Y 25 |-import x 26 |-import x as a - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__split.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__split.py.snap index a729c4efd6..aa18086932 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__split.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__split.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- split.py:15:1: I001 [*] Import block is un-sorted or un-formatted | @@ -63,5 +64,3 @@ split.py:30:1: I001 [*] Import block is un-sorted or un-formatted 30 |+import c 30 31 | import d 31 |-import c - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__split_on_trailing_comma_magic_trailing_comma.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__split_on_trailing_comma_magic_trailing_comma.py.snap index 87b842c9f8..d7dcb367c4 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__split_on_trailing_comma_magic_trailing_comma.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__split_on_trailing_comma_magic_trailing_comma.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- magic_trailing_comma.py:2:1: I001 [*] Import block is un-sorted or un-formatted | @@ -91,5 +92,3 @@ magic_trailing_comma.py:2:1: I001 [*] Import block is un-sorted or un-formatted 37 |- member3, 38 |-) 19 |+from module2 import member1, member2, member3 - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__star_before_others.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__star_before_others.py.snap index 98fadba6e6..ef8b32117b 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__star_before_others.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__star_before_others.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- star_before_others.py:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -14,5 +15,3 @@ star_before_others.py:1:1: I001 [*] Import block is un-sorted or un-formatted 2 |+from .settings import * 2 3 | from .settings import ENV 3 |-from .settings import * - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring.py.snap index 6ce4357615..a10a6cbfdc 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- docstring.py:1:1: I002 [*] Missing required import: `import os` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring.pyi.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring.pyi.snap index 9c789cb79e..9b7f926158 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring.pyi.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- docstring.pyi:1:1: I002 [*] Missing required import: `import os` ℹ Safe fix diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring_only.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring_only.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring_only.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring_only.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_empty.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_empty.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_empty.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_empty.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__trailing_comment.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__trailing_comment.py.snap index 8a1f7e61d3..bd84df4794 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__trailing_comment.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__trailing_comment.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- trailing_comment.py:8:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__trailing_suffix.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__trailing_suffix.py.snap index 3f86e235fe..c376697885 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__trailing_suffix.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__trailing_suffix.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- trailing_suffix.py:1:1: I001 Import block is un-sorted or un-formatted | @@ -20,5 +21,3 @@ trailing_suffix.py:5:5: I001 Import block is un-sorted or un-formatted | |_____________^ I001 | = help: Organize imports - - diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__two_space.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__two_space.py.snap index 3d7aa73503..ed6afa3a60 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__two_space.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__two_space.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- two_space.py:2:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__type_comments.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__type_comments.py.snap index ed369f0fd6..803f879dca 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__type_comments.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__type_comments.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__unicode.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__unicode.py.snap index 0a6f035c62..66ca24d013 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__unicode.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__unicode.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs +snapshot_kind: text --- unicode.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_0.snap b/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_0.snap index 92a113461e..6e8463c24d 100644 --- a/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_0.snap +++ b/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_0.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/mccabe/mod.rs +snapshot_kind: text --- C901.py:2:5: C901 `trivial` is too complex (1 > 0) | @@ -196,5 +197,3 @@ C901.py:135:17: C901 `exception` is too complex (1 > 0) | ^^^^^^^^^ C901 136 | pass | - - diff --git a/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_10.snap b/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_10.snap index 59f3ea53f2..f41da3bb0a 100644 --- a/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_10.snap +++ b/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_10.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/mccabe/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_3.snap b/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_3.snap index cd1c01d173..397ba316a1 100644 --- a/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_3.snap +++ b/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_3.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/mccabe/mod.rs +snapshot_kind: text --- C901.py:73:5: C901 `try_else` is too complex (4 > 3) | @@ -19,5 +20,3 @@ C901.py:113:9: C901 `handle` is too complex (9 > 3) 114 | if args: 115 | return | - - diff --git a/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy-deprecated-function_NPY003.py.snap b/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy-deprecated-function_NPY003.py.snap index d857a69203..e7db8cbc60 100644 --- a/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy-deprecated-function_NPY003.py.snap +++ b/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy-deprecated-function_NPY003.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/numpy/mod.rs +snapshot_kind: text --- NPY003.py:4:5: NPY003 [*] `np.round_` is deprecated; use `np.round` instead | @@ -221,5 +222,3 @@ NPY003.py:18:5: NPY003 [*] `np.alltrue` is deprecated; use `np.all` instead 17 18 | sometrue(np.random.rand(5, 5)) 18 |- alltrue(np.random.rand(5, 5)) 19 |+ all(np.random.rand(5, 5)) - - diff --git a/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy-deprecated-type-alias_NPY001.py.snap b/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy-deprecated-type-alias_NPY001.py.snap index 6af2e8eac1..be73ca901f 100644 --- a/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy-deprecated-type-alias_NPY001.py.snap +++ b/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy-deprecated-type-alias_NPY001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/numpy/mod.rs +snapshot_kind: text --- NPY001.py:6:1: NPY001 [*] Type alias `np.float` is deprecated, replace with builtin type | diff --git a/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy-legacy-random_NPY002.py.snap b/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy-legacy-random_NPY002.py.snap index 270fa8fc67..2a33936384 100644 --- a/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy-legacy-random_NPY002.py.snap +++ b/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy-legacy-random_NPY002.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/numpy/mod.rs +snapshot_kind: text --- NPY002.py:12:8: NPY002 Replace legacy `np.random.standard_normal` call with `np.random.Generator` | @@ -514,5 +515,3 @@ NPY002.py:67:1: NPY002 Replace legacy `np.random.zipf` call with `np.random.Gene 67 | numpy.random.zipf() | ^^^^^^^^^^^^^^^^^ NPY002 | - - diff --git a/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy2-deprecation_NPY201.py.snap b/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy2-deprecation_NPY201.py.snap index 6941c9efc9..8c0a6a92e7 100644 --- a/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy2-deprecation_NPY201.py.snap +++ b/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy2-deprecation_NPY201.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/numpy/mod.rs +snapshot_kind: text --- NPY201.py:4:5: NPY201 [*] `np.add_docstring` will be removed in NumPy 2.0. Use `numpy.lib.add_docstring` instead. | diff --git a/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy2-deprecation_NPY201_2.py.snap b/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy2-deprecation_NPY201_2.py.snap index 56be229615..bf39ffc353 100644 --- a/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy2-deprecation_NPY201_2.py.snap +++ b/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy2-deprecation_NPY201_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/numpy/mod.rs +snapshot_kind: text --- NPY201_2.py:4:5: NPY201 `np.obj2sctype` will be removed without replacement in NumPy 2.0 | diff --git a/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy2-deprecation_NPY201_3.py.snap b/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy2-deprecation_NPY201_3.py.snap index 2ba8e85fa3..57e91dfff4 100644 --- a/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy2-deprecation_NPY201_3.py.snap +++ b/crates/ruff_linter/src/rules/numpy/snapshots/ruff_linter__rules__numpy__tests__numpy2-deprecation_NPY201_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/numpy/mod.rs +snapshot_kind: text --- NPY201_3.py:4:5: NPY201 [*] `np.DTypePromotionError` will be removed in NumPy 2.0. Use `numpy.exceptions.DTypePromotionError` instead. | diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_PD002.py.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_PD002.py.snap index 4b95a1c29a..b1bc23c5d7 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_PD002.py.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_PD002.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- PD002.py:5:23: PD002 [*] `inplace=True` should be avoided; it has inconsistent behavior | @@ -178,5 +179,3 @@ PD002.py:33:24: PD002 [*] `inplace=True` should be avoided; it has inconsistent 34 34 | 35 35 | # This method doesn't take exist in Pandas, so ignore it. 36 36 | x.rotate_z(45, inplace=True) - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_fail.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_fail.snap index f6335bd091..bca8d4d469 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_fail.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_fail.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- :4:23: PD002 [*] `inplace=True` should be avoided; it has inconsistent behavior | @@ -16,5 +17,3 @@ source: crates/ruff_linter/src/rules/pandas_vet/mod.rs 3 3 | x = pd.DataFrame() 4 |-x.drop(["a"], axis=1, inplace=True) 4 |+x = x.drop(["a"], axis=1) - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_pass.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_pass.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_allows_other_calls.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_allows_other_calls.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_allows_other_calls.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_allows_other_calls.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_fail.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_fail.snap index 19199f9380..7026c453c9 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_fail.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_fail.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- :3:9: PD003 `.isna` is preferred to `.isnull`; functionality is equivalent | @@ -7,5 +8,3 @@ source: crates/ruff_linter/src/rules/pandas_vet/mod.rs 3 | nulls = pd.isnull(val) | ^^^^^^^^^ PD003 | - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_pass.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_pass.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD004_fail.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD004_fail.snap index e5ffb845c0..41259bba7f 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD004_fail.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD004_fail.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- :3:13: PD004 `.notna` is preferred to `.notnull`; functionality is equivalent | @@ -7,5 +8,3 @@ source: crates/ruff_linter/src/rules/pandas_vet/mod.rs 3 | not_nulls = pd.notnull(val) | ^^^^^^^^^^ PD004 | - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD004_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD004_pass.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD004_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD004_pass.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_fail.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_fail.snap index bcbd120c01..a97967b081 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_fail.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_fail.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- :4:5: PD007 `.ix` is deprecated; use more explicit `.loc` or `.iloc` | @@ -8,5 +9,3 @@ source: crates/ruff_linter/src/rules/pandas_vet/mod.rs 4 | y = x.ix[[0, 2], "A"] | ^^^^^^^^^^^^^^^^^ PD007 | - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_iloc.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_iloc.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_iloc.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_iloc.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_loc.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_loc.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_loc.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_loc.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_fail.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_fail.snap index 40fae2d6b0..f82d38b5f4 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_fail.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_fail.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- :4:9: PD008 Use `.loc` instead of `.at`. If speed is important, use NumPy. | @@ -8,5 +9,3 @@ source: crates/ruff_linter/src/rules/pandas_vet/mod.rs 4 | index = x.at[:, ["B", "A"]] | ^^^^^^^^^^^^^^^^^^^ PD008 | - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass_on_attr.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass_on_attr.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass_on_attr.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass_on_attr.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD009_fail.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD009_fail.snap index 1d6826d250..ed47bb5b65 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD009_fail.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD009_fail.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- :4:9: PD009 Use `.iloc` instead of `.iat`. If speed is important, use NumPy. | @@ -8,5 +9,3 @@ source: crates/ruff_linter/src/rules/pandas_vet/mod.rs 4 | index = x.iat[:, 1:3] | ^^^^^^^^^^^^^ PD009 | - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD009_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD009_pass.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD009_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD009_pass.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD010_fail_pivot.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD010_fail_pivot.snap index 894fbee4dc..7b0ac4f67d 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD010_fail_pivot.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD010_fail_pivot.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- :4:9: PD010 `.pivot_table` is preferred to `.pivot` or `.unstack`; provides same functionality | @@ -10,5 +11,3 @@ source: crates/ruff_linter/src/rules/pandas_vet/mod.rs 5 | x, 6 | index="foo", | - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD010_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD010_pass.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD010_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD010_pass.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_fail_values.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_fail_values.snap index 94dd9fed94..4fb2da08d6 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_fail_values.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_fail_values.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- :4:10: PD011 Use `.to_numpy()` instead of `.values` | @@ -8,5 +9,3 @@ source: crates/ruff_linter/src/rules/pandas_vet/mod.rs 4 | result = x.values | ^^^^^^^^ PD011 | - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_array.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_array.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_array.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_array.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_node_name.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_node_name.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_node_name.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_node_name.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_to_array.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_to_array.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_to_array.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_to_array.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_call.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_call.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_call.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_call.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_dict.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_dict.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_dict.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_dict.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_import.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_import.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_import.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_import.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_instance.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_instance.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_instance.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_instance.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_store.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_store.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_store.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_store.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_unbound.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_unbound.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_unbound.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_unbound.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD012_pandas_use_of_dot_read_table.py.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD012_pandas_use_of_dot_read_table.py.snap index a9621cdd85..82ea7d58cb 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD012_pandas_use_of_dot_read_table.py.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD012_pandas_use_of_dot_read_table.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- pandas_use_of_dot_read_table.py:4:6: PD012 Use `.read_csv` instead of `.read_table` to read CSV files | @@ -38,5 +39,3 @@ pandas_use_of_dot_read_table.py:8:6: PD012 Use `.read_csv` instead of `.read_tab 9 | 10 | # Non-errors. | - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_fail_stack.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_fail_stack.snap index ccf015aa5c..1d456bb8bd 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_fail_stack.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_fail_stack.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- :4:5: PD013 `.melt` is preferred to `.stack`; provides same functionality | @@ -8,5 +9,3 @@ source: crates/ruff_linter/src/rules/pandas_vet/mod.rs 4 | y = x.stack(level=-1, dropna=True) | ^^^^^^^ PD013 | - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_numpy.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_numpy.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_numpy.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_numpy.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_unbound.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_unbound.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_unbound.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_unbound.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_fail_merge_on_pandas_object.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_fail_merge_on_pandas_object.snap index c8cf3ff541..7603634701 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_fail_merge_on_pandas_object.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_fail_merge_on_pandas_object.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- :5:1: PD015 Use `.merge` method instead of `pd.merge` function. They have equivalent functionality. | @@ -8,5 +9,3 @@ source: crates/ruff_linter/src/rules/pandas_vet/mod.rs 5 | pd.merge(x, y) | ^^^^^^^^ PD015 | - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe_with_multiple_args.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe_with_multiple_args.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe_with_multiple_args.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe_with_multiple_args.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_other_pd_function.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_other_pd_function.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_other_pd_function.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_other_pd_function.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD101_PD101.py.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD101_PD101.py.snap index 5df060ab23..34df628278 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD101_PD101.py.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD101_PD101.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- PD101.py:7:1: PD101 Using `series.nunique()` for checking that a series is constant is inefficient | @@ -118,5 +119,3 @@ PD101.py:18:1: PD101 Using `series.nunique()` for checking that a series is cons 19 | 20 | # No violation of this rule | - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_fail_df_var.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_fail_df_var.snap index 51b8ad12d9..ac07ab731d 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_fail_df_var.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_fail_df_var.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- :3:1: PD901 Avoid using the generic variable name `df` for DataFrames | @@ -7,5 +8,3 @@ source: crates/ruff_linter/src/rules/pandas_vet/mod.rs 3 | df = pd.DataFrame() | ^^ PD901 | - - diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_df_param.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_df_param.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_df_param.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_df_param.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_non_df.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_non_df.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_non_df.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_non_df.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_part_df.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_part_df.snap index 07173f8f1b..18e7a86197 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_part_df.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_part_df.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N801_N801.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N801_N801.py.snap index 976d069204..2937234479 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N801_N801.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N801_N801.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N801.py:1:7: N801 Class name `bad` should use CapWords convention | diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N802_N802.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N802_N802.py.snap index 7e901545aa..f15dd43444 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N802_N802.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N802_N802.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N802.py:4:5: N802 Function name `Bad` should be lowercase | @@ -37,5 +38,3 @@ N802.py:40:9: N802 Function name `testTest` should be lowercase | ^^^^^^^^ N802 41 | assert True | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N803_N803.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N803_N803.py.snap index cf7c5170e8..937e9d3d8f 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N803_N803.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N803_N803.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N803.py:1:16: N803 Argument name `A` should be lowercase | @@ -15,5 +16,3 @@ N803.py:6:28: N803 Argument name `A` should be lowercase | ^ N803 7 | return _, a, A | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N804_N804.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N804_N804.py.snap index ae7c7a8bc9..992353a4c6 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N804_N804.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N804_N804.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N804.py:30:27: N804 [*] First argument of a class method should be named `cls` | diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N805_N805.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N805_N805.py.snap index da5c1b1686..59574238ce 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N805_N805.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N805_N805.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N805.py:7:20: N805 [*] First argument of a method should be named `self` | diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N806_N806.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N806_N806.py.snap index 1baa39c610..f66bba1530 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N806_N806.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N806_N806.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N806.py:12:5: N806 Variable `Camel` in function should be lowercase | @@ -62,5 +63,3 @@ N806.py:60:5: N806 Variable `ValidationError` in function should be lowercase 60 | ValidationError = import_string(variable) # N806 | ^^^^^^^^^^^^^^^ N806 | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N807_N807.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N807_N807.py.snap index a1fa93b983..e6b7da8dbe 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N807_N807.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N807_N807.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N807.py:1:5: N807 Function name should not start and end with `__` | @@ -15,5 +16,3 @@ N807.py:14:9: N807 Function name should not start and end with `__` | ^^^^^^^ N807 15 | pass | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N811_N811.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N811_N811.py.snap index 0221ec269a..fce6f320a7 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N811_N811.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N811_N811.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N811.py:1:8: N811 Constant `CONST` imported as non-constant `const` | @@ -24,5 +25,3 @@ N811.py:3:17: N811 Constant `ANOTHER_CONSTANT` imported as non-constant `another 3 | from mod import ANOTHER_CONSTANT as another_constant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ N811 | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N812_N812.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N812_N812.py.snap index 2efc0a3344..3c82aa5167 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N812_N812.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N812_N812.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N812.py:1:8: N812 Lowercase `lowercase` imported as non-lowercase `Lower` | @@ -24,5 +25,3 @@ N812.py:3:17: N812 Lowercase `another_lowercase` imported as non-lowercase `Anot 3 | from mod import another_lowercase as AnotherLowercase | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ N812 | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N813_N813.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N813_N813.py.snap index d054e25e0e..b98af29bf0 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N813_N813.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N813_N813.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N813.py:1:8: N813 Camelcase `Camel` imported as lowercase `camel` | @@ -24,5 +25,3 @@ N813.py:3:17: N813 Camelcase `AnotherCamelCase` imported as lowercase `another_c 3 | from mod import AnotherCamelCase as another_camelcase | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ N813 | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N814_N814.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N814_N814.py.snap index 30aef08f54..d14b3e3595 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N814_N814.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N814_N814.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N814.py:1:8: N814 Camelcase `Camel` imported as constant `CAMEL` | @@ -24,5 +25,3 @@ N814.py:3:17: N814 Camelcase `AnotherCamelCase` imported as constant `ANOTHER_CA 3 | from mod import AnotherCamelCase as ANOTHER_CAMELCASE | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ N814 | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N815_N815.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N815_N815.py.snap index d507e8d1ca..1add362957 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N815_N815.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N815_N815.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N815.py:9:5: N815 Variable `mixedCase` in class scope should not be mixedCase | @@ -30,5 +31,3 @@ N815.py:11:5: N815 Variable `mixed_Case` in class scope should not be mixedCase 12 | myObj1 = collections.namedtuple("MyObj1", ["a", "b"]) 13 | myObj2 = namedtuple("MyObj2", ["a", "b"]) | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N816_N816.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N816_N816.py.snap index 03281db7ac..3f49a15856 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N816_N816.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N816_N816.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N816.py:7:1: N816 Variable `mixedCase` in global scope should not be mixedCase | @@ -30,5 +31,3 @@ N816.py:9:1: N816 Variable `mixed_Case` in global scope should not be mixedCase 10 | myObj1 = collections.namedtuple("MyObj1", ["a", "b"]) 11 | myObj2 = namedtuple("MyObj2", ["a", "b"]) | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N817_N817.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N817_N817.py.snap index 63fa4b0f16..5d2eee85fe 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N817_N817.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N817_N817.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N817.py:1:8: N817 CamelCase `CaMel` imported as acronym `CM` | diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N818_N818.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N818_N818.py.snap index 0ed5704b28..ce8fa62812 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N818_N818.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N818_N818.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N818.py:9:7: N818 Exception name `C` should be named with an Error suffix | @@ -14,5 +15,3 @@ N818.py:17:7: N818 Exception name `E` should be named with an Error suffix | ^ N818 18 | pass | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__MODULE____init__.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__MODULE____init__.py.snap index d1796d8cb2..6bd42f3740 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__MODULE____init__.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__MODULE____init__.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- __init__.py:1:1: N999 Invalid module name: 'MODULE' diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__MODULE__file.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__MODULE__file.py.snap index 719c39c477..da7b487719 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__MODULE__file.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__MODULE__file.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__flake9____init__.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__flake9____init__.py.snap index 719c39c477..da7b487719 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__flake9____init__.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__flake9____init__.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__invalid_name__0001_initial.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__invalid_name__0001_initial.py.snap index b173f1cdd9..84b2c0d8c4 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__invalid_name__0001_initial.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__invalid_name__0001_initial.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- 0001_initial.py:1:1: N999 Invalid module name: '0001_initial' diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__invalid_name__import.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__invalid_name__import.py.snap index ba4c79f6d5..6515383d63 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__invalid_name__import.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__invalid_name__import.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- import.py:1:1: N999 Invalid module name: 'import' diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod with spaces____init__.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod with spaces____init__.py.snap index 9a3176db80..b0c2fe5f67 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod with spaces____init__.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod with spaces____init__.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- __init__.py:1:1: N999 Invalid module name: 'mod with spaces' diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod with spaces__file.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod with spaces__file.py.snap index 719c39c477..da7b487719 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod with spaces__file.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod with spaces__file.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod-with-dashes____init__.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod-with-dashes____init__.py.snap index f9bd14831b..2a8ef3bd53 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod-with-dashes____init__.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod-with-dashes____init__.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- __init__.py:1:1: N999 Invalid module name: 'mod-with-dashes' diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__no_module__test.txt.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__no_module__test.txt.snap index 719c39c477..da7b487719 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__no_module__test.txt.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__no_module__test.txt.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____init__.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____init__.py.snap index 719c39c477..da7b487719 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____init__.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____init__.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____main__.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____main__.py.snap index 719c39c477..da7b487719 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____main__.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____main__.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____setup__.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____setup__.py.snap index 719c39c477..da7b487719 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____setup__.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____setup__.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.py.snap index 06a6465c61..85da15535d 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- file-with-dashes.py:1:1: N999 Invalid module name: 'file-with-dashes' diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.snap index 719c39c477..da7b487719 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__camelcase_imported_as_incorrect_convention.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__camelcase_imported_as_incorrect_convention.snap index 9eb17d9ae9..78972b3152 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__camelcase_imported_as_incorrect_convention.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__camelcase_imported_as_incorrect_convention.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N817.py:1:8: N817 CamelCase `CaMel` imported as acronym `CM` | diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__classmethod_decorators.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__classmethod_decorators.snap index b631ea1792..ec15dcc3c0 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__classmethod_decorators.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__classmethod_decorators.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N805.py:7:20: N805 [*] First argument of a method should be named `self` | diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N801_N801.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N801_N801.py.snap index 9a910411de..64d70b7ecf 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N801_N801.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N801_N801.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N801.py:4:7: N801 Class name `stillBad` should use CapWords convention | diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N802_N802.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N802_N802.py.snap index 516e7f5aee..48d63f69d9 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N802_N802.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N802_N802.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N802.py:6:5: N802 Function name `stillBad` should be lowercase | @@ -18,5 +19,3 @@ N802.py:13:9: N802 Function name `stillBad` should be lowercase | ^^^^^^^^ N802 14 | return super().tearDown() | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N803_N803.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N803_N803.py.snap index fbe7f97113..7a89eea0d2 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N803_N803.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N803_N803.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N803.py:4:16: N803 Argument name `stillBad` should be lowercase | @@ -18,5 +19,3 @@ N803.py:11:28: N803 Argument name `stillBad` should be lowercase | ^^^^^^^^ N803 12 | return _, a, stillBad | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N804_N804.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N804_N804.py.snap index 678a2358c4..c8848ff50e 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N804_N804.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N804_N804.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N804.py:5:27: N804 [*] First argument of a class method should be named `cls` | diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N805_N805.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N805_N805.py.snap index 0d5d100f42..743bef9166 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N805_N805.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N805_N805.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N805.py:7:20: N805 [*] First argument of a method should be named `self` | diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N806_N806.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N806_N806.py.snap index 7c718b9c8f..54f0782f26 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N806_N806.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N806_N806.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N806.py:3:5: N806 Variable `stillBad` in function should be lowercase | @@ -17,5 +18,3 @@ N806.py:6:5: N806 Variable `STILL_BAD` in function should be lowercase 6 | STILL_BAD = 0 | ^^^^^^^^^ N806 | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N807_N807.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N807_N807.py.snap index 691b3ddbee..9efd1ac9ea 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N807_N807.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N807_N807.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N807.py:4:5: N807 Function name should not start and end with `__` | @@ -18,5 +19,3 @@ N807.py:12:9: N807 Function name should not start and end with `__` | ^^^^^^^^^^^^ N807 13 | pass | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N811_N811.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N811_N811.py.snap index 4c76ee9b84..48c3b03770 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N811_N811.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N811_N811.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N811.py:2:8: N811 Constant `STILL_BAD` imported as non-constant `stillBad` | @@ -16,5 +17,3 @@ N811.py:5:17: N811 Constant `STILL_BAD` imported as non-constant `stillBad` 5 | from mod import STILL_BAD as stillBad | ^^^^^^^^^^^^^^^^^^^^^ N811 | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N812_N812.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N812_N812.py.snap index 5e40f3a2ac..59b53b5a98 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N812_N812.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N812_N812.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N812.py:2:8: N812 Lowercase `stillbad` imported as non-lowercase `stillBad` | @@ -16,5 +17,3 @@ N812.py:5:17: N812 Lowercase `stillbad` imported as non-lowercase `StillBad` 5 | from mod import stillbad as StillBad | ^^^^^^^^^^^^^^^^^^^^ N812 | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N813_N813.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N813_N813.py.snap index ce2bc77af7..bff4a4bbd1 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N813_N813.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N813_N813.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N813.py:2:8: N813 Camelcase `stillBad` imported as lowercase `stillbad` | @@ -25,5 +26,3 @@ N813.py:8:17: N813 Camelcase `StillBad` imported as lowercase `still_bad` 8 | from mod import StillBad as still_bad | ^^^^^^^^^^^^^^^^^^^^^ N813 | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N814_N814.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N814_N814.py.snap index d134f3384d..e395e7f13d 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N814_N814.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N814_N814.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N814.py:2:8: N814 Camelcase `StillBad` imported as constant `STILLBAD` | @@ -25,5 +26,3 @@ N814.py:8:17: N814 Camelcase `StillBad` imported as constant `STILL_BAD` 8 | from mod import StillBad as STILL_BAD | ^^^^^^^^^^^^^^^^^^^^^ N814 | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N815_N815.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N815_N815.py.snap index 85aad3c0b3..63a2ed9b4e 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N815_N815.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N815_N815.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N815.py:3:5: N815 Variable `stillBad` in class scope should not be mixedCase | @@ -54,5 +55,3 @@ N815.py:19:5: N815 Variable `still_Bad` in class scope should not be mixedCase 19 | still_Bad: set | ^^^^^^^^^ N815 | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N816_N816.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N816_N816.py.snap index 56f48fe0a7..a29d388089 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N816_N816.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N816_N816.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N816.py:2:1: N816 Variable `stillBad` in global scope should not be mixedCase | @@ -25,5 +26,3 @@ N816.py:8:1: N816 Variable `still_Bad` in global scope should not be mixedCase 8 | still_Bad = 0 | ^^^^^^^^^ N816 | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N817_N817.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N817_N817.py.snap index c746a3a0c2..4ab2508d9f 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N817_N817.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N817_N817.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N817.py:2:8: N817 CamelCase `StillBad` imported as acronym `SB` | @@ -16,5 +17,3 @@ N817.py:5:17: N817 CamelCase `StillBad` imported as acronym `SB` 5 | from mod import StillBad as SB | ^^^^^^^^^^^^^^ N817 | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N818_N818.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N818_N818.py.snap index fc378dc639..e33f176810 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N818_N818.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N818_N818.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N818.py:4:7: N818 Exception name `StillBad` should be named with an Error suffix | @@ -18,5 +19,3 @@ N818.py:10:7: N818 Exception name `StillBad` should be named with an Error suffi | ^^^^^^^^ N818 11 | pass | - - diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N999_N999__badAllowed____init__.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N999_N999__badAllowed____init__.py.snap index 719c39c477..da7b487719 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N999_N999__badAllowed____init__.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N999_N999__badAllowed____init__.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__staticmethod_decorators.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__staticmethod_decorators.snap index f253d2c666..2f54a26b90 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__staticmethod_decorators.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__staticmethod_decorators.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs +snapshot_kind: text --- N805.py:7:20: N805 [*] First argument of a method should be named `self` | diff --git a/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF101_PERF101.py.snap b/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF101_PERF101.py.snap index bf33ecd3e3..35bf8c149c 100644 --- a/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF101_PERF101.py.snap +++ b/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF101_PERF101.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/perflint/mod.rs +snapshot_kind: text --- PERF101.py:7:10: PERF101 [*] Do not cast an iterable to `list` before iterating over it | diff --git a/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF102_PERF102.py.snap b/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF102_PERF102.py.snap index f572521714..8598ae0e0b 100644 --- a/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF102_PERF102.py.snap +++ b/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF102_PERF102.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/perflint/mod.rs +snapshot_kind: text --- PERF102.py:5:21: PERF102 [*] When using only the values of a dict use the `values()` method | @@ -227,5 +228,3 @@ PERF102.py:106:16: PERF102 [*] When using only the keys of a dict use the `keys( 106 |- for(B,D)in A.items(): 106 |+ for B in A.keys(): 107 107 | if(C:=name_to_value.get(B.name)):A.run(B.set,C) - - diff --git a/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF203_PERF203.py.snap b/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF203_PERF203.py.snap index e67fdafc24..d7839484b7 100644 --- a/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF203_PERF203.py.snap +++ b/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF203_PERF203.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/perflint/mod.rs +snapshot_kind: text --- PERF203.py:5:5: PERF203 `try`-`except` within a loop incurs performance overhead | @@ -12,5 +13,3 @@ PERF203.py:5:5: PERF203 `try`-`except` within a loop incurs performance overhead 7 | 8 | # OK | - - diff --git a/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF401_PERF401.py.snap b/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF401_PERF401.py.snap index 31cf524b6d..ecb553565b 100644 --- a/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF401_PERF401.py.snap +++ b/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF401_PERF401.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/perflint/mod.rs +snapshot_kind: text --- PERF401.py:6:13: PERF401 Use a list comprehension to create a transformed list | diff --git a/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF402_PERF402.py.snap b/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF402_PERF402.py.snap index 08bcfb4a0c..e064b13123 100644 --- a/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF402_PERF402.py.snap +++ b/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF402_PERF402.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/perflint/mod.rs +snapshot_kind: text --- PERF402.py:5:9: PERF402 Use `list` or `list.copy` to create a copy of a list | @@ -8,5 +9,3 @@ PERF402.py:5:9: PERF402 Use `list` or `list.copy` to create a copy of a list 5 | result.append(i) # PERF402 | ^^^^^^^^^^^^^^^^ PERF402 | - - diff --git a/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF403_PERF403.py.snap b/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF403_PERF403.py.snap index f0418ee554..6f26d4eeee 100644 --- a/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF403_PERF403.py.snap +++ b/crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF403_PERF403.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/perflint/mod.rs +snapshot_kind: text --- PERF403.py:5:9: PERF403 Use a dictionary comprehension instead of a for-loop | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E101_E101.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E101_E101.py.snap index cfd70d8a76..0a6be93231 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E101_E101.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E101_E101.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E101.py:11:1: E101 Indentation contains mixed spaces and tabs | @@ -28,5 +29,3 @@ E101.py:19:1: E101 Indentation contains mixed spaces and tabs 19 | print("xyz"); | ^^^^ E101 | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E111_E11.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E111_E11.py.snap index 97ce990df6..7410af0c31 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E111_E11.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E111_E11.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E11.py:3:1: E111 Indentation is not a multiple of 4 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E112_E11.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E112_E11.py.snap index 70373df6f6..c25b450d50 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E112_E11.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E112_E11.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E11.py:9:1: E112 Expected an indented block | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E113_E11.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E113_E11.py.snap index 295b8830d3..09150ce64f 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E113_E11.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E113_E11.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E11.py:9:1: SyntaxError: Expected an indented block after `if` statement | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E114_E11.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E114_E11.py.snap index 46722a22f4..2d93426972 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E114_E11.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E114_E11.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E11.py:9:1: SyntaxError: Expected an indented block after `if` statement | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E115_E11.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E115_E11.py.snap index e51700d109..565fc858e3 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E115_E11.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E115_E11.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E11.py:9:1: SyntaxError: Expected an indented block after `if` statement | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E116_E11.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E116_E11.py.snap index 5a378f63e5..e968a2526d 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E116_E11.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E116_E11.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E11.py:9:1: SyntaxError: Expected an indented block after `if` statement | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E117_E11.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E117_E11.py.snap index 22ca83d0b0..73be2664e6 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E117_E11.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E117_E11.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E11.py:6:1: E117 Over-indented | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E201_E20.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E201_E20.py.snap index 4d0dbb2645..bc57c17a9d 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E201_E20.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E201_E20.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E20.py:2:6: E201 [*] Whitespace after '(' | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E202_E20.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E202_E20.py.snap index d4044ba4a5..d8db76fdef 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E202_E20.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E202_E20.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E20.py:19:23: E202 [*] Whitespace before ')' | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E203_E20.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E203_E20.py.snap index 7422f4309a..82c409afbf 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E203_E20.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E203_E20.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E20.py:51:10: E203 [*] Whitespace before ':' | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E204_E204.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E204_E204.py.snap index 050562950c..8e60ead61b 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E204_E204.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E204_E204.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E204.py:14:2: E204 [*] Whitespace after decorator | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E211_E21.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E211_E21.py.snap index 6c115b53c2..d3f2362f78 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E211_E21.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E211_E21.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E21.py:2:5: E211 [*] Whitespace before '(' | @@ -141,5 +142,3 @@ E21.py:27:27: E211 [*] Whitespace before '(' 28 28 | if sys.argv[i] == "--name" : 29 29 | return sys.argv[i + 1] 30 30 | return None - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E221_E22.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E221_E22.py.snap index 7df31ee2f5..8dd9b259ed 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E221_E22.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E221_E22.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E22.py:3:6: E221 [*] Multiple spaces before operator | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E222_E22.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E222_E22.py.snap index 71fad6ac8a..4b51eba90f 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E222_E22.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E222_E22.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E22.py:28:8: E222 [*] Multiple spaces after operator | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E223_E22.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E223_E22.py.snap index 363c9b3855..200f808881 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E223_E22.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E223_E22.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E22.py:43:2: E223 [*] Tab before operator | @@ -19,6 +20,4 @@ E22.py:43:2: E223 [*] Tab before operator 43 |+a = 3 # aligned with tab 44 44 | #: 45 45 | -46 46 | - - +46 46 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E224_E22.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E224_E22.py.snap index 4f268d5583..0e9c6256e9 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E224_E22.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E224_E22.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E22.py:48:5: E224 [*] Tab after operator | @@ -19,6 +20,4 @@ E22.py:48:5: E224 [*] Tab after operator 48 |+a += 1 49 49 | b += 1000 50 50 | #: -51 51 | - - +51 51 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E225_E22.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E225_E22.py.snap index 26ef6f3c70..e6dbca24d8 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E225_E22.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E225_E22.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E22.py:54:11: E225 [*] Missing whitespace around operator | @@ -251,5 +252,3 @@ E22.py:96:2: E225 [*] Missing whitespace around operator 97 97 | #: E225 E226 98 98 | c = (a +b)*(a - b) 99 99 | #: E225 E226 - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E226_E22.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E226_E22.py.snap index 881986bcc5..6e16928ddf 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E226_E22.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E226_E22.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E22.py:60:7: E226 [*] Missing whitespace around arithmetic operator | @@ -543,5 +544,3 @@ E22.py:119:14: E226 [*] Missing whitespace around arithmetic operator 120 120 | #: E227 121 121 | _1kB = _1MB>>10 122 122 | #: E227 - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E227_E22.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E227_E22.py.snap index 8edf3984b3..c6c317e218 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E227_E22.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E227_E22.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E22.py:72:13: E227 [*] Missing whitespace around bitwise or shift operator | @@ -168,5 +169,3 @@ E22.py:154:11: E227 [*] Missing whitespace around bitwise or shift operator 155 155 | print >> sys.stdout, "x is an integer." 156 156 | x = x / 2 - 1 157 157 | x = 1 @ 2 - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E228_E22.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E228_E22.py.snap index fd9f368f63..c72a3b1ae2 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E228_E22.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E228_E22.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E22.py:131:6: E228 [*] Missing whitespace around modulo operator | @@ -62,5 +63,3 @@ E22.py:135:26: E228 [*] Missing whitespace around modulo operator 136 136 | #: 137 137 | 138 138 | #: Okay - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E231_E23.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E231_E23.py.snap index 5a05a709d7..1a9c7a89ff 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E231_E23.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E231_E23.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E23.py:2:7: E231 [*] Missing whitespace after ',' | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E241_E24.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E241_E24.py.snap index dba2129ca8..f649c78530 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E241_E24.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E241_E24.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E24.py:2:8: E241 [*] Multiple spaces after comma | @@ -72,5 +73,3 @@ E24.py:13:18: E241 [*] Multiple spaces after comma 12 12 | ef, +h, 13 |- c, -d] 13 |+ c, -d] - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E242_E24.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E242_E24.py.snap index bf93c26308..f62ba2da45 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E242_E24.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E242_E24.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E24.py:6:8: E242 [*] Tab after comma | @@ -21,5 +22,3 @@ E24.py:6:8: E242 [*] Tab after comma 7 7 | #: Okay 8 8 | b = (1, 20) # space before 20 9 9 | #: E241 E241 E241 - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E251_E25.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E251_E25.py.snap index a87bcdff55..ae5584a4b3 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E251_E25.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E251_E25.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E25.py:2:12: E251 [*] Unexpected spaces around keyword / parameter equals | @@ -231,5 +232,3 @@ E25.py:23:10: E251 [*] Unexpected spaces around keyword / parameter equals 24 24 | ) 25 25 | #: Okay 26 26 | foo(bar=(1 == 1)) - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E252_E25.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E252_E25.py.snap index 2fbc8575d7..102fb70ec6 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E252_E25.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E252_E25.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E25.py:46:15: E252 [*] Missing whitespace around parameter equals | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E261_E26.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E261_E26.py.snap index d9b8a7679c..c0199f8794 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E261_E26.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E261_E26.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E26.py:2:5: E261 [*] Insert at least two spaces before an inline comment | @@ -18,5 +19,3 @@ E26.py:2:5: E261 [*] Insert at least two spaces before an inline comment 3 3 | #: E262:1:12 4 4 | x = x + 1 #Increment x 5 5 | #: E262:1:12 - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E262_E26.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E262_E26.py.snap index 658391acdc..413d87a7fd 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E262_E26.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E262_E26.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E26.py:4:12: E262 [*] Inline comment should start with `# ` | @@ -141,5 +142,3 @@ E26.py:86:8: E262 [*] Inline comment should start with `# ` 85 85 | 86 |-a = 1 #:Foo 86 |+a = 1 #: Foo - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E265_E26.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E265_E26.py.snap index 92b25ccb21..0e04de2d18 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E265_E26.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E265_E26.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E26.py:10:1: E265 [*] Block comment should start with `# ` | @@ -124,5 +125,3 @@ E26.py:78:1: E265 [*] Block comment should start with `# ` 79 79 | 80 80 | # We should strip the space, but preserve the hashes. 81 81 | #: E266:1:3 - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E266_E26.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E266_E26.py.snap index 4469e1b225..d71c78139b 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E266_E26.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E266_E26.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E26.py:19:5: E266 [*] Too many leading `#` before block comment | @@ -102,6 +103,4 @@ E26.py:82:1: E266 [*] Too many leading `#` before block comment 82 |+# Foo 83 83 | 84 84 | a = 1 ## Foo -85 85 | - - +85 85 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E271_E27.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E271_E27.py.snap index ffd296ba6a..d834555835 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E271_E27.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E271_E27.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E27.py:4:9: E271 [*] Multiple spaces after keyword | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E272_E27.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E272_E27.py.snap index c9f27f6f2a..f125dff9ab 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E272_E27.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E272_E27.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E27.py:21:2: E272 [*] Multiple spaces before keyword | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E273_E27.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E273_E27.py.snap index ecdb9d3a29..9b2e8fadf6 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E273_E27.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E273_E27.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E27.py:11:9: E273 [*] Tab after keyword | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E274_E27.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E274_E27.py.snap index 062a61bebf..9df5f766a3 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E274_E27.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E274_E27.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E27.py:29:2: E274 [*] Tab before keyword | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E275_E27.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E275_E27.py.snap index 0d0cc6d0df..0504b5be50 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E275_E27.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E275_E27.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E27.py:38:8: E275 [*] Missing whitespace after keyword | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E301_E30.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E301_E30.py.snap index c224ebbeb7..7c7fb04469 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E301_E30.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E301_E30.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.py:478:5: E301 [*] Expected 1 blank line, found 0 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E301_E30_syntax_error.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E301_E30_syntax_error.py.snap index 195fb4189a..afe020f83f 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E301_E30_syntax_error.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E301_E30_syntax_error.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_syntax_error.py:4:15: SyntaxError: Expected ']', found '(' | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E30.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E30.py.snap index e3fe5c1f33..a276cd51e8 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E30.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E30.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.py:533:1: E302 [*] Expected 2 blank lines, found 0 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_docstring.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_docstring.py.snap index 4fa4accc0c..ef9c640138 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_docstring.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_docstring.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E302_first_line_docstring.py:3:1: E302 [*] Expected 2 blank lines, found 1 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_expression.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_expression.py.snap index 9cd8779d1b..2626b10faa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_expression.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_expression.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E302_first_line_expression.py:3:1: E302 [*] Expected 2 blank lines, found 1 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_function.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_function.py.snap index a847c86079..ac34dfa6a0 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_function.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_function.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E302_first_line_function.py:4:1: E302 [*] Expected 2 blank lines, found 1 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_statement.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_statement.py.snap index a4736c7dd4..00f4d5d72d 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_statement.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E302_first_line_statement.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E302_first_line_statement.py:3:1: E302 [*] Expected 2 blank lines, found 1 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E30_syntax_error.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E30_syntax_error.py.snap index 4f0249230c..5be869e719 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E30_syntax_error.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E302_E30_syntax_error.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_syntax_error.py:4:15: SyntaxError: Expected ']', found '(' | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E30.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E30.py.snap index a5f47acd9e..3f5868e45b 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E30.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E30.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.py:617:2: E303 [*] Too many blank lines (2) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_comment.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_comment.py.snap index 0494356fb0..368a0521a3 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_comment.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_comment.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E303_first_line_comment.py:5:1: E303 [*] Too many blank lines (3) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_docstring.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_docstring.py.snap index d709f904dd..d1994e7275 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_docstring.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_docstring.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E303_first_line_docstring.py:5:1: E303 [*] Too many blank lines (3) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_expression.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_expression.py.snap index d81f9098c5..de3e3df25c 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_expression.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_expression.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E303_first_line_expression.py:5:1: E303 [*] Too many blank lines (3) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_statement.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_statement.py.snap index 7197d3e133..fef2b71f83 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_statement.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E303_first_line_statement.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E303_first_line_statement.py:5:1: E303 [*] Too many blank lines (3) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E30_syntax_error.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E30_syntax_error.py.snap index cc3a491b98..2744d695ab 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E30_syntax_error.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E303_E30_syntax_error.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_syntax_error.py:4:15: SyntaxError: Expected ']', found '(' | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E304_E30.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E304_E30.py.snap index 2c53c6bbf7..dd9f6cb151 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E304_E30.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E304_E30.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.py:765:1: E304 [*] Blank lines found after function decorator (1) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E305_E30.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E305_E30.py.snap index 275e9a19ef..c5167d251d 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E305_E30.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E305_E30.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.py:798:1: E305 [*] Expected 2 blank lines after class or function definition, found (1) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E305_E30_syntax_error.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E305_E30_syntax_error.py.snap index 8a63b25af3..cee866c200 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E305_E30_syntax_error.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E305_E30_syntax_error.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_syntax_error.py:4:15: SyntaxError: Expected ']', found '(' | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E306_E30.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E306_E30.py.snap index 8f83acc86f..6833baa68c 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E306_E30.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E306_E30.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.py:854:5: E306 [*] Expected 1 blank line before a nested definition, found 0 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E306_E30_syntax_error.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E306_E30_syntax_error.py.snap index 726be4dd3d..81b10e944c 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E306_E30_syntax_error.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E306_E30_syntax_error.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_syntax_error.py:4:15: SyntaxError: Expected ']', found '(' | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E401_E40.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E401_E40.py.snap index 165907675e..d1b610481a 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E401_E40.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E401_E40.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E40.py:2:1: E401 [*] Multiple imports on one line | @@ -176,5 +177,3 @@ E40.py:80:14: E401 [*] Multiple imports on one line 79 79 | 80 |- if True: import re as regex, string 80 |+ if True: import re as regex; import string - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E40.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E40.py.snap index 6d87474964..44bf5bc21a 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E40.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E40.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E40.py:56:1: E402 Module level import not at top of file | @@ -56,5 +57,3 @@ E40.py:68:8: E402 Module level import not at top of file 68 | x = 1; import re as regex, string | ^^^^^^^^^^^^^^^^^^^^^^^^^^ E402 | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402.ipynb.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402.ipynb.snap index 7c4447f71c..57da2d9c81 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402.ipynb.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402.ipynb.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E402.ipynb:9:1: E402 Module level import not at top of cell | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_0.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_0.py.snap index 197644bcd6..be3142cbab 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_0.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E402_0.py:35:1: E402 Module level import not at top of file | @@ -24,5 +25,3 @@ E402_0.py:45:11: E402 Module level import not at top of file 45 | import k; import l | ^^^^^^^^ E402 | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_1.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_1.py.snap index 069d635ce4..29be45489e 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_1.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E402_1.py:5:1: E402 Module level import not at top of file | @@ -18,5 +19,3 @@ E402_1.py:9:1: E402 Module level import not at top of file 9 | import c | ^^^^^^^^ E402 | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_2.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_2.py.snap index 6dcc4546f1..e5d90e3bfa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_2.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_2.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E501_E501.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E501_E501.py.snap index e4d4f16e24..457411baaa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E501_E501.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E501_E501.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E501.py:5:89: E501 Line too long (123 > 88) | @@ -55,5 +56,3 @@ E501.py:83:89: E501 Line too long (147 > 88) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E501 84 | """ | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E501_E501_3.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E501_E501_3.py.snap index a15f167fbe..7166e26560 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E501_E501_3.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E501_E501_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E501_3.py:11:89: E501 Line too long (89 > 88) | @@ -7,5 +8,3 @@ E501_3.py:11:89: E501 Line too long (89 > 88) 11 | "shape:" + "shape:" + "shape:" + "shape:" + "shape:" + "shape:" + "shape:" + "shape:aaaa" # type: ignore | ^ E501 | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E501_E501_4.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E501_E501_4.py.snap index 268c8156fc..1a5001103e 100644 Binary files a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E501_E501_4.py.snap and b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E501_E501_4.py.snap differ diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E701_E70.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E701_E70.py.snap index ddb2fbd2b7..a4bf3aaaf1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E701_E70.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E701_E70.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E70.py:2:5: E701 Multiple statements on one line (colon) | @@ -139,5 +140,3 @@ E70.py:59:12: E701 Multiple statements on one line (colon) 60 | #: 61 | class Foo: | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E702_E70.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E702_E70.py.snap index 56e7718289..d3232a1b9c 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E702_E70.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E702_E70.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E70.py:6:10: E702 Multiple statements on one line (semicolon) | @@ -70,5 +71,3 @@ E70.py:65:4: E702 Multiple statements on one line (semicolon) 66 | #: E703:2:1 67 | 0\ | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E703_E70.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E703_E70.py.snap index 712fd8e14b..399f4bfbb5 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E703_E70.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E703_E70.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E70.py:10:13: E703 [*] Statement ends with an unnecessary semicolon | @@ -105,5 +106,3 @@ E70.py:71:4: E703 [*] Statement ends with an unnecessary semicolon 71 |+ 5 72 72 | #: 73 73 | with x(y) as z: ... - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E703_E703.ipynb.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E703_E703.ipynb.snap index 068f245637..902265b169 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E703_E703.ipynb.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E703_E703.ipynb.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E703.ipynb:5:2: E703 [*] Statement ends with an unnecessary semicolon | @@ -42,5 +43,3 @@ E703.ipynb:9:6: E703 [*] Statement ends with an unnecessary semicolon 10 10 | # Semicolons with multiple expressions 11 11 | x; x; 12 12 | # Comments, newlines and whitespace - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E711_E711.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E711_E711.py.snap index ebb91bb228..242bbe9bc3 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E711_E711.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E711_E711.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E711.py:2:11: E711 [*] Comparison to `None` should be `cond is None` | @@ -204,5 +205,3 @@ E711.py:26:17: E711 [*] Comparison to `None` should be `cond is not None` 27 27 | pass 28 28 | 29 29 | #: Okay - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E712_E712.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E712_E712.py.snap index 0c98438051..4dc4f086ec 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E712_E712.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E712_E712.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E712.py:2:4: E712 [*] Avoid equality comparisons to `True`; use `if res:` for truth checks | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E713_E713.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E713_E713.py.snap index 44f8669d0f..845fa441d9 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E713_E713.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E713_E713.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E713.py:2:8: E713 [*] Test for membership should be `not in` | @@ -117,5 +118,3 @@ E713.py:40:12: E713 [*] Test for membership should be `not in` 39 39 | assert not (re.search(r"^.:\\Users\\[^\\]*\\Downloads\\.*") is None) 40 |-assert not('name' in request)or not request['name'] 40 |+assert 'name' not in request or not request['name'] - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E714_E714.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E714_E714.py.snap index fb009a7585..8b5df02535 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E714_E714.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E714_E714.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E714.py:2:8: E714 [*] Test for object identity should be `is not` | @@ -54,5 +55,3 @@ E714.py:39:13: E714 [*] Test for object identity should be `is not` 38 38 | assert [42, not foo] in bar 39 |-assert not (re.search(r"^.:\\Users\\[^\\]*\\Downloads\\.*") is None) 39 |+assert re.search(r"^.:\\Users\\[^\\]*\\Downloads\\.*") is not None - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E721_E721.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E721_E721.py.snap index 6d167b4801..076396f50b 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E721_E721.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E721_E721.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E721.py:2:4: E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E722_E722.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E722_E722.py.snap index 9de6888cf8..48d10268e4 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E722_E722.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E722_E722.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E722.py:4:1: E722 Do not use bare `except` | @@ -30,5 +31,3 @@ E722.py:16:1: E722 Do not use bare `except` 17 | pass 18 | #: Okay | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E731_E731.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E731_E731.py.snap index 32d034f1e7..c12a0033a0 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E731_E731.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E731_E731.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E731.py:3:5: E731 [*] Do not assign a `lambda` expression, use a `def` | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E741_E741.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E741_E741.py.snap index ceea95df29..93badbdb67 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E741_E741.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E741_E741.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E741.py:3:1: E741 Ambiguous variable name: `l` | @@ -209,5 +210,3 @@ E741.py:74:5: E741 Ambiguous variable name: `l` | ^ E741 75 | pass | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E741_E741.pyi.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E741_E741.pyi.snap index 79854e35dd..b6d200e295 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E741_E741.pyi.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E741_E741.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E741.pyi:3:1: E741 Ambiguous variable name: `l` | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E742_E742.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E742_E742.py.snap index 6b4c1429be..abfdba447e 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E742_E742.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E742_E742.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E742.py:1:7: E742 Ambiguous class name: `l` | @@ -21,5 +22,3 @@ E742.py:9:7: E742 Ambiguous class name: `O` | ^ E742 10 | pass | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E743_E743.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E743_E743.py.snap index 067cbe927f..0a80ad2cf8 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E743_E743.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E743_E743.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E743.py:1:5: E743 Ambiguous function name: `l` | @@ -22,5 +23,3 @@ E743.py:10:9: E743 Ambiguous function name: `O` | ^ E743 11 | pass | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W191_W19.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W191_W19.py.snap index a47fc90aff..a8779f5429 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W191_W19.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W191_W19.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- W19.py:1:1: W191 Indentation contains tabs | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W291_W29.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W291_W29.py.snap index f2e3a64a92..caf6753099 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W291_W29.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W291_W29.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- W29.py:4:6: W291 [*] Trailing whitespace | @@ -63,5 +64,3 @@ W29.py:13:6: W291 [*] Trailing whitespace 14 14 | #: W191 W292 noeol 15 15 | if False: 16 16 | pass # indented with tabs - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W291_W291.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W291_W291.py.snap index 44f7a2f7ae..a75ff6e87f 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W291_W291.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W291_W291.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- W291.py:1:23: W291 [*] Trailing whitespace | @@ -73,5 +74,3 @@ W291.py:14:10: W291 [*] Trailing whitespace 14 |- 1 + 2 14 |+ 1 + 2 15 15 | }' - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_0.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_0.py.snap index efd7799b3a..160bdf5662 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_0.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- W292_0.py:2:9: W292 [*] No newline at end of file | @@ -13,5 +14,3 @@ W292_0.py:2:9: W292 [*] No newline at end of file 1 1 | def fn() -> None: 2 |- pass 2 |+ pass - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_1.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_1.py.snap index 6dcc4546f1..e5d90e3bfa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_1.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_1.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_2.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_2.py.snap index 6dcc4546f1..e5d90e3bfa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_2.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_2.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_3.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_3.py.snap index 6dcc4546f1..e5d90e3bfa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_3.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_3.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W293_W29.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W293_W29.py.snap index 7ff3115215..4818cd126b 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W293_W29.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W293_W29.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- W29.py:7:1: W293 [*] Blank line contains whitespace | @@ -21,5 +22,3 @@ W29.py:7:1: W293 [*] Blank line contains whitespace 8 8 | bang = 12 9 9 | #: W291:2:35 10 10 | '''multiline - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W293_W293.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W293_W293.py.snap index a8f5782d43..f94b873549 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W293_W293.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W293_W293.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- W293.py:4:1: W293 [*] Blank line contains whitespace | @@ -80,5 +81,3 @@ W293.py:18:1: W293 [*] Blank line contains whitespace 18 |- 18 |+ 19 19 | inside a multiline string''' - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W605_W605_0.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W605_W605_0.py.snap index 9ce7ff2bca..4159318729 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W605_W605_0.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W605_W605_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- W605_0.py:2:10: W605 [*] Invalid escape sequence: `\.` | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W605_W605_1.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W605_W605_1.py.snap index ea0ced5b4f..fc4e14b017 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W605_W605_1.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W605_W605_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- W605_1.py:4:11: W605 [*] Invalid escape sequence: `\.` | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E301_notebook.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E301_notebook.snap index b128dda953..b8baafb5cd 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E301_notebook.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E301_notebook.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.ipynb:13:5: E301 [*] Expected 1 blank line, found 0 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E301_typing_stub.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E301_typing_stub.snap index 6dcc4546f1..e5d90e3bfa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E301_typing_stub.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E301_typing_stub.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E302_notebook.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E302_notebook.snap index eada536b02..057bf5f941 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E302_notebook.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E302_notebook.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.ipynb:21:1: E302 [*] Expected 2 blank lines, found 1 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E302_typing_stub.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E302_typing_stub.snap index 6dcc4546f1..e5d90e3bfa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E302_typing_stub.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E302_typing_stub.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E303_notebook.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E303_notebook.snap index ce20914578..ec883dae31 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E303_notebook.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E303_notebook.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.ipynb:29:5: E303 [*] Too many blank lines (2) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E303_typing_stub.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E303_typing_stub.snap index 520a83ea86..b302d784da 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E303_typing_stub.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E303_typing_stub.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.pyi:17:1: E303 [*] Too many blank lines (2) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E304_notebook.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E304_notebook.snap index 7e09f8d244..785066990f 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E304_notebook.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E304_notebook.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.ipynb:45:1: E304 [*] Blank lines found after function decorator (1) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E304_typing_stub.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E304_typing_stub.snap index 565eeed36e..49ab3a3246 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E304_typing_stub.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E304_typing_stub.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.pyi:32:5: E304 [*] Blank lines found after function decorator (1) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E305_notebook.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E305_notebook.snap index 15dde40958..ef27833ff3 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E305_notebook.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E305_notebook.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.ipynb:55:1: E305 [*] Expected 2 blank lines after class or function definition, found (1) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E305_typing_stub.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E305_typing_stub.snap index 6dcc4546f1..e5d90e3bfa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E305_typing_stub.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E305_typing_stub.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E306_notebook.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E306_notebook.snap index 7f1131c23f..a5675e1a55 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E306_notebook.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E306_notebook.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30.ipynb:60:5: E306 [*] Expected 1 blank line before a nested definition, found 0 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E306_typing_stub.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E306_typing_stub.snap index 6dcc4546f1..e5d90e3bfa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E306_typing_stub.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E306_typing_stub.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(-1)-between(0).snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(-1)-between(0).snap index 7b01f96447..3fdd8bbb25 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(-1)-between(0).snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(-1)-between(0).snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_isort.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(0)-between(0).snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(0)-between(0).snap index 92e7ce4e2e..9858c0e61f 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(0)-between(0).snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(0)-between(0).snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_isort.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(1)-between(1).snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(1)-between(1).snap index 2e8fed4bd6..1df526f6d3 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(1)-between(1).snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(1)-between(1).snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_isort.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(4)-between(4).snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(4)-between(4).snap index c24ef9e346..ff3b53cc1a 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(4)-between(4).snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_top_level_isort_compatibility-lines-after(4)-between(4).snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_isort.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_typing_stub_isort.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_typing_stub_isort.snap index ea026fcf07..67a4e6ccca 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_typing_stub_isort.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_typing_stub_isort.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_isort.pyi:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__constant_literals.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__constant_literals.snap index 83478872df..04831e37b3 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__constant_literals.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__constant_literals.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- constant_literals.py:4:4: F632 [*] Use `==` to compare constant literals | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__max_doc_length.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__max_doc_length.snap index 3b5726d319..c976d4c5f6 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__max_doc_length.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__max_doc_length.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- W505.py:2:51: W505 Doc line too long (57 > 50) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__max_doc_length_with_utf_8.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__max_doc_length_with_utf_8.snap index a47212461f..151742374c 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__max_doc_length_with_utf_8.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__max_doc_length_with_utf_8.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- W505_utf_8.py:2:50: W505 Doc line too long (57 > 50) | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__E502_E502.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__E502_E502.py.snap index 6862f6161f..d28418368a 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__E502_E502.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__E502_E502.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E502.py:9:9: E502 [*] Redundant backslash | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__E741_E741.pyi.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__E741_E741.pyi.snap index 6dcc4546f1..e5d90e3bfa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__E741_E741.pyi.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__E741_E741.pyi.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_0.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_0.py.snap index 643743f66b..6007618c85 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_0.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- W391_0.py:14:1: W391 [*] Extra newline at end of file | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_1.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_1.py.snap index 6dcc4546f1..e5d90e3bfa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_1.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_1.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_2.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_2.py.snap index 8ca9ecd0c1..93c60c5fa0 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_2.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- W391_2.py:14:1: W391 [*] Too many newlines at end of file | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_3.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_3.py.snap index 6dcc4546f1..e5d90e3bfa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_3.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_3.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_4.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_4.py.snap index 6dcc4546f1..e5d90e3bfa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_4.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_4.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__shebang.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__shebang.snap index fa3897bebc..bd5f7a287c 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__shebang.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__shebang.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- shebang.py:3:1: E265 [*] Block comment should start with `# ` | @@ -17,5 +18,3 @@ shebang.py:3:1: E265 [*] Block comment should start with `# ` 3 |-#! 3 |+# ! 4 4 | #: - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_1.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_1.snap index 98ee4b6d01..ff6d0984c1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_1.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_1.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E501_2.py:2:7: E501 Line too long (7 > 6) | @@ -47,5 +48,3 @@ E501_2.py:16:7: E501 Line too long (7 > 6) 16 | [1, 2] | ^ E501 | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_2.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_2.snap index a1800fab20..311ebe1d1e 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_2.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_2.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E501_2.py:2:7: E501 Line too long (7 > 6) | @@ -86,5 +87,3 @@ E501_2.py:16:6: E501 Line too long (8 > 6) 16 | [1, 2] | ^^ E501 | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_4.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_4.snap index da581f2a64..f9a2e5c4f5 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_4.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_4.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E501_2.py:2:7: E501 Line too long (7 > 6) | @@ -106,5 +107,3 @@ E501_2.py:16:4: E501 Line too long (10 > 6) 16 | [1, 2] | ^^^^ E501 | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_8.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_8.snap index 8494868830..b120644711 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_8.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__tab_size_8.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E501_2.py:2:7: E501 Line too long (7 > 6) | @@ -106,5 +107,3 @@ E501_2.py:16:2: E501 Line too long (14 > 6) 16 | [1, 2] | ^^^^^^ E501 | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__task_tags_false.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__task_tags_false.snap index 6b373eafbf..2efa2608b2 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__task_tags_false.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__task_tags_false.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E501_1.py:1:89: E501 Line too long (149 > 88) | @@ -74,5 +75,3 @@ E501_1.py:8:89: E501 Line too long (159 > 88) 8 | # FIXME(charlie): comments starting with one of the configured task-tags sometimes are longer than line-length so that you can easily find them with `git grep` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E501 | - - diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__task_tags_true.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__task_tags_true.snap index 6dcc4546f1..e5d90e3bfa 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__task_tags_true.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__task_tags_true.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(-1)-between(0).snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(-1)-between(0).snap index 8e0ac4d6f2..bb2fe177c6 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(-1)-between(0).snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(-1)-between(0).snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_isort.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(0)-between(0).snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(0)-between(0).snap index 092f7ecbde..cc904502af 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(0)-between(0).snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(0)-between(0).snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_isort.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(1)-between(1).snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(1)-between(1).snap index 3ba9a6f5e8..e4ca5f4408 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(1)-between(1).snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(1)-between(1).snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_isort.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(4)-between(4).snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(4)-between(4).snap index b4ebcc11a6..f65f231388 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(4)-between(4).snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__too_many_blank_lines_isort_compatibility-lines-after(4)-between(4).snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E30_isort.py:1:1: I001 [*] Import block is un-sorted or un-formatted | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__w292_4.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__w292_4.snap index 8761934c74..cadfcb66a8 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__w292_4.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__w292_4.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- W292_4.py:1:2: W292 [*] No newline at end of file | @@ -10,6 +11,4 @@ W292_4.py:1:2: W292 [*] No newline at end of file ℹ Safe fix 1 |- - 1 |+ - - + 1 |+ diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__white_space_syntax_error_compatibility.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__white_space_syntax_error_compatibility.snap index 73c770d6cb..8e10a8f07d 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__white_space_syntax_error_compatibility.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__white_space_syntax_error_compatibility.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs +snapshot_kind: text --- E2_syntax_error.py:1:10: SyntaxError: Expected an expression | diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-exception_DOC502_google.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-exception_DOC502_google.py.snap index 58a44b6914..4cc0dbdeb4 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-exception_DOC502_google.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-exception_DOC502_google.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs +snapshot_kind: text --- DOC502_google.py:16:1: DOC502 Raised exception is not explicitly raised: `FasterThanLightError` | diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-exception_DOC502_numpy.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-exception_DOC502_numpy.py.snap index 34a0964a08..8388dc31bd 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-exception_DOC502_numpy.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-exception_DOC502_numpy.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs +snapshot_kind: text --- DOC502_numpy.py:22:1: DOC502 Raised exception is not explicitly raised: `FasterThanLightError` | diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-returns_DOC202_google.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-returns_DOC202_google.py.snap index ded71e7f05..39b5b7252b 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-returns_DOC202_google.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-returns_DOC202_google.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs +snapshot_kind: text --- DOC202_google.py:20:1: DOC202 Docstring should not have a returns section because the function doesn't return anything | diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-returns_DOC202_numpy.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-returns_DOC202_numpy.py.snap index 4c1e3fffe4..be87167260 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-returns_DOC202_numpy.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-returns_DOC202_numpy.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs +snapshot_kind: text --- DOC202_numpy.py:24:1: DOC202 Docstring should not have a returns section because the function doesn't return anything | diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-yields_DOC403_google.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-yields_DOC403_google.py.snap index 2c3c651b22..2c0c0cb688 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-yields_DOC403_google.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-yields_DOC403_google.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs +snapshot_kind: text --- DOC403_google.py:20:1: DOC403 Docstring has a "Yields" section but the function doesn't yield anything | diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-yields_DOC403_numpy.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-yields_DOC403_numpy.py.snap index aff49d2869..291274f355 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-yields_DOC403_numpy.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-extraneous-yields_DOC403_numpy.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs +snapshot_kind: text --- DOC403_numpy.py:24:1: DOC403 Docstring has a "Yields" section but the function doesn't yield anything | diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501.py.snap index d3c56b22a3..884a3b2f86 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501_google.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501_google.py.snap index e8fbdff46c..df1d7f8bf8 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501_google.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501_google.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs +snapshot_kind: text --- DOC501_google.py:46:15: DOC501 Raised exception `FasterThanLightError` missing from docstring | diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501_numpy.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501_numpy.py.snap index 3511ea7a6a..d29ca6eca4 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501_numpy.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501_numpy.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs +snapshot_kind: text --- DOC501_numpy.py:53:15: DOC501 Raised exception `FasterThanLightError` missing from docstring | diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-returns_DOC201_google.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-returns_DOC201_google.py.snap index 6878a1bbe6..c59bd88cee 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-returns_DOC201_google.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-returns_DOC201_google.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs +snapshot_kind: text --- DOC201_google.py:9:5: DOC201 `return` is not documented in docstring | diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-returns_DOC201_numpy.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-returns_DOC201_numpy.py.snap index 37429d74f9..32d77ecbea 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-returns_DOC201_numpy.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-returns_DOC201_numpy.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs +snapshot_kind: text --- DOC201_numpy.py:11:5: DOC201 `return` is not documented in docstring | diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-yields_DOC402_google.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-yields_DOC402_google.py.snap index c3748cc435..93a94652bf 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-yields_DOC402_google.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-yields_DOC402_google.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs +snapshot_kind: text --- DOC402_google.py:9:5: DOC402 `yield` is not documented in docstring | diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-yields_DOC402_numpy.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-yields_DOC402_numpy.py.snap index fdf4e18cef..36c6d1fbec 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-yields_DOC402_numpy.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-yields_DOC402_numpy.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs +snapshot_kind: text --- DOC402_numpy.py:11:5: DOC402 `yield` is not documented in docstring | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100_D.py.snap index 6f91c05384..9c1041221e 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100_D.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:1:1: D100 Missing docstring in public module diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100_D100.ipynb.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100_D100.ipynb.snap index 724d6e7d20..b9a217857b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100_D100.ipynb.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100_D100.ipynb.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated___no_pkg_priv.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated___no_pkg_priv.py.snap index 724d6e7d20..b9a217857b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated___no_pkg_priv.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated___no_pkg_priv.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated__pkg__D100_pub.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated__pkg__D100_pub.py.snap index 0d611a61a2..ba3592fc30 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated__pkg__D100_pub.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated__pkg__D100_pub.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D100_pub.py:1:1: D100 Missing docstring in public module diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated__pkg___priv__no_D100_priv.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated__pkg___priv__no_D100_priv.py.snap index 724d6e7d20..b9a217857b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated__pkg___priv__no_D100_priv.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated__pkg___priv__no_D100_priv.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D101_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D101_D.py.snap index dcfc126666..e61807f3cb 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D101_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D101_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:15:7: D101 Missing docstring in public class | @@ -8,5 +9,3 @@ D.py:15:7: D101 Missing docstring in public class 16 | 17 | expect('meta', 'D419: Docstring is empty') | - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D102_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D102_D.py.snap index 541ef0be67..5528751f71 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D102_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D102_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:23:9: D102 Missing docstring in public method | @@ -42,5 +43,3 @@ D.py:659:9: D102 Missing docstring in public method | ^^^^^^^^^^^^^ D102 660 | pass | - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D102_setter.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D102_setter.py.snap index 522d7c43ee..7a9a4a2c13 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D102_setter.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D102_setter.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- setter.py:16:9: D102 Missing docstring in public method | @@ -8,5 +9,3 @@ setter.py:16:9: D102 Missing docstring in public method | ^^^ D102 17 | pass | - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D103_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D103_D.py.snap index 28944e8e09..3d9711e703 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D103_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D103_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:400:5: D103 Missing docstring in public function | @@ -7,5 +8,3 @@ D.py:400:5: D103 Missing docstring in public function 400 | def oneliner_d102(): return | ^^^^^^^^^^^^^ D103 | - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D104_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D104_D.py.snap index 724d6e7d20..b9a217857b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D104_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D104_D.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D104_D104____init__.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D104_D104____init__.py.snap index 5885932f5b..25f47b66c0 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D104_D104____init__.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D104_D104____init__.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- __init__.py:1:1: D104 Missing docstring in public package diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D105_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D105_D.py.snap index bc2595c1be..4b8945a3c2 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D105_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D105_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:64:9: D105 Missing docstring in magic method | @@ -8,5 +9,3 @@ D.py:64:9: D105 Missing docstring in magic method | ^^^^^^^ D105 65 | pass | - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D106_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D106_D.py.snap index 724d6e7d20..b9a217857b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D106_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D106_D.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D107_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D107_D.py.snap index f1e639bedd..b3c6872247 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D107_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D107_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:60:9: D107 Missing docstring in `__init__` | @@ -17,5 +18,3 @@ D.py:534:9: D107 Missing docstring in `__init__` | ^^^^^^^^ D107 535 | pass | - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D200_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D200_D.py.snap index 85ada6d00f..762a737fc1 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D200_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D200_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:129:5: D200 [*] One-line docstring should fit on one line | @@ -108,5 +109,3 @@ D.py:645:5: D200 One-line docstring should fit on one line 648 | class StatementOnSameLineAsDocstring: | = help: Reformat to one line - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D200_D200.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D200_D200.py.snap index 9cae5fd5f9..ffd1817a77 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D200_D200.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D200_D200.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D200.py:2:5: D200 One-line docstring should fit on one line | @@ -41,5 +42,3 @@ D200.py:12:5: D200 One-line docstring should fit on one line | |_______^ D200 | = help: Reformat to one line - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D201_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D201_D.py.snap index 977ac47b9d..50dc738c54 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D201_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D201_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:137:5: D201 [*] No blank lines allowed before function docstring (found 1) | @@ -84,5 +85,3 @@ D.py:568:5: D201 [*] No blank lines allowed before function docstring (found 1) 568 567 | """Trailing and leading space. 569 568 | 570 569 | More content. - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D202_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D202_D.py.snap index 8a67b2b176..67b98d7f56 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D202_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D202_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:142:5: D202 [*] No blank lines allowed after function docstring (found 1) | @@ -87,6 +88,4 @@ D.py:568:5: D202 [*] No blank lines allowed after function docstring (found 1) 572 |- 573 572 | pass 574 573 | -575 574 | - - +575 574 | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D202_D202.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D202_D202.py.snap index 90e915d102..5a4488570e 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D202_D202.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D202_D202.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D202.py:57:5: D202 [*] No blank lines allowed after function docstring (found 2) | @@ -58,5 +59,3 @@ D202.py:80:5: D202 [*] No blank lines allowed after function docstring (found 1) 82 81 | # This is a comment. 83 82 | 84 83 | def inner(): - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D203_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D203_D.py.snap index 3ef6f3205f..bdf0d463ff 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D203_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D203_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:161:5: D203 [*] 1 blank line required before class docstring | @@ -117,5 +118,3 @@ D.py:658:5: D203 [*] 1 blank line required before class docstring 658 659 | "After this docstring there's a comment." # priorities=1 659 660 | def sort_services(self): 660 661 | pass - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D204_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D204_D.py.snap index 425f22147b..12349f4b85 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D204_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D204_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:181:5: D204 [*] 1 blank line required after class docstring | @@ -97,6 +98,4 @@ D.py:658:5: D204 [*] 1 blank line required after class docstring 659 |+ 659 660 | def sort_services(self): 660 661 | pass -661 662 | - - +661 662 | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D205_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D205_D.py.snap index 290cd8a05f..76004ebc6c 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D205_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D205_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:200:5: D205 1 blank line required between summary line and description | @@ -37,5 +38,3 @@ D.py:210:5: D205 [*] 1 blank line required between summary line and description 213 212 | Description. 214 213 | 215 214 | """ - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D206_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D206_D.py.snap index 724d6e7d20..b9a217857b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D206_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D206_D.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D207_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D207_D.py.snap index d70f30883a..c330b6cde7 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D207_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D207_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:232:1: D207 [*] Docstring is under-indented | @@ -78,5 +79,3 @@ D.py:441:1: D207 [*] Docstring is under-indented 442 442 | 443 443 | 444 444 | def function_with_lambda_arg(x=lambda y: y): - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D208_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D208_D.py.snap index 5048d030c7..fd8b5e3228 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D208_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D208_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:252:1: D208 [*] Docstring is over-indented | @@ -428,5 +429,3 @@ D.py:723:1: D208 [*] Docstring is over-indented 723 |-     Returns: 723 |+ Returns: 724 724 | """ - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D208_D208.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D208_D208.py.snap index a2b5aad654..da42cdc858 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D208_D208.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D208_D208.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D208.py:2:1: D208 [*] Docstring is over-indented | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D209_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D209_D.py.snap index 97495aa319..cc26e3201b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D209_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D209_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:281:5: D209 [*] Multi-line docstring closing quotes should be on a separate line | @@ -46,5 +47,3 @@ D.py:588:5: D209 [*] Multi-line docstring closing quotes should be on a separate 591 592 | 592 593 | 593 594 | @expect('D200: One-line docstring should fit on one line with quotes ' - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D210_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D210_D.py.snap index 29b6fe3160..554afc5afa 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D210_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D210_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:288:5: D210 [*] No whitespaces allowed surrounding docstring text | @@ -70,5 +71,3 @@ D.py:581:5: D210 No whitespaces allowed surrounding docstring text | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ D210 | = help: Trim surrounding whitespace - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D211_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D211_D.py.snap index f89dc69584..35753cd8af 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D211_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D211_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:170:5: D211 [*] No blank lines allowed before class docstring | @@ -36,6 +37,4 @@ D.py:181:5: D211 [*] No blank lines allowed before class docstring 180 |- 181 180 | """TrailingSpace.""" 182 181 | pass -183 182 | - - +183 182 | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D212_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D212_D.py.snap index c37abb9572..d26db14bd0 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D212_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D212_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:129:5: D212 [*] Multi-line docstring summary should start at the first line | @@ -71,5 +72,3 @@ D.py:624:5: D212 [*] Multi-line docstring summary should start at the first line 627 625 | 628 626 | 629 627 | @expect('D404: First word of the docstring should not be "This"') - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D213_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D213_D.py.snap index 0253bc44cd..f0cc9ba885 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D213_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D213_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:200:5: D213 [*] Multi-line docstring summary should start at the second line | @@ -701,5 +702,3 @@ D.py:721:5: D213 [*] Multi-line docstring summary should start at the second lin 722 723 | 723 724 |     Returns: 724 725 | """ - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D214_D214_module.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D214_D214_module.py.snap index c95abffdad..31154618e4 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D214_D214_module.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D214_D214_module.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D214_module.py:3:5: D214 [*] Section is over-indented ("Returns") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D214_sections.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D214_sections.py.snap index 89f47fa2c6..ae3e3a73f2 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D214_sections.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D214_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sections.py:146:9: D214 [*] Section is over-indented ("Returns") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D215_D215.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D215_D215.py.snap index b93074fda8..eba14e8fcb 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D215_D215.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D215_D215.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D215.py:3:5: D215 [*] Section underline is over-indented ("TODO") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D215_sections.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D215_sections.py.snap index afbd747fbd..c3c2adcd32 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D215_sections.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D215_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sections.py:159:9: D215 [*] Section underline is over-indented ("Returns") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D300_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D300_D.py.snap index 7f14c7fe4c..94ec066d96 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D300_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D300_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:307:5: D300 [*] Use triple double quotes `"""` | @@ -198,6 +199,4 @@ D.py:664:5: D300 [*] Use triple double quotes `"""` 665 |+ but continuations shouldn't be considered multi-line""" 666 666 | 667 667 | -668 668 | - - +668 668 | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D300_D300.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D300_D300.py.snap index 2e3fedcf3d..81fcb9d3f3 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D300_D300.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D300_D300.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D300.py:6:5: D300 Use triple double quotes `"""` | @@ -26,5 +27,3 @@ D300.py:10:5: D300 [*] Use triple double quotes `"""` 11 11 | 12 12 | 13 13 | # OK - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D301_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D301_D.py.snap index 8c21aeac86..9da29e5fbc 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D301_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D301_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:333:5: D301 [*] Use `r"""` if any backslashes in a docstring | @@ -19,5 +20,3 @@ D.py:333:5: D301 [*] Use `r"""` if any backslashes in a docstring 334 334 | 335 335 | 336 336 | @expect('D301: Use r""" if any backslashes in a docstring') - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D301_D301.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D301_D301.py.snap index 2d72918693..e30bee97a5 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D301_D301.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D301_D301.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D301.py:2:5: D301 [*] Use `r"""` if any backslashes in a docstring | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D400_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D400_D.py.snap index 9953a0c2ef..e8ba4ec299 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D400_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D400_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:355:5: D400 [*] First line should end with a period | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D400_D400.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D400_D400.py.snap index f7a9059cce..0214242d6e 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D400_D400.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D400_D400.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D400.py:2:5: D400 [*] First line should end with a period | @@ -270,5 +271,3 @@ D400.py:97:5: D400 [*] First line should end with a period 99 99 | ========== 100 100 | 101 101 | My example explanation - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D400_D400_415.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D400_D400_415.py.snap index d4dd5303ed..de2d6b0996 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D400_D400_415.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D400_D400_415.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D400_415.py:2:5: D400 First line should end with a period | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D401_D401.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D401_D401.py.snap index b172f391a8..c0e59321e7 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D401_D401.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D401_D401.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D401.py:10:5: D401 First line of docstring should be in imperative mood: "Returns foo." | @@ -63,5 +64,3 @@ D401.py:74:9: D401 First line of docstring should be in imperative mood: "This m 75 | 76 | @property | - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D402_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D402_D.py.snap index d2a3fedef8..be6c3676b7 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D402_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D402_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:378:5: D402 First line should not be the function's signature | @@ -8,5 +9,3 @@ D.py:378:5: D402 First line should not be the function's signature 378 | """Signature: foobar().""" | ^^^^^^^^^^^^^^^^^^^^^^^^^^ D402 | - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D402_D402.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D402_D402.py.snap index ce5ec50a89..aa693f8397 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D402_D402.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D402_D402.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D402.py:2:5: D402 First line should not be the function's signature | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D.py.snap index 724d6e7d20..b9a217857b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D403.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D403.py.snap index 07a0589fb1..6faa93a9fa 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D403.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D403.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D403.py:2:5: D403 [*] First word of the first line should be capitalized: `this` -> `This` | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D404_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D404_D.py.snap index 4f75df8c0f..a4e7ad8bae 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D404_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D404_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:631:5: D404 First word of the docstring should not be "This" | @@ -32,5 +33,3 @@ D.py:641:18: D404 First word of the docstring should not be "This" 641 | def same_line(): """This is a docstring on the same line""" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ D404 | - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D405_sections.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D405_sections.py.snap index 2aff3caaa0..5ce531b61e 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D405_sections.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D405_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sections.py:19:5: D405 [*] Section name should be properly capitalized ("returns") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D406_sections.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D406_sections.py.snap index b64a36dc51..73a927ab34 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D406_sections.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D406_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sections.py:32:5: D406 [*] Section name should end with a newline ("Returns") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D407_sections.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D407_sections.py.snap index 0ee65c75af..345d61d13e 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D407_sections.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D407_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sections.py:44:5: D407 [*] Missing dashed underline after section ("Returns") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D408_sections.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D408_sections.py.snap index 38bec4612b..843296208e 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D408_sections.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D408_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sections.py:98:5: D408 [*] Section underline should be in the line following the section's name ("Returns") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D409_sections.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D409_sections.py.snap index 1b59fad56d..8f90efc04b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D409_sections.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D409_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sections.py:111:5: D409 [*] Section underline should match the length of its name ("Returns") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D410_D410.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D410_D410.py.snap index 2f7b0e4f92..dd457b8796 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D410_D410.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D410_D410.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D410.py:4:5: D410 [*] Missing blank line after section ("Parameters") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D410_sections.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D410_sections.py.snap index e8c466e138..246475689e 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D410_sections.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D410_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sections.py:78:5: D410 [*] Missing blank line after section ("Returns") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D411_sections.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D411_sections.py.snap index b516028f32..c893a2e059 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D411_sections.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D411_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sections.py:80:5: D411 [*] Missing blank line before section ("Yields") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D412_sections.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D412_sections.py.snap index a6461d2987..8f48cccc69 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D412_sections.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D412_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sections.py:218:5: D412 [*] No blank lines allowed between a section header and its content ("Short summary") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D412_sphinx.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D412_sphinx.py.snap index 8c9f7c45dc..5abbab23db 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D412_sphinx.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D412_sphinx.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sphinx.py:13:5: D412 [*] No blank lines allowed between a section header and its content ("Example") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D413_D413.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D413_D413.py.snap index a2a831d93e..7aa16a9e29 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D413_D413.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D413_D413.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D413.py:7:1: D413 [*] Missing blank line after last section ("Returns") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D413_sections.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D413_sections.py.snap index 223c7c3821..6a32760f8a 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D413_sections.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D413_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sections.py:67:5: D413 [*] Missing blank line after last section ("Returns") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D414_sections.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D414_sections.py.snap index b4a8317bd9..c50a27623f 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D414_sections.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D414_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sections.py:56:5: D414 Section has no content ("Returns") | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D415_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D415_D.py.snap index c563e95414..55cee7a07f 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D415_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D415_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:355:5: D415 [*] First line should end with a period, question mark, or exclamation point | @@ -310,6 +311,4 @@ D.py:664:5: D415 [*] First line should end with a period, question mark, or excl 665 |+ but continuations shouldn't be considered multi-line." 666 666 | 667 667 | -668 668 | - - +668 668 | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D415_D400_415.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D415_D400_415.py.snap index e59a2755af..2fdb5bc6c2 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D415_D400_415.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D415_D400_415.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D400_415.py:11:5: D415 First line should end with a period, question mark, or exclamation point | diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D416_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D416_D.py.snap index 724d6e7d20..b9a217857b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D416_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D416_D.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_google_examples.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_google_examples.py.snap index 724d6e7d20..b9a217857b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_google_examples.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_google_examples.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_numpy_examples.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_numpy_examples.py.snap index 724d6e7d20..b9a217857b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_numpy_examples.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_numpy_examples.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_sections.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_sections.py.snap index 1ea3024585..ffc17f2005 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_sections.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_sections.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- sections.py:292:9: D417 Missing argument description in the docstring for `bar`: `y` | @@ -99,5 +100,3 @@ sections.py:498:9: D417 Missing argument description in the docstring for `test_ | ^^^^^^^^^^^^^^^^^^^^^ D417 499 | """Reproducing issue #437. | - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D418_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D418_D.py.snap index 984c3d6a0f..515371cb79 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D418_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D418_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:34:9: D418 Function decorated with `@overload` shouldn't contain a docstring | @@ -27,5 +28,3 @@ D.py:110:5: D418 Function decorated with `@overload` shouldn't contain a docstri 111 | """Foo bar documentation.""" 112 | ... | - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D419_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D419_D.py.snap index 0a2310b792..6775b85826 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D419_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D419_D.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D.py:20:9: D419 Docstring is empty | @@ -27,5 +28,3 @@ D.py:80:9: D419 Docstring is empty 80 | '' | ^^ D419 | - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__all.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__all.snap index 8ab522d021..4c659e417b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__all.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__all.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- all.py:1:1: D100 Missing docstring in public module all.py:1:5: D103 Missing docstring in public function diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__bom.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__bom.snap index bf80e65243..503c830dd1 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__bom.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__bom.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- bom.py:1:1: D300 [*] Use triple double quotes `"""` | @@ -11,5 +12,3 @@ bom.py:1:1: D300 [*] Use triple double quotes `"""` ℹ Safe fix 1 |-''' SAM macro definitions ''' 1 |+""" SAM macro definitions """ - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d209_d400.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d209_d400.snap index 02a19f057d..23f5c03653 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d209_d400.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d209_d400.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D209_D400.py:2:5: D209 [*] Multi-line docstring closing quotes should be on a separate line | @@ -33,5 +34,3 @@ D209_D400.py:2:5: D400 [*] First line should end with a period 2 2 | """lorem ipsum dolor sit amet consectetur adipiscing elit 3 |- sed do eiusmod tempor incididunt ut labore et dolore magna aliqua""" 3 |+ sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.""" - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_google.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_google.snap index 71117e0c97..e62ac506a5 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_google.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_google.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D417.py:1:5: D417 Missing argument descriptions in the docstring for `f`: `y`, `z` | @@ -71,5 +72,3 @@ D417.py:155:5: D417 Missing argument description in the docstring for `select_da 156 | query: str, 157 | args: tuple, | - - diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_numpy.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_numpy.snap index 724d6e7d20..b9a217857b 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_numpy.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_numpy.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_unspecified.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_unspecified.snap index 71117e0c97..e62ac506a5 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_unspecified.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_unspecified.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs +snapshot_kind: text --- D417.py:1:5: D417 Missing argument descriptions in the docstring for `f`: `y`, `z` | @@ -71,5 +72,3 @@ D417.py:155:5: D417 Missing argument description in the docstring for `select_da 156 | query: str, 157 | args: tuple, | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_0.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_0.py.snap index 433865de23..b77ae8d19f 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_0.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F401_0.py:2:8: F401 [*] `functools` imported but unused | @@ -282,5 +283,3 @@ F401_0.py:122:1: F401 [*] `datameta_client_lib.model_helpers.noqa` imported but 120 120 | 121 |-from datameta_client_lib.model_helpers import ( 122 |-noqa ) - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_1.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_1.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_1.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_1.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_10.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_10.py.snap index 213cd18b0a..a6748658a1 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_10.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_10.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F401_10.py:6:16: F401 `orjson` imported but unused; consider using `importlib.util.find_spec` to test for availability | @@ -22,5 +23,3 @@ F401_10.py:15:16: F401 `orjson` imported but unused; consider using `importlib.u 17 | return True | = help: Remove unused import: `orjson` - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_11.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_11.py.snap index 39c9b95a01..88d251d0fa 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_11.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_11.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F401_11.py:4:27: F401 [*] `pathlib.PurePath` imported but unused | @@ -18,5 +19,3 @@ F401_11.py:4:27: F401 [*] `pathlib.PurePath` imported but unused 5 5 | 6 6 | 7 7 | x: """List['Path']""" = [] - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_12.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_12.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_12.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_12.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_13.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_13.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_13.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_13.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_14.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_14.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_14.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_14.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_15.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_15.py.snap index cd5526e8f4..e868e4a466 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_15.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_15.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F401_15.py:5:25: F401 [*] `pathlib.Path` imported but unused | @@ -18,5 +19,3 @@ F401_15.py:5:25: F401 [*] `pathlib.Path` imported but unused 6 6 | 7 7 | 8 8 | class Foo: - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_16.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_16.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_16.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_16.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_17.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_17.py.snap index caf5d2c676..7bf797d3cd 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_17.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_17.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F401_17.py:12:27: F401 [*] `threading.Thread` imported but unused | @@ -38,5 +39,3 @@ F401_17.py:20:27: F401 [*] `threading.Thread` imported but unused 21 20 | 22 21 | # The `Thread` on the left-hand side should resolve to the `Thread` imported at the 23 22 | # top level. - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_18.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_18.py.snap index 33647bd2bf..031fe90e78 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_18.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_18.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F401_18.py:5:12: F401 [*] `__future__` imported but unused | @@ -18,5 +19,3 @@ F401_18.py:5:12: F401 [*] `__future__` imported but unused 6 6 | 7 7 | 8 8 | def f(): - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_19.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_19.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_19.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_19.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_2.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_2.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_2.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_2.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_20.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_20.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_20.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_20.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_21.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_21.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_21.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_21.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_22.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_22.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_22.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_22.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_23.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_23.py.snap index afde9e550a..5fabeda173 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_23.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_23.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F401_23.py:4:16: F401 [*] `re.RegexFlag` imported but unused | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_3.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_3.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_3.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_3.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_4.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_4.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_4.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_4.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_5.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_5.py.snap index e4317c5d19..5fe20fdee4 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_5.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_5.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F401_5.py:2:17: F401 [*] `a.b.c` imported but unused | @@ -67,5 +68,3 @@ F401_5.py:5:15: F401 [*] `j.k` imported but unused 3 3 | from d.e import f as g 4 4 | import h.i 5 |-import j.k as l - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_6.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_6.py.snap index d0db5ee40d..84a4897835 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_6.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_6.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F401_6.py:7:25: F401 [*] `.background.BackgroundTasks` imported but unused | @@ -71,5 +72,3 @@ F401_6.py:19:26: F401 [*] `datastructures` imported but unused 17 17 | 18 18 | # F401 `datastructures` imported but unused 19 |-import datastructures as structures - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_7.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_7.py.snap index cb4ec75028..0b27d19ff6 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_7.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_7.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F401_7.py:30:5: F401 [*] `typing.Union` imported but unused | @@ -49,5 +50,3 @@ F401_7.py:66:31: F401 [*] `typing.AwaitableGenerator` imported but unused 64 64 | 65 65 | # This should mark F501 as unused. 66 |-from typing import Awaitable, AwaitableGenerator # noqa: F501 - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_8.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_8.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_8.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_8.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_9.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_9.py.snap index c7071cc24f..5c8875f802 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_9.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_9.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F401_9.py:4:22: F401 [*] `foo.baz` imported but unused | @@ -15,5 +16,3 @@ F401_9.py:4:22: F401 [*] `foo.baz` imported but unused 3 3 | __all__ = ("bar",) 4 |-from foo import bar, baz 4 |+from foo import bar - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_24____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_24____init__.py.snap index 019ddc0195..895939cdf6 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_24____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_24____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:19:8: F401 [*] `sys` imported but unused | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_25__all_nonempty____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_25__all_nonempty____init__.py.snap index 2d1d54e348..419a8ae236 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_25__all_nonempty____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_25__all_nonempty____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:19:8: F401 [*] `sys` imported but unused | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_26__all_empty____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_26__all_empty____init__.py.snap index 0fa48cf5f1..165f850183 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_26__all_empty____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_26__all_empty____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:5:15: F401 [*] `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_27__all_mistyped____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_27__all_mistyped____init__.py.snap index a4f1d557bd..b20f2f1cf7 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_27__all_mistyped____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_27__all_mistyped____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:5:15: F401 [*] `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_28__all_multiple____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_28__all_multiple____init__.py.snap index daeee1984e..6cde57d135 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_28__all_multiple____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_28__all_multiple____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:5:15: F401 [*] `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_29__all_conditional____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_29__all_conditional____init__.py.snap index 392a58cf7a..515ca60e48 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_29__all_conditional____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_29__all_conditional____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:8:15: F401 [*] `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_30.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_30.py.snap index 7b42b5f341..75c2e0795a 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_30.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_deprecated_option_F401_30.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F401_30.py:6:19: F401 [*] `.main.MaμToMan` imported but unused | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_24____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_24____init__.py.snap index 02a82d9ec0..52c0e6801f 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_24____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_24____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:19:8: F401 `sys` imported but unused | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_25__all_nonempty____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_25__all_nonempty____init__.py.snap index 16f8364dd6..ccac7c81c5 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_25__all_nonempty____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_25__all_nonempty____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:19:8: F401 `sys` imported but unused | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_26__all_empty____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_26__all_empty____init__.py.snap index d01839e564..c6f6913969 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_26__all_empty____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_26__all_empty____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:5:15: F401 `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_27__all_mistyped____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_27__all_mistyped____init__.py.snap index c665795df9..17856067e6 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_27__all_mistyped____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_27__all_mistyped____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:5:15: F401 `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_28__all_multiple____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_28__all_multiple____init__.py.snap index 219539886e..0ba97b9289 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_28__all_multiple____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_28__all_multiple____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:5:15: F401 `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_29__all_conditional____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_29__all_conditional____init__.py.snap index 0100397db3..324c57b760 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_29__all_conditional____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_stable_F401_29__all_conditional____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:8:15: F401 `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F402_F402.ipynb.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F402_F402.ipynb.snap index cbb1ce305a..3681a82bf4 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F402_F402.ipynb.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F402_F402.ipynb.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F402.ipynb:3:5: F402 Import `os` from cell 1, line 1 shadowed by loop variable | @@ -19,5 +20,3 @@ F402.ipynb:5:5: F402 Import `path` from cell 1, line 2 shadowed by loop variable | ^^^^ F402 6 | pass | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F402_F402.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F402_F402.py.snap index acf46aff98..cb4dcbad83 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F402_F402.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F402_F402.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F402.py:5:5: F402 Import `os` from line 1 shadowed by loop variable | @@ -16,5 +17,3 @@ F402.py:8:5: F402 Import `path` from line 2 shadowed by loop variable | ^^^^ F402 9 | pass | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F403_F403.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F403_F403.py.snap index c9432addf2..6b283ac329 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F403_F403.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F403_F403.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F403.py:1:1: F403 `from F634 import *` used; unable to detect undefined names | @@ -16,5 +17,3 @@ F403.py:2:1: F403 `from F634 import *` used; unable to detect undefined names 3 | 4 | from F634 import * # noqa | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F404_F404_0.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F404_F404_0.py.snap index 6934119f5b..48f04fc13f 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F404_F404_0.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F404_F404_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F404_0.py:6:1: F404 `from __future__` imports must occur at the beginning of the file | @@ -10,5 +11,3 @@ F404_0.py:6:1: F404 `from __future__` imports must occur at the beginning of the 7 | 8 | import __future__ | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F404_F404_1.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F404_F404_1.py.snap index c9fbd78db8..22dc7a5bab 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F404_F404_1.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F404_F404_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F404_1.py:5:1: F404 `from __future__` imports must occur at the beginning of the file | @@ -8,5 +9,3 @@ F404_1.py:5:1: F404 `from __future__` imports must occur at the beginning of the 5 | from __future__ import absolute_import | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ F404 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F405_F405.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F405_F405.py.snap index 5c73ac384d..892e99f850 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F405_F405.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F405_F405.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F405.py:5:11: F405 `name` may be undefined, or defined from star imports | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F406_F406.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F406_F406.py.snap index 5263bb2eb5..4b7e774e13 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F406_F406.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F406_F406.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F406.py:5:5: F406 `from F634 import *` only allowed at module level | @@ -14,5 +15,3 @@ F406.py:9:5: F406 `from F634 import *` only allowed at module level 9 | from F634 import * | ^^^^^^^^^^^^^^^^^^ F406 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F407_F407.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F407_F407.py.snap index c791c147bb..faf0e89f01 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F407_F407.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F407_F407.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F407.py:2:24: F407 Future feature `non_existent_feature` is not defined | @@ -7,5 +8,3 @@ F407.py:2:24: F407 Future feature `non_existent_feature` is not defined 2 | from __future__ import non_existent_feature | ^^^^^^^^^^^^^^^^^^^^ F407 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F501_F50x.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F501_F50x.py.snap index 225b34a087..e08ce6e14b 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F501_F50x.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F501_F50x.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F50x.py:1:1: F501 `%`-format string has invalid format string: incomplete format | @@ -8,5 +9,3 @@ F50x.py:1:1: F501 `%`-format string has invalid format string: incomplete format 2 | '%s %(foo)s' % {'foo': 'bar'} # F506 3 | '%(foo)s %s' % {'foo': 'bar'} # F506 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F502_F502.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F502_F502.py.snap index 1fd7af4900..be81d392b1 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F502_F502.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F502_F502.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F502.py:6:1: F502 `%`-format string expected mapping but got sequence | @@ -67,5 +68,3 @@ F502.py:13:1: F502 `%`-format string expected mapping but got sequence 13 | "%(bob)s" % {"bob" for _ in range(1)} # F202 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ F502 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F502_F50x.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F502_F50x.py.snap index c82bf8b4ac..d95359d029 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F502_F50x.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F502_F50x.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F50x.py:9:1: F502 `%`-format string expected mapping but got sequence | @@ -10,5 +11,3 @@ F50x.py:9:1: F502 `%`-format string expected mapping but got sequence 10 | '%s %s' % {'k': 'v'} # F503 11 | '%(bar)*s' % {'bar': 'baz'} # F506, F508 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F503_F503.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F503_F503.py.snap index e568cd7e70..f143255f41 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F503_F503.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F503_F503.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F503.py:17:1: F503 `%`-format string expected sequence but got mapping | @@ -30,5 +31,3 @@ F503.py:23:1: F503 `%`-format string expected sequence but got mapping 24 | "%s %s" % ["bob" for _ in range(1)] 25 | "%s %s" % ("bob" for _ in range(1)) | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F503_F50x.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F503_F50x.py.snap index cdd18e4d9e..a09a97f4a5 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F503_F50x.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F503_F50x.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F50x.py:10:1: F503 `%`-format string expected sequence but got mapping | @@ -9,5 +10,3 @@ F50x.py:10:1: F503 `%`-format string expected sequence but got mapping | ^^^^^^^^^^^^^^^^^^^^ F503 11 | '%(bar)*s' % {'bar': 'baz'} # F506, F508 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F504_F504.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F504_F504.py.snap index a04af93d12..31e02878d3 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F504_F504.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F504_F504.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F504.py:3:1: F504 [*] `%`-format string has unused named argument(s): b | @@ -99,5 +100,3 @@ F504.py:14:1: F504 [*] `%`-format string has unused named argument(s): test1, te 15 |- 'test1': '', 16 |- 'test2': '', 15 |+ 17 16 | } - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F504_F50x.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F504_F50x.py.snap index 8bcd33a080..9aeabf5636 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F504_F50x.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F504_F50x.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F50x.py:8:1: F504 [*] `%`-format string has unused named argument(s): baz | @@ -21,5 +22,3 @@ F50x.py:8:1: F504 [*] `%`-format string has unused named argument(s): baz 9 9 | '%(bar)s' % (1, 2, 3) # F502 10 10 | '%s %s' % {'k': 'v'} # F503 11 11 | '%(bar)*s' % {'bar': 'baz'} # F506, F508 - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F505_F504.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F505_F504.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F505_F504.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F505_F504.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F505_F50x.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F505_F50x.py.snap index e1d10c3791..af45048c88 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F505_F50x.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F505_F50x.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F50x.py:7:1: F505 `%`-format string is missing argument(s) for placeholder(s): bar | @@ -10,5 +11,3 @@ F50x.py:7:1: F505 `%`-format string is missing argument(s) for placeholder(s): b 8 | '%(bar)s' % {'bar': 1, 'baz': 2} # F504 9 | '%(bar)s' % (1, 2, 3) # F502 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F506_F50x.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F506_F50x.py.snap index 7a92ee2c30..bcb4e836dd 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F506_F50x.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F506_F50x.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F50x.py:2:1: F506 `%`-format string has mixed positional and named placeholders | @@ -29,5 +30,3 @@ F50x.py:11:1: F506 `%`-format string has mixed positional and named placeholders 12 | 13 | # ok: single %s with mapping | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F507_F50x.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F507_F50x.py.snap index a78447db5e..6b7efd75fe 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F507_F50x.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F507_F50x.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F50x.py:5:1: F507 `%`-format string has 2 placeholder(s) but 1 substitution(s) | @@ -20,5 +21,3 @@ F50x.py:6:1: F507 `%`-format string has 2 placeholder(s) but 3 substitution(s) 7 | '%(bar)s' % {} # F505 8 | '%(bar)s' % {'bar': 1, 'baz': 2} # F504 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F508_F50x.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F508_F50x.py.snap index add7bb3122..5689f46313 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F508_F50x.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F508_F50x.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F50x.py:11:1: F508 `%`-format string `*` specifier requires sequence | @@ -10,5 +11,3 @@ F50x.py:11:1: F508 `%`-format string `*` specifier requires sequence 12 | 13 | # ok: single %s with mapping | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F509_F50x.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F509_F50x.py.snap index e1eeb3f4c2..fa405f0915 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F509_F50x.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F509_F50x.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F50x.py:4:1: F509 `%`-format string has unsupported format character `j` | @@ -10,5 +11,3 @@ F50x.py:4:1: F509 `%`-format string has unsupported format character `j` 5 | '%s %s' % (1,) # F507 6 | '%s %s' % (1, 2, 3) # F507 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F521_F521.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F521_F521.py.snap index 56d4add051..063e654867 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F521_F521.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F521_F521.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F521.py:1:1: F521 `.format` call has invalid format string: Single '{' encountered in format string | @@ -66,5 +67,3 @@ F521.py:9:1: F521 `.format` call has invalid format string: Empty attribute in f 10 | 11 | # The following are all "good" uses of .format | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F522_F522.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F522_F522.py.snap index 5e33645d06..4548b23df1 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F522_F522.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F522_F522.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F522.py:1:1: F522 [*] `.format` call has unused named argument(s): bar | @@ -72,5 +73,3 @@ F522.py:5:2: F522 [*] `.format` call has unused named argument(s): x 5 5 | ('' 6 |- .format(x=2)) # F522 6 |+ .format()) # F522 - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F523_F523.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F523_F523.py.snap index 48ecf84655..081ae9bf0e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F523_F523.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F523_F523.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F523.py:2:1: F523 [*] `.format` call has unused arguments at position(s): 1 | @@ -263,5 +264,3 @@ F523.py:32:2: F523 [*] `.format` call has unused arguments at position(s): 0 32 32 | ('' 33 |-.format(2)) 33 |+.format()) - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F524_F524.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F524_F524.py.snap index f93219db64..c7b28c0dfa 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F524_F524.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F524_F524.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F524.py:1:1: F524 `.format` call is missing argument(s) for placeholder(s): 1 | @@ -64,5 +65,3 @@ F524.py:7:1: F524 `.format` call is missing argument(s) for placeholder(s): 8 7 | "{1} {8}".format(0, 1) | ^^^^^^^^^^^^^^^^^^^^^^ F524 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F525_F525.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F525_F525.py.snap index c8f6727c68..c4d45bde61 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F525_F525.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F525_F525.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F525.py:1:1: F525 `.format` string mixes automatic and manual numbering | @@ -14,5 +15,3 @@ F525.py:2:1: F525 `.format` string mixes automatic and manual numbering 2 | "{0} {}".format(1, 2) # F523, F525 | ^^^^^^^^^^^^^^^^^^^^^ F525 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F541_F541.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F541_F541.py.snap index ab3ce59d46..cd2143101b 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F541_F541.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F541_F541.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F541.py:6:5: F541 [*] f-string without any placeholders | @@ -408,5 +409,3 @@ F541.py:44:1: F541 [*] f-string without any placeholders 43 43 | f"{v:{f"0.2f"}}" 44 |-f"\{{x}}" 44 |+"\{x}" - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F601_F601.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F601_F601.py.snap index 3d786c91f5..5e9c377de1 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F601_F601.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F601_F601.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F601.py:3:5: F601 Dictionary key literal `"a"` repeated | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F602_F602.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F602_F602.py.snap index c092beeb97..434d700c8e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F602_F602.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F602_F602.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F602.py:5:5: F602 Dictionary key `a` repeated | @@ -241,5 +242,3 @@ F602.py:45:18: F602 [*] Dictionary key `a` repeated 44 44 | x = {a: 1, a: 1} 45 |-x = {a: 1, b: 2, a: 1} 45 |+x = {a: 1, b: 2} - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F622_F622.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F622_F622.py.snap index b014fae36a..a99d31d8a4 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F622_F622.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F622_F622.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F622.py:1:1: F622 Two starred expressions in assignment | @@ -8,5 +9,3 @@ F622.py:1:1: F622 Two starred expressions in assignment 2 | *a, b, c = (1, 2, 3) 3 | a, b, *c = (1, 2, 3) | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F631_F631.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F631_F631.py.snap index dea3b048ee..1a7624182d 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F631_F631.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F631_F631.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F631.py:1:1: F631 Assert test is a non-empty tuple, which is always `True` | @@ -17,5 +18,3 @@ F631.py:2:1: F631 Assert test is a non-empty tuple, which is always `True` 3 | assert () 4 | assert True | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F632_F632.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F632_F632.py.snap index a20f5d5c45..0e34699876 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F632_F632.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F632_F632.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F632.py:1:4: F632 [*] Use `==` to compare constant literals | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F633_F633.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F633_F633.py.snap index 5fbf56d084..cdd9788299 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F633_F633.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F633_F633.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F633.py:4:1: F633 Use of `>>` is invalid with `print` function | @@ -8,5 +9,3 @@ F633.py:4:1: F633 Use of `>>` is invalid with `print` function 4 | print >> sys.stderr, "Hello" | ^^^^^ F633 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F634_F634.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F634_F634.py.snap index 428488bbe6..3f9eda1a9c 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F634_F634.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F634_F634.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F634.py:1:4: F634 If test is a tuple, which is always `True` | @@ -27,5 +28,3 @@ F634.py:12:10: F634 If test is a tuple, which is always `True` 13 | pass 14 | elif (): | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F701_F701.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F701_F701.py.snap index 008343d914..23be6d8964 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F701_F701.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F701_F701.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F701.py:4:5: F701 `break` outside loop | @@ -31,5 +32,3 @@ F701.py:23:1: F701 `break` outside loop 23 | break | ^^^^^ F701 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F702_F702.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F702_F702.py.snap index 4ef5ce2669..a656678f6b 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F702_F702.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F702_F702.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F702.py:4:5: F702 `continue` not properly in loop | @@ -31,5 +32,3 @@ F702.py:23:1: F702 `continue` not properly in loop 23 | continue | ^^^^^^^^ F702 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F704_F704.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F704_F704.py.snap index 57efd26c39..b871b1e78f 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F704_F704.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F704_F704.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F704.py:6:5: F704 `yield` statement outside of a function | @@ -31,5 +32,3 @@ F704.py:11:1: F704 `await` statement outside of a function 11 | await f() | ^^^^^^^^^ F704 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F706_F706.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F706_F706.py.snap index 921cc6b28a..c6f545f5af 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F706_F706.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F706_F706.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F706.py:6:5: F706 `return` statement outside of a function/method | @@ -13,5 +14,3 @@ F706.py:9:1: F706 `return` statement outside of a function/method 9 | return 3 | ^^^^^^^^ F706 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F707_F707.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F707_F707.py.snap index 72bbed1abc..7cb4461bd3 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F707_F707.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F707_F707.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F707.py:3:1: F707 An `except` block as not the last exception handler | @@ -30,5 +31,3 @@ F707.py:19:1: F707 An `except` block as not the last exception handler 20 | pass 21 | except ValueError: | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F722_F722.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F722_F722.py.snap index 500f1ca729..3a41c4a062 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F722_F722.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F722_F722.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F722.py:9:12: F722 Syntax error in forward annotation: `///` | @@ -13,5 +14,3 @@ F722.py:13:4: F722 Syntax error in forward annotation: `List[int]☃` 13 | X: """List[int]"""'☃' = [] | ^^^^^^^^^^^^^^^^^^ F722 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_0.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_0.py.snap index 009ba794b7..8b084ccac6 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_0.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_0.py:10:5: F811 Redefinition of unused `bar` from line 6 | @@ -8,5 +9,3 @@ F811_0.py:10:5: F811 Redefinition of unused `bar` from line 6 11 | pass | = help: Remove definition: `bar` - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_1.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_1.py.snap index 19db1b0edd..7c96ecba03 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_1.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_1.py:1:25: F811 Redefinition of unused `FU` from line 1 | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_10.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_10.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_10.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_10.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_11.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_11.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_11.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_11.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_12.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_12.py.snap index 0d490baf57..cd7495ada0 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_12.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_12.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_12.py:6:20: F811 Redefinition of unused `mixer` from line 2 | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_13.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_13.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_13.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_13.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_14.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_14.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_14.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_14.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_15.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_15.py.snap index 7f9b7cca18..eb43408a7c 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_15.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_15.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_15.py:4:5: F811 Redefinition of unused `fu` from line 1 | @@ -8,5 +9,3 @@ F811_15.py:4:5: F811 Redefinition of unused `fu` from line 1 5 | pass | = help: Remove definition: `fu` - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_16.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_16.py.snap index ace7efc109..af91808f2d 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_16.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_16.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_16.py:8:13: F811 Redefinition of unused `fu` from line 3 | @@ -10,5 +11,3 @@ F811_16.py:8:13: F811 Redefinition of unused `fu` from line 3 9 | pass | = help: Remove definition: `fu` - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_17.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_17.py.snap index b2e62e8597..15891fcb42 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_17.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_17.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_17.py:6:12: F811 [*] Redefinition of unused `fu` from line 2 | @@ -28,5 +29,3 @@ F811_17.py:9:13: F811 Redefinition of unused `fu` from line 6 10 | pass | = help: Remove definition: `fu` - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_18.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_18.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_18.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_18.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_19.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_19.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_19.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_19.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_2.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_2.py.snap index ce01b9cd14..3dcdb002cb 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_2.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_2.py:1:34: F811 Redefinition of unused `FU` from line 1 | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_20.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_20.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_20.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_20.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_21.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_21.py.snap index 6d0405c66f..166ec3d754 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_21.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_21.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_21.py:32:5: F811 [*] Redefinition of unused `Sequence` from line 26 | @@ -21,5 +22,3 @@ F811_21.py:32:5: F811 [*] Redefinition of unused `Sequence` from line 26 34 33 | 35 34 | # This should ignore both errors. 36 35 | from typing import ( # noqa - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_22.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_22.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_22.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_22.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_23.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_23.py.snap index 4d77d04b23..b503ae6f3b 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_23.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_23.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_23.py:4:15: F811 Redefinition of unused `foo` from line 3 | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_24.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_24.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_24.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_24.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_25.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_25.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_25.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_25.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_26.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_26.py.snap index a51c892a97..aff6b40d4d 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_26.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_26.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_26.py:5:9: F811 Redefinition of unused `func` from line 2 | @@ -10,5 +11,3 @@ F811_26.py:5:9: F811 Redefinition of unused `func` from line 2 6 | pass | = help: Remove definition: `func` - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_27.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_27.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_27.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_27.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_28.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_28.py.snap index 51c91bc474..c8d46f2b0f 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_28.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_28.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_28.py:4:22: F811 Redefinition of unused `datetime` from line 3 | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_29.pyi.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_29.pyi.snap index 0a7ee144e4..dfe89ac980 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_29.pyi.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_29.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_29.pyi:8:1: F811 Redefinition of unused `Bar` from line 3 | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_3.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_3.py.snap index 7e749b0887..430522582f 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_3.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_3.py:1:12: F811 Redefinition of unused `fu` from line 1 | @@ -7,5 +8,3 @@ F811_3.py:1:12: F811 Redefinition of unused `fu` from line 1 | ^^ F811 | = help: Remove definition: `fu` - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_30.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_30.py.snap index e785583128..68319f4244 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_30.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_30.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_30.py:12:9: F811 Redefinition of unused `bar` from line 10 | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_31.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_31.py.snap index 75de2fbbce..439eae473a 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_31.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_31.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_31.py:19:29: F811 Redefinition of unused `baz` from line 17 | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_4.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_4.py.snap index 0c7c2a4523..dfccff0534 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_4.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_4.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_4.py:1:12: F811 Redefinition of unused `fu` from line 1 | @@ -7,5 +8,3 @@ F811_4.py:1:12: F811 Redefinition of unused `fu` from line 1 | ^^ F811 | = help: Remove definition: `fu` - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_5.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_5.py.snap index b21d2c3508..0a44f240a5 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_5.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_5.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_5.py:1:13: F811 Redefinition of unused `fu` from line 1 | @@ -7,5 +8,3 @@ F811_5.py:1:13: F811 Redefinition of unused `fu` from line 1 | ^^ F811 | = help: Remove definition: `fu` - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_6.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_6.py.snap index 92fc672631..5c2de08fd9 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_6.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_6.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_6.py:6:12: F811 [*] Redefinition of unused `os` from line 5 | @@ -17,5 +18,3 @@ F811_6.py:6:12: F811 [*] Redefinition of unused `os` from line 5 5 5 | import os 6 |- import os 7 6 | os.path - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_7.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_7.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_7.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_7.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_8.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_8.py.snap index 07e8aeb1e6..186d426ff2 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_8.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_8.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F811_8.py:5:12: F811 [*] Redefinition of unused `os` from line 4 | @@ -20,5 +21,3 @@ F811_8.py:5:12: F811 [*] Redefinition of unused `os` from line 4 6 5 | except: 7 6 | pass 8 7 | os.path - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_9.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_9.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_9.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_9.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_0.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_0.py.snap index 1f6ee4d23c..791754ebbf 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_0.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_0.py:2:12: F821 Undefined name `self` | @@ -113,5 +114,3 @@ F821_0.py:123:22: F821 Undefined name `bar` 124 | 123, 125 | ] | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_1.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_1.py.snap index d928a61158..388a7b77a3 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_1.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_1.py:11:11: F821 Undefined name `Model` | @@ -28,5 +29,3 @@ F821_1.py:30:12: F821 Undefined name `Model` 30 | x = Match["Model"] | ^^^^^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_10.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_10.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_10.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_10.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_11.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_11.py.snap index a2604bd8b8..fe57c5320d 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_11.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_11.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_11.py:18:28: F821 Undefined name `os` | @@ -14,5 +15,3 @@ F821_11.py:23:14: F821 Undefined name `Baz` 23 | f(Callable[["Baz"], None]) | ^^^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_11.pyi.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_11.pyi.snap index 0dc17e9161..9716d11d90 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_11.pyi.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_11.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_11.pyi:15:28: F821 Undefined name `os` | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_12.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_12.py.snap index 1cb1eca885..d2b5a37fd2 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_12.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_12.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_12.py:20:28: F821 Undefined name `os` | @@ -14,5 +15,3 @@ F821_12.py:25:14: F821 Undefined name `Baz` 25 | f(Callable[["Baz"], None]) | ^^^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_13.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_13.py.snap index a82c199902..6ad86a5472 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_13.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_13.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_13.py:8:19: F821 Undefined name `List` | @@ -8,5 +9,3 @@ F821_13.py:8:19: F821 Undefined name `List` 8 | Z = TypeVar("X", "List[int]", "int") | ^^^^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_14.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_14.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_14.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_14.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_15.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_15.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_15.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_15.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_16.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_16.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_16.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_16.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_17.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_17.py.snap index ad2011d46c..82e9a41c3b 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_17.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_17.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_17.py:16:12: F821 Undefined name `DoesNotExist` | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_18.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_18.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_18.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_18.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_19.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_19.py.snap index 0461eeea1b..65844fc9f6 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_19.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_19.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_19.py:21:7: F821 Undefined name `y` | @@ -8,5 +9,3 @@ F821_19.py:21:7: F821 Undefined name `y` 21 | print(y) | ^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_2.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_2.py.snap index 2915f54728..4c3d9aa3dd 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_2.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_2.py:5:13: F821 Undefined name `Model` | @@ -9,5 +10,3 @@ F821_2.py:5:13: F821 Undefined name `Model` 6 | 7 | from typing_extensions import Literal | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_20.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_20.py.snap index 143f82be67..1a48677167 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_20.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_20.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_20.py:3:24: F821 Undefined name `Record` | @@ -10,5 +11,3 @@ F821_20.py:3:24: F821 Undefined name `Record` 4 | 5 | from collections.abc import Callable | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_21.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_21.py.snap index 40c911247e..dd8c65c608 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_21.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_21.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_21.py:4:1: F821 Undefined name `display` | @@ -7,5 +8,3 @@ F821_21.py:4:1: F821 Undefined name `display` 4 | display(x) | ^^^^^^^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_22.ipynb.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_22.ipynb.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_22.ipynb.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_22.ipynb.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_23.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_23.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_23.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_23.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_24.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_24.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_24.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_24.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_25.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_25.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_25.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_25.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_26.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_26.py.snap index 1da3d5fe06..0fe9ae3d00 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_26.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_26.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_26.py:9:33: F821 Undefined name `CStr` | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_26.pyi.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_26.pyi.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_26.pyi.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_26.pyi.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_27.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_27.py.snap index b0ef6067d4..eb74e0d2aa 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_27.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_27.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_27.py:30:11: F821 Undefined name `foo` | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_28.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_28.py.snap index e846426707..ff7ec8cad0 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_28.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_28.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_28.py:9:7: F821 Undefined name `𝒟` | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_29.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_29.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_29.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_29.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_3.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_3.py.snap index 294e412298..ebe035fe9e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_3.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_3.py:11:10: F821 Undefined name `key` | @@ -20,5 +21,3 @@ F821_3.py:11:17: F821 Undefined name `value` 12 | 13 | # OK | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_4.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_4.py.snap index 5b6a6bd2ee..de202b8c91 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_4.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_4.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_4.py:4:11: F821 Undefined name `Model` | @@ -40,5 +41,3 @@ F821_4.py:24:20: F821 Undefined name `Model` 24 | _ = abc.ItemsView["Model"] | ^^^^^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_5.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_5.py.snap index 59855f49c5..bbd0104185 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_5.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_5.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_5.py:5:31: F821 Undefined name `InnerClass` | @@ -8,5 +9,3 @@ F821_5.py:5:31: F821 Undefined name `InnerClass` | ^^^^^^^^^^ F821 6 | pass | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_5.pyi.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_5.pyi.snap index ff1ac3037e..a7d8933102 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_5.pyi.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_5.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_5.pyi:4:27: F821 Undefined name `InnerClass` | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_6.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_6.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_6.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_6.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_7.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_7.py.snap index 2285bc9e54..727e8cd87a 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_7.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_7.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_7.py:11:22: F821 Undefined name `Undefined` | @@ -26,5 +27,3 @@ F821_7.py:13:22: F821 Undefined name `Undefined` 13 | _ = DefaultNamedArg("Undefined", "some_prop_name") | ^^^^^^^^^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_8.pyi.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_8.pyi.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_8.pyi.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_8.pyi.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_9.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_9.py.snap index b7a4023568..976d74866a 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_9.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_9.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F821_9.py:22:20: F821 Undefined name `captured` | @@ -8,5 +9,3 @@ F821_9.py:22:20: F821 Undefined name `captured` 22 | return captured # F821 | ^^^^^^^^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_0.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_0.py.snap index 78dfd63657..b0dd404f15 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_0.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F822_0.py:3:17: F822 Undefined name `b` in `__all__` | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_0.pyi.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_0.pyi.snap index d74b6e8936..cac8528176 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_0.pyi.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_0.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F822_0.pyi:4:22: F822 Undefined name `c` in `__all__` | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_1.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_1.py.snap index d65deed9e7..f74f19c9e9 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_1.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F822_1.py:3:22: F822 Undefined name `b` in `__all__` | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_1b.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_1b.py.snap index 5b9ea3fdb5..61789a4154 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_1b.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_1b.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F822_1b.py:4:31: F822 Undefined name `b` in `__all__` | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_2.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_2.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_2.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_2.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_3.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_3.py.snap index 5d572ea096..ffc2b35cf8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_3.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F822_3.py:12:5: F822 Undefined name `ExponentialFamily` in `__all__` | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F823_F823.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F823_F823.py.snap index f881e67454..ec266a2f4e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F823_F823.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F823_F823.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F823.py:6:5: F823 Local variable `my_var` referenced before assignment | @@ -42,5 +43,3 @@ F823.py:62:11: F823 Local variable `sys` referenced before assignment 63 | 64 | for sys in range(5): | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_0.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_0.py.snap index 7e1b2458bf..b1912dc837 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_0.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F841_0.py:3:22: F841 [*] Local variable `e` is assigned to but never used | @@ -238,5 +239,3 @@ F841_0.py:127:21: F841 Local variable `value` is assigned to but never used 128 | print(key) | = help: Remove assignment to unused variable `value` - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_1.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_1.py.snap index 9cb0b013fd..e82e2bb4e0 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_1.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F841_1.py:6:5: F841 [*] Local variable `x` is assigned to but never used | @@ -132,5 +133,3 @@ F841_1.py:24:18: F841 [*] Local variable `y` is assigned to but never used 23 23 | def f(): 24 |- (a, b) = (x, y) = 1, 2 # this triggers F841 on everything 24 |+ (a, b) = (x, _y) = 1, 2 # this triggers F841 on everything - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_2.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_2.py.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_2.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_2.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_3.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_3.py.snap index 8b60f4da8a..b2578711db 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_3.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F841_3.py:5:5: F841 [*] Local variable `x` is assigned to but never used | @@ -712,5 +713,3 @@ F841_3.py:173:6: F841 [*] Local variable `x` is assigned to but never used 172 172 | ((x)) = foo() 173 |- (x) = (y.z) = foo() 173 |+ (y.z) = foo() - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_4.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_4.py.snap index f5f7f03e01..c9ece5c6a9 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_4.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_4.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F841_4.py:12:5: F841 [*] Local variable `a` is assigned to but never used | @@ -18,6 +19,4 @@ F841_4.py:12:5: F841 [*] Local variable `a` is assigned to but never used 12 |+ foo() 13 13 | b, c = foo() 14 14 | -15 15 | - - +15 15 | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F842_F842.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F842_F842.py.snap index 815af1b008..5f6e6dbd9d 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F842_F842.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F842_F842.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F842.py:2:5: F842 Local variable `name` is annotated but never used | @@ -16,5 +17,3 @@ F842.py:3:5: F842 Local variable `age` is annotated but never used 3 | age: int | ^^^ F842 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F901_F901.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F901_F901.py.snap index 3326183736..3e25ce03fa 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F901_F901.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F901_F901.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F901.py:2:11: F901 [*] `raise NotImplemented` should be `raise NotImplementedError` | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__augmented_assignment_after_del.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__augmented_assignment_after_del.snap index 809ec335a3..18501498a2 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__augmented_assignment_after_del.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__augmented_assignment_after_del.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- :10:5: F821 Undefined name `x` | @@ -17,5 +18,3 @@ source: crates/ruff_linter/src/rules/pyflakes/mod.rs | ^ F841 | = help: Remove assignment to unused variable `x` - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__default_builtins.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__default_builtins.snap index d574ec9304..cf1be266bc 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__default_builtins.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__default_builtins.snap @@ -1,10 +1,9 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- builtins.py:1:1: F821 Undefined name `_` | 1 | _("Translations") | ^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__default_typing_modules.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__default_typing_modules.snap index f708d1ddae..ff0ffaecb3 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__default_typing_modules.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__default_typing_modules.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- typing_modules.py:6:36: F821 Undefined name `db` | @@ -7,5 +8,3 @@ typing_modules.py:6:36: F821 Undefined name `db` | ^^ F821 7 | y = Optional["Class"] | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_global_import_in_global_scope.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_global_import_in_global_scope.snap index 2ac6d0d487..fb9a268806 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_global_import_in_global_scope.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_global_import_in_global_scope.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- :5:12: F401 [*] `os` imported but unused | @@ -20,5 +21,3 @@ source: crates/ruff_linter/src/rules/pyflakes/mod.rs 6 6 | 7 7 | # Despite this `del`, `import os` in `f` should still be flagged as shadowing an unused 8 8 | # import. (This is a false negative, but is consistent with Pyflakes.) - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_global_import_in_local_scope.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_global_import_in_local_scope.snap index a419b0ee52..2a0b90409d 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_global_import_in_local_scope.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_global_import_in_local_scope.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- :2:8: F401 [*] `os` imported but unused | @@ -35,5 +36,3 @@ source: crates/ruff_linter/src/rules/pyflakes/mod.rs 6 5 | 7 6 | # Despite this `del`, `import os` in `f` should still be flagged as shadowing an unused 8 7 | # import. - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_import_shadow_in_local_scope.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_import_shadow_in_local_scope.snap index 9dfb6527c7..3fed708c09 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_import_shadow_in_local_scope.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_import_shadow_in_local_scope.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- :2:8: F401 [*] `os` imported but unused | @@ -25,5 +26,3 @@ source: crates/ruff_linter/src/rules/pyflakes/mod.rs 6 | print(os) | = help: Remove definition: `os` - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_local_import_in_local_scope.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_local_import_in_local_scope.snap index df130cc6e8..c9f4a87d31 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_local_import_in_local_scope.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__del_shadowed_local_import_in_local_scope.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- :4:12: F811 [*] Redefinition of unused `os` from line 3 | @@ -20,5 +21,3 @@ source: crates/ruff_linter/src/rules/pyflakes/mod.rs 5 4 | 6 5 | # Despite this `del`, `import os` should still be flagged as shadowing an unused 7 6 | # import. - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__double_del.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__double_del.snap index b397846c0d..4f3cf22aa7 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__double_del.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__double_del.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- :5:9: F821 Undefined name `x` | @@ -8,5 +9,3 @@ source: crates/ruff_linter/src/rules/pyflakes/mod.rs 5 | del x | ^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extend_immutable_calls.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extend_immutable_calls.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extend_immutable_calls.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extend_immutable_calls.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extra_builtins.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extra_builtins.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extra_builtins.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extra_builtins.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extra_typing_modules.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extra_typing_modules.snap index b8eec450b4..585455e718 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extra_typing_modules.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extra_typing_modules.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- typing_modules.py:7:15: F821 Undefined name `Class` | @@ -7,5 +8,3 @@ typing_modules.py:7:15: F821 Undefined name `Class` 7 | y = Optional["Class"] | ^^^^^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f401_allowed_unused_imports_option.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f401_allowed_unused_imports_option.snap index be1af3465c..3d331d7884 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f401_allowed_unused_imports_option.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f401_allowed_unused_imports_option.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F401_31.py:12:33: F401 [*] `hvplot.pandas_alias.scatter_matrix` imported but unused | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f401_preview_first_party_submodule_dunder_all.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f401_preview_first_party_submodule_dunder_all.snap index 0d7b4c4505..b20246f56c 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f401_preview_first_party_submodule_dunder_all.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f401_preview_first_party_submodule_dunder_all.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:2:8: F401 [*] `submodule.a` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f401_preview_first_party_submodule_no_dunder_all.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f401_preview_first_party_submodule_no_dunder_all.snap index 07dbda1e72..55922fe49d 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f401_preview_first_party_submodule_no_dunder_all.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f401_preview_first_party_submodule_no_dunder_all.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:1:8: F401 `submodule.a` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f821_with_builtin_added_on_new_py_version_but_old_target_version_specified.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f821_with_builtin_added_on_new_py_version_but_old_target_version_specified.snap index 1421f07c75..3fce3fa99e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f821_with_builtin_added_on_new_py_version_but_old_target_version_specified.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f821_with_builtin_added_on_new_py_version_but_old_target_version_specified.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- :1:1: F821 Undefined name `PythonFinalizationError`. Consider specifying `requires-python = ">= 3.13"` or `tool.ruff.target-version = "py313"` in your `pyproject.toml` file. | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f841_dummy_variable_rgx.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f841_dummy_variable_rgx.snap index 360b302886..169b059e4c 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f841_dummy_variable_rgx.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__f841_dummy_variable_rgx.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F841_0.py:3:22: F841 [*] Local variable `e` is assigned to but never used | @@ -273,5 +274,3 @@ F841_0.py:152:25: F841 [*] Local variable `_` is assigned to but never used 152 |- except Exception as _: 152 |+ except Exception: 153 153 | pass - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__future_annotations.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__future_annotations.snap index 5a15b08987..8b35fbaf54 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__future_annotations.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__future_annotations.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- future_annotations.py:8:5: F401 [*] `models.Nut` imported but unused | @@ -27,5 +28,3 @@ future_annotations.py:26:19: F821 Undefined name `Bar` | ^^^ F821 27 | return cls(x=0, y=0) | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__init.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__init.snap index cd22f83847..63a557b09f 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__init.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__init.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:1:8: F401 `os` imported but unused | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_multiple_unbinds_from_module_scope.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_multiple_unbinds_from_module_scope.snap index 8963cbc2ec..96e7e24ad0 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_multiple_unbinds_from_module_scope.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_multiple_unbinds_from_module_scope.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- :7:26: F841 [*] Local variable `x` is assigned to but never used | @@ -40,5 +41,3 @@ source: crates/ruff_linter/src/rules/pyflakes/mod.rs 13 13 | pass 14 14 | 15 15 | # This should resolve to the `x` in `x = 1`. - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_unbind_from_class_scope.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_unbind_from_class_scope.snap index 30714ade29..a138818982 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_unbind_from_class_scope.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_unbind_from_class_scope.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- :8:30: F841 [*] Local variable `x` is assigned to but never used | @@ -28,5 +29,3 @@ source: crates/ruff_linter/src/rules/pyflakes/mod.rs 13 | print(x) | ^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_unbind_from_module_scope.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_unbind_from_module_scope.snap index 1a45bebe8c..cc283ed4cf 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_unbind_from_module_scope.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_unbind_from_module_scope.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- :7:26: F841 [*] Local variable `x` is assigned to but never used | @@ -20,5 +21,3 @@ source: crates/ruff_linter/src/rules/pyflakes/mod.rs 8 8 | pass 9 9 | 10 10 | # This should resolve to the `x` in `x = 1`. - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_unbind_from_nested_module_scope.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_unbind_from_nested_module_scope.snap index f2885ba2b5..759d5b3574 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_unbind_from_nested_module_scope.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__load_after_unbind_from_nested_module_scope.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- :7:26: F841 [*] Local variable `x` is assigned to but never used | @@ -40,5 +41,3 @@ source: crates/ruff_linter/src/rules/pyflakes/mod.rs 14 14 | pass 15 15 | 16 16 | # This should resolve to the `x` in `x = 1`. - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__multi_statement_lines.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__multi_statement_lines.snap index c2e289a7ef..dadea91163 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__multi_statement_lines.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__multi_statement_lines.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- multi_statement_lines.py:2:12: F401 [*] `foo1` imported but unused | @@ -320,6 +321,4 @@ multi_statement_lines.py:62:8: F401 [*] `foo16` imported but unused 60 60 | # error.) 61 |-x = 1; \ 62 |-import foo16 - 61 |+x = 1; - - + 61 |+x = 1; diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__nested_relative_typing_module.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__nested_relative_typing_module.snap index def4b156eb..b6285d774f 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__nested_relative_typing_module.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__nested_relative_typing_module.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- baz.py:26:17: F821 Undefined name `foo` | @@ -14,5 +15,3 @@ baz.py:33:17: F821 Undefined name `foo` 33 | x: Literal["foo"] | ^^^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_24____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_24____init__.py.snap index 1c7ce2e8a7..ebd332ca01 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_24____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_24____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:19:8: F401 [*] `sys` imported but unused | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_25__all_nonempty____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_25__all_nonempty____init__.py.snap index cb3e3848d5..6b4906ee54 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_25__all_nonempty____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_25__all_nonempty____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:19:8: F401 [*] `sys` imported but unused | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_26__all_empty____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_26__all_empty____init__.py.snap index 6c393f0fbf..60d58e3597 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_26__all_empty____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_26__all_empty____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:5:15: F401 [*] `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_27__all_mistyped____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_27__all_mistyped____init__.py.snap index c665795df9..17856067e6 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_27__all_mistyped____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_27__all_mistyped____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:5:15: F401 `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_28__all_multiple____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_28__all_multiple____init__.py.snap index a77b95641d..0a5fcedf8c 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_28__all_multiple____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_28__all_multiple____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:5:15: F401 [*] `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_29__all_conditional____init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_29__all_conditional____init__.py.snap index 0100397db3..324c57b760 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_29__all_conditional____init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401_F401_29__all_conditional____init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:8:15: F401 `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401___init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401___init__.py.snap index 3f4855817c..fe351ac158 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401___init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F401___init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:1:8: F401 [*] `os` imported but unused | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F822___init__.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F822___init__.py.snap index d9761fcd78..00bb37925f 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F822___init__.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F822___init__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- __init__.py:5:12: F822 Undefined name `a` in `__all__` | diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F841_F841_4.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F841_F841_4.py.snap index 661343dd14..7a0074e512 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F841_F841_4.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__preview__F841_F841_4.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- F841_4.py:12:5: F841 [*] Local variable `a` is assigned to but never used | @@ -57,5 +58,3 @@ F841_4.py:13:8: F841 [*] Local variable `c` is assigned to but never used 14 14 | 15 15 | 16 16 | def baz(): - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_body_after_double_shadowing_except.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_body_after_double_shadowing_except.snap index 45cdf09182..6e9134a854 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_body_after_double_shadowing_except.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_body_after_double_shadowing_except.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- :7:26: F841 [*] Local variable `x` is assigned to but never used | @@ -41,5 +42,3 @@ source: crates/ruff_linter/src/rules/pyflakes/mod.rs 10 10 | pass 11 11 | 12 12 | # No error here, though it should arguably be an F821 error. `x` will - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_body_after_shadowing_except.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_body_after_shadowing_except.snap index 32d67c3669..1a04064c1b 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_body_after_shadowing_except.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_body_after_shadowing_except.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- :7:25: F841 [*] Local variable `x` is assigned to but never used | @@ -20,5 +21,3 @@ source: crates/ruff_linter/src/rules/pyflakes/mod.rs 8 8 | pass 9 9 | 10 10 | # No error here, though it should arguably be an F821 error. `x` will - - diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_if_else_after_shadowing_except.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_if_else_after_shadowing_except.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_if_else_after_shadowing_except.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_if_else_after_shadowing_except.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_try_else_after_shadowing_except.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_try_else_after_shadowing_except.snap index d0b409f39e..a487e4ddb8 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_try_else_after_shadowing_except.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_try_else_after_shadowing_except.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__relative_typing_module.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__relative_typing_module.snap index d7f395ddde..0b9f6a7672 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__relative_typing_module.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__relative_typing_module.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs +snapshot_kind: text --- bar.py:26:17: F821 Undefined name `foo` | @@ -7,5 +8,3 @@ bar.py:26:17: F821 Undefined name `foo` 26 | x: Literal["foo"] | ^^^ F821 | - - diff --git a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH003_PGH003_0.py.snap b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH003_PGH003_0.py.snap index 249a541990..a1a8c5e228 100644 --- a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH003_PGH003_0.py.snap +++ b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH003_PGH003_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pygrep_hooks/mod.rs +snapshot_kind: text --- PGH003_0.py:1:8: PGH003 Use specific rule codes when ignoring type issues | @@ -36,5 +37,3 @@ PGH003_0.py:4:25: PGH003 Use specific rule codes when ignoring type issues 5 | 6 | x = 1 | - - diff --git a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH003_PGH003_1.py.snap b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH003_PGH003_1.py.snap index 891fbef531..7190703915 100644 --- a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH003_PGH003_1.py.snap +++ b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH003_PGH003_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pygrep_hooks/mod.rs +snapshot_kind: text --- PGH003_1.py:1:8: PGH003 Use specific rule codes when ignoring type issues | @@ -26,5 +27,3 @@ PGH003_1.py:3:41: PGH003 Use specific rule codes when ignoring type issues 4 | 5 | x = 1 | - - diff --git a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap index 5c4e077247..d55e64c88e 100644 --- a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap +++ b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pygrep_hooks/mod.rs +snapshot_kind: text --- PGH004_0.py:1:8: PGH004 Use specific rule codes when using `noqa` | diff --git a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_1.py.snap b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_1.py.snap index 34c0242695..a4aee355b8 100644 --- a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_1.py.snap +++ b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pygrep_hooks/mod.rs +snapshot_kind: text --- PGH004_1.py:1:1: PGH004 Use specific rule codes when using `noqa` | diff --git a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_2.py.snap b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_2.py.snap index e2b9bdf292..609af05ed0 100644 --- a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_2.py.snap +++ b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pygrep_hooks/mod.rs +snapshot_kind: text --- PGH004_2.py:1:1: PGH004 Use specific rule codes when using `noqa` | diff --git a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_3.py.snap b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_3.py.snap index d5e81ab920..8bbce8e2cd 100644 --- a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_3.py.snap +++ b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_3.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pygrep_hooks/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH005_PGH005_0.py.snap b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH005_PGH005_0.py.snap index 4172207cee..076a8fdd9c 100644 --- a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH005_PGH005_0.py.snap +++ b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH005_PGH005_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pygrep_hooks/mod.rs +snapshot_kind: text --- PGH005_0.py:2:8: PGH005 Non-existent mock method: `not_called` | @@ -88,5 +89,3 @@ PGH005_0.py:10:1: PGH005 Mock method should be called: `assert_called_once_with` 11 | 12 | # OK | - - diff --git a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__preview__PGH004_PGH004_2.py.snap b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__preview__PGH004_PGH004_2.py.snap index 6c93b8a108..ca34924cd7 100644 --- a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__preview__PGH004_PGH004_2.py.snap +++ b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__preview__PGH004_PGH004_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pygrep_hooks/mod.rs +snapshot_kind: text --- PGH004_2.py:1:1: PGH004 Use specific rule codes when using `noqa` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0105_type_name_incorrect_variance.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0105_type_name_incorrect_variance.py.snap index c65895174f..149abfc95f 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0105_type_name_incorrect_variance.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0105_type_name_incorrect_variance.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- type_name_incorrect_variance.py:5:5: PLC0105 `TypeVar` name "T" does not reflect its covariance; consider renaming it to "T_co" | @@ -314,5 +315,3 @@ type_name_incorrect_variance.py:38:12: PLC0105 `ParamSpec` name "P_contra" does 39 | 40 | # Non-errors. | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0131_type_bivariance.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0131_type_bivariance.py.snap index a1307834a0..7fc2130223 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0131_type_bivariance.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0131_type_bivariance.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- type_bivariance.py:5:5: PLC0131 `TypeVar` "T" cannot be both covariant and contravariant | @@ -36,5 +37,3 @@ type_bivariance.py:9:5: PLC0131 `ParamSpec` "T" cannot be both covariant and con 10 | 11 | # Non-errors. | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0132_type_param_name_mismatch.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0132_type_param_name_mismatch.py.snap index 0a02aed583..52a93fc53b 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0132_type_param_name_mismatch.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0132_type_param_name_mismatch.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- type_param_name_mismatch.py:5:5: PLC0132 `TypeVar` name `T` does not match assigned variable name `X` | @@ -72,5 +73,3 @@ type_param_name_mismatch.py:15:6: PLC0132 `TypeVarTuple` name `Ts` does not matc 16 | 17 | # Non-errors. | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0205_single_string_slots.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0205_single_string_slots.py.snap index f3c8693a68..f37362e3f4 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0205_single_string_slots.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0205_single_string_slots.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- single_string_slots.py:3:5: PLC0205 Class `__slots__` should be a non-string iterable | @@ -28,5 +29,3 @@ single_string_slots.py:17:5: PLC0205 Class `__slots__` should be a non-string it 18 | 19 | def __init__(self, bar): | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0206_dict_index_missing_items.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0206_dict_index_missing_items.py.snap index 49e59491f1..3efd122617 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0206_dict_index_missing_items.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0206_dict_index_missing_items.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- dict_index_missing_items.py:9:1: PLC0206 Extracting value from dictionary without calling `.items()` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0208_iteration_over_set.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0208_iteration_over_set.py.snap index 68b9aa856d..435a6a91e5 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0208_iteration_over_set.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0208_iteration_over_set.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- iteration_over_set.py:3:13: PLC0208 [*] Use a sequence type instead of a `set` when iterating over values | @@ -168,6 +169,4 @@ iteration_over_set.py:23:27: PLC0208 [*] Use a sequence type instead of a `set` 23 |+numbers_gen = (i for i in (1, 2, 3)) # flags sets in generator expressions 24 24 | 25 25 | # Non-errors -26 26 | - - +26 26 | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0414_import_aliasing.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0414_import_aliasing.py.snap index ac761dd336..034b44cbae 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0414_import_aliasing.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0414_import_aliasing.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- import_aliasing.py:6:8: PLC0414 [*] Import alias does not rename original package | @@ -167,5 +168,3 @@ import_aliasing.py:25:21: PLC0414 [*] Import alias does not rename original pack 26 26 | from foo.bar import foobar as foo 27 27 | from .foo.bar import f as foobar 28 28 | from ............a import b # [relative-beyond-top-level] - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0415_import_outside_top_level.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0415_import_outside_top_level.py.snap index c61579d43d..3e7f1185f7 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0415_import_outside_top_level.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC0415_import_outside_top_level.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- import_outside_top_level.py:10:5: PLC0415 `import` should be at the top-level of a file | @@ -72,5 +73,3 @@ import_outside_top_level.py:22:9: PLC0415 `import` should be at the top-level of 22 | import trace # [import-outside-toplevel] | ^^^^^^^^^^^^ PLC0415 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC1901_compare_to_empty_string.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC1901_compare_to_empty_string.py.snap index 3db68b79bc..3c06a3e518 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC1901_compare_to_empty_string.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC1901_compare_to_empty_string.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- compare_to_empty_string.py:7:13: PLC1901 `x is ""` can be simplified to `not x` as an empty string is falsey | @@ -43,5 +44,3 @@ compare_to_empty_string.py:13:8: PLC1901 `"" != z` can be simplified to `z` as a | ^^ PLC1901 14 | print("z is an empty string") | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2401_non_ascii_name.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2401_non_ascii_name.py.snap index 7c7ac5e96e..8608edf546 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2401_non_ascii_name.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2401_non_ascii_name.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- non_ascii_name.py:1:1: PLC2401 Variable name `ápple_count` contains a non-ASCII character | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2403_non_ascii_module_import.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2403_non_ascii_module_import.py.snap index 6d8a7c610b..4d0f38601d 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2403_non_ascii_module_import.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2403_non_ascii_module_import.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- non_ascii_module_import.py:1:29: PLC2403 Module alias `łos` contains a non-ASCII character | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2701_import_private_name__submodule____main__.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2701_import_private_name__submodule____main__.py.snap index 1132b30cc9..6c049c0b72 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2701_import_private_name__submodule____main__.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2701_import_private_name__submodule____main__.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- __main__.py:2:16: PLC2701 Private name import `_a` | @@ -68,5 +69,3 @@ __main__.py:8:24: PLC2701 Private name import `_ddd` from external module `bbb.c 9 | 10 | # Non-errors. | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2801_unnecessary_dunder_call.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2801_unnecessary_dunder_call.py.snap index 48923d03a1..0938f72c86 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2801_unnecessary_dunder_call.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC2801_unnecessary_dunder_call.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- unnecessary_dunder_call.py:4:7: PLC2801 [*] Unnecessary dunder call to `__add__`. Use `+` operator. | @@ -1081,5 +1082,3 @@ unnecessary_dunder_call.py:92:16: PLC2801 Unnecessary dunder call to `__getattri 94 | def use_descriptor(self, item): | = help: Access attribute directly or use getattr built-in function - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC3002_unnecessary_direct_lambda_call.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC3002_unnecessary_direct_lambda_call.py.snap index d7a4c18d21..f88db1463f 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC3002_unnecessary_direct_lambda_call.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLC3002_unnecessary_direct_lambda_call.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- unnecessary_direct_lambda_call.py:4:5: PLC3002 Lambda expression called directly. Execute the expression inline instead. | @@ -23,5 +24,3 @@ unnecessary_direct_lambda_call.py:5:30: PLC3002 Lambda expression called directl 5 | y = max((lambda x: x**2)(a), (lambda x: x+1)(a)) # [unnecessary-direct-lambda-call,unnecessary-direct-lambda-call] | ^^^^^^^^^^^^^^^^^^ PLC3002 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0100_yield_in_init.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0100_yield_in_init.py.snap index a554c0200b..f48dbd4ef5 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0100_yield_in_init.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0100_yield_in_init.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- yield_in_init.py:9:9: PLE0100 `__init__` method is a generator | @@ -18,5 +19,3 @@ yield_in_init.py:14:9: PLE0100 `__init__` method is a generator 15 | 16 | def gen(self): | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0101_return_in_init.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0101_return_in_init.py.snap index c4866362ec..fb0d2c41c9 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0101_return_in_init.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0101_return_in_init.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- return_in_init.py:14:9: PLE0101 Explicit return in `__init__` | @@ -19,5 +20,3 @@ return_in_init.py:22:9: PLE0101 Explicit return in `__init__` 23 | 24 | class MyClass2: | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0115_nonlocal_and_global.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0115_nonlocal_and_global.py.snap index 9ea0e9ace3..9bcbce8cff 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0115_nonlocal_and_global.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0115_nonlocal_and_global.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- nonlocal_and_global.py:7:12: PLE0115 Name `counter` is both `nonlocal` and `global` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0116_continue_in_finally.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0116_continue_in_finally.py.snap index 6c123427ab..d87d6848ea 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0116_continue_in_finally.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0116_continue_in_finally.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0117_nonlocal_without_binding.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0117_nonlocal_without_binding.py.snap index 6628e255a9..4e375e6b6a 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0117_nonlocal_without_binding.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0117_nonlocal_without_binding.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- nonlocal_without_binding.py:5:14: PLE0117 Nonlocal name `x` found without binding | @@ -21,5 +22,3 @@ nonlocal_without_binding.py:19:18: PLE0117 Nonlocal name `y` found without bindi 19 | nonlocal y | ^ PLE0117 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0118_load_before_global_declaration.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0118_load_before_global_declaration.py.snap index b754822615..0327dcd015 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0118_load_before_global_declaration.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0118_load_before_global_declaration.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- load_before_global_declaration.py:5:11: PLE0118 Name `x` is used prior to global declaration on line 7 | @@ -123,5 +124,3 @@ load_before_global_declaration.py:113:14: PLE0118 Name `x` is used prior to glob | ^ PLE0118 114 | global x | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0237_non_slot_assignment.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0237_non_slot_assignment.py.snap index 6b0fc3d4a2..f053c56e66 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0237_non_slot_assignment.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0237_non_slot_assignment.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- non_slot_assignment.py:6:9: PLE0237 Attribute `surname` is not defined in class's `__slots__` | @@ -27,5 +28,3 @@ non_slot_assignment.py:42:9: PLE0237 Attribute `middle_name` is not defined in c | ^^^^^^^^^^^^^^^^ PLE0237 43 | self.setup() | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0241_duplicate_bases.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0241_duplicate_bases.py.snap index f939250ceb..ca3062908b 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0241_duplicate_bases.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0241_duplicate_bases.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- duplicate_bases.py:13:13: PLE0241 [*] Duplicate base `A` for class `F1` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0302_unexpected_special_method_signature.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0302_unexpected_special_method_signature.py.snap index 54467d8ada..986b0c52d5 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0302_unexpected_special_method_signature.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0302_unexpected_special_method_signature.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- unexpected_special_method_signature.py:5:9: PLE0302 The special method `__bool__` expects 1 parameter, 2 were given | @@ -71,5 +72,3 @@ unexpected_special_method_signature.py:65:9: PLE0302 The special method `__round | ^^^^^^^^^ PLE0302 66 | ... | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0303_invalid_return_type_length.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0303_invalid_return_type_length.py.snap index e0bf2309a2..f7a85c61e5 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0303_invalid_return_type_length.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0303_invalid_return_type_length.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_return_type_length.py:6:16: PLE0303 `__len__` does not return a non-negative integer | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0304_invalid_return_type_bool.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0304_invalid_return_type_bool.py.snap index b28107c085..46c5c0b1b3 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0304_invalid_return_type_bool.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0304_invalid_return_type_bool.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_return_type_bool.py:5:16: PLE0304 `__bool__` does not return `bool` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0305_invalid_return_type_index.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0305_invalid_return_type_index.py.snap index 367f15b8b7..92964417da 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0305_invalid_return_type_index.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0305_invalid_return_type_index.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_return_type_index.py:8:16: PLE0305 `__index__` does not return an integer | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0307_invalid_return_type_str.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0307_invalid_return_type_str.py.snap index 11d8614907..31fe3edc92 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0307_invalid_return_type_str.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0307_invalid_return_type_str.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_return_type_str.py:6:16: PLE0307 `__str__` does not return `str` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0308_invalid_return_type_bytes.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0308_invalid_return_type_bytes.py.snap index 64e182cc0a..3f2c76c929 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0308_invalid_return_type_bytes.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0308_invalid_return_type_bytes.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_return_type_bytes.py:6:16: PLE0308 `__bytes__` does not return `bytes` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0309_invalid_return_type_hash.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0309_invalid_return_type_hash.py.snap index cffa2bcfc4..23f61bc9dc 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0309_invalid_return_type_hash.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0309_invalid_return_type_hash.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_return_type_hash.py:6:16: PLE0309 `__hash__` does not return an integer | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0604_invalid_all_object.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0604_invalid_all_object.py.snap index 520ac1d083..f005580eac 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0604_invalid_all_object.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0604_invalid_all_object.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_all_object.py:1:1: PLE0604 Invalid object in `__all__`, must contain only strings | @@ -16,5 +17,3 @@ invalid_all_object.py:7:1: PLE0604 Invalid object in `__all__`, must contain onl 7 | __all__ = list([None, "Fruit", "Worm"]) # [invalid-all-object] | ^^^^^^^ PLE0604 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0605_invalid_all_format.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0605_invalid_all_format.py.snap index 1768e87240..37bcd9349a 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0605_invalid_all_format.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0605_invalid_all_format.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_all_format.py:1:1: PLE0605 Invalid format for `__all__`, must be `tuple` or `list` | @@ -128,5 +129,3 @@ invalid_all_format.py:23:12: PLE0605 Invalid format for `__all__`, must be `tupl 24 | 25 | __all__ = ["Hello"] | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0643_potential_index_error.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0643_potential_index_error.py.snap index 4c90ee3f58..5297c23240 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0643_potential_index_error.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0643_potential_index_error.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- potential_index_error.py:1:17: PLE0643 Expression is likely to raise `IndexError` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0704_misplaced_bare_raise.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0704_misplaced_bare_raise.py.snap index ce61e96b9c..3ea614ed29 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0704_misplaced_bare_raise.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0704_misplaced_bare_raise.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- misplaced_bare_raise.py:30:5: PLE0704 Bare `raise` statement is not inside an exception handler | @@ -86,5 +87,3 @@ misplaced_bare_raise.py:71:5: PLE0704 Bare `raise` statement is not inside an ex 71 | raise # [misplaced-bare-raise] | ^^^^^ PLE0704 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1132_repeated_keyword_argument.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1132_repeated_keyword_argument.py.snap index 2e669058dc..702fb4f4c9 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1132_repeated_keyword_argument.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1132_repeated_keyword_argument.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- repeated_keyword_argument.py:16:21: PLE1132 Repeated keyword argument: `c` | @@ -76,5 +77,3 @@ repeated_keyword_argument.py:20:30: PLE1132 Repeated keyword argument: `c` 20 | func(a=11, b=21, **{"c": 31, "c": 32}) | ^^^ PLE1132 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1141_dict_iter_missing_items.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1141_dict_iter_missing_items.py.snap index db90e1a686..18a4ebb078 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1141_dict_iter_missing_items.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1141_dict_iter_missing_items.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- dict_iter_missing_items.py:13:13: PLE1141 [*] Unpacking a dictionary in iteration without calling `.items()` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1142_await_outside_async.ipynb.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1142_await_outside_async.ipynb.snap index 7536eac4d5..4045604439 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1142_await_outside_async.ipynb.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1142_await_outside_async.ipynb.snap @@ -1,6 +1,5 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs -assertion_line: 236 snapshot_kind: text --- await_outside_async.ipynb:9:5: PLE1142 `await` should be used within an async function diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1142_await_outside_async.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1142_await_outside_async.py.snap index ce1a9a7d38..ca050da3e0 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1142_await_outside_async.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1142_await_outside_async.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- await_outside_async.py:15:11: PLE1142 `await` should be used within an async function | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1205_logging_too_many_args.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1205_logging_too_many_args.py.snap index f202189a23..8e9100b14a 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1205_logging_too_many_args.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1205_logging_too_many_args.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- logging_too_many_args.py:3:1: PLE1205 Too many arguments for `logging` format string | @@ -40,5 +41,3 @@ logging_too_many_args.py:31:1: PLE1205 Too many arguments for `logging` format s 32 | 33 | warning("Hello %s", "World!") | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1206_logging_too_few_args.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1206_logging_too_few_args.py.snap index abaec32b88..fc1a75b237 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1206_logging_too_few_args.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1206_logging_too_few_args.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- logging_too_few_args.py:3:1: PLE1206 Not enough arguments for `logging` format string | @@ -20,5 +21,3 @@ logging_too_few_args.py:33:1: PLE1206 Not enough arguments for `logging` format 34 | 35 | # do not handle calls with kwargs (like pylint) | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1300_bad_string_format_character.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1300_bad_string_format_character.py.snap index e0443ba9bd..8d0af5bba7 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1300_bad_string_format_character.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1300_bad_string_format_character.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- bad_string_format_character.py:5:1: PLE1300 Unsupported format character 'z' | @@ -60,5 +61,3 @@ bad_string_format_character.py:19:1: PLE1300 Unsupported format character 'y' 20 | "{0:.{prec}g}".format(1.23, prec=15) # OK (cannot validate after nested placeholder) 21 | "{0:.{foo}{bar}{foobar}y}".format(...) # OK (cannot validate after nested placeholders) | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1307_bad_string_format_type.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1307_bad_string_format_type.py.snap index cd3e86e327..2adea4bd7b 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1307_bad_string_format_type.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1307_bad_string_format_type.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- bad_string_format_type.py:2:7: PLE1307 Format type does not match argument type | @@ -127,5 +128,3 @@ bad_string_format_type.py:16:1: PLE1307 Format type does not match argument type 17 | 18 | # False negatives | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1310_bad_str_strip_call.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1310_bad_str_strip_call.py.snap index 7f97ef8dfa..b3c17c9041 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1310_bad_str_strip_call.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1310_bad_str_strip_call.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- bad_str_strip_call.py:2:21: PLE1310 String `strip` call contains duplicate characters | @@ -156,5 +157,3 @@ bad_str_strip_call.py:67:12: PLE1310 String `rstrip` call contains duplicate cha 68 | 69 | # OK | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1507_invalid_envvar_value.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1507_invalid_envvar_value.py.snap index 8bf3f89edb..3aa744425c 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1507_invalid_envvar_value.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1507_invalid_envvar_value.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_envvar_value.py:3:11: PLE1507 Invalid type for initial `os.getenv` argument; expected `str` | @@ -50,5 +51,3 @@ invalid_envvar_value.py:14:11: PLE1507 Invalid type for initial `os.getenv` argu 15 | 16 | AA = "aa" | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1519_singledispatch_method.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1519_singledispatch_method.py.snap index caa3e35b7c..1f04b66ce6 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1519_singledispatch_method.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1519_singledispatch_method.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- singledispatch_method.py:10:5: PLE1519 [*] `@singledispatch` decorator should not be used on methods | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1520_singledispatchmethod_function.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1520_singledispatchmethod_function.py.snap index 1507083e58..36b591bc45 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1520_singledispatchmethod_function.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1520_singledispatchmethod_function.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- singledispatchmethod_function.py:4:1: PLE1520 [*] `@singledispatchmethod` decorator should not be used on non-method functions | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1700_yield_from_in_async_function.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1700_yield_from_in_async_function.py.snap index 8ead784695..c57a96cd09 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1700_yield_from_in_async_function.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE1700_yield_from_in_async_function.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- yield_from_in_async_function.py:7:5: PLE1700 `yield from` statement in async function; use `async for` instead | @@ -8,5 +9,3 @@ yield_from_in_async_function.py:7:5: PLE1700 `yield from` statement in async fun 7 | yield from l | ^^^^^^^^^^^^ PLE1700 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2502_bidirectional_unicode.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2502_bidirectional_unicode.py.snap index 76de26797c..abf55695cc 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2502_bidirectional_unicode.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2502_bidirectional_unicode.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- bidirectional_unicode.py:2:1: PLE2502 Contains control characters that can permit obfuscated code | @@ -39,5 +40,3 @@ bidirectional_unicode.py:14:1: PLE2502 Contains control characters that can perm 16 | bank[account] -= amount 17 | return | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2510_invalid_characters.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2510_invalid_characters.py.snap index 3f23d12764..dea1005092 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2510_invalid_characters.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2510_invalid_characters.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_characters.py:15:6: PLE2510 [*] Invalid unescaped character backspace, use "\b" instead | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2510_invalid_characters_syntax_error.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2510_invalid_characters_syntax_error.py.snap index ac7bb4abc9..55449038ed 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2510_invalid_characters_syntax_error.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2510_invalid_characters_syntax_error.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_characters_syntax_error.py:5:6: PLE2510 Invalid unescaped character backspace, use "\b" instead | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2512_invalid_characters.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2512_invalid_characters.py.snap index 3ef59bd929..645acf0bcb 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2512_invalid_characters.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2512_invalid_characters.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_characters.py:24:12: PLE2512 [*] Invalid unescaped character SUB, use "\x1A" instead | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2513_invalid_characters.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2513_invalid_characters.py.snap index 993c89041e..dc7aaba7f0 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2513_invalid_characters.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2513_invalid_characters.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_characters.py:30:16: PLE2513 [*] Invalid unescaped character ESC, use "\x1B" instead | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2514_invalid_characters.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2514_invalid_characters.py.snap index 3ab1a52ec4..4fc53d9aba 100644 Binary files a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2514_invalid_characters.py.snap and b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2514_invalid_characters.py.snap differ diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2515_invalid_characters.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2515_invalid_characters.py.snap index bf097d02f2..eb6e952f03 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2515_invalid_characters.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2515_invalid_characters.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_characters.py:44:13: PLE2515 [*] Invalid unescaped character zero-width-space, use "\u200B" instead | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE4703_modified_iterating_set.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE4703_modified_iterating_set.py.snap index 0af466fe72..a3d8ed567b 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE4703_modified_iterating_set.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE4703_modified_iterating_set.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- modified_iterating_set.py:4:1: PLE4703 [*] Iterated set `nums` is modified within the `for` loop | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0124_comparison_with_itself.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0124_comparison_with_itself.py.snap index 457daa38d5..c657f71a9f 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0124_comparison_with_itself.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0124_comparison_with_itself.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- comparison_with_itself.py:2:1: PLR0124 Name compared with itself, consider replacing `foo == foo` | @@ -119,5 +120,3 @@ comparison_with_itself.py:24:1: PLR0124 Name compared with itself, consider repl 25 | 26 | # Non-errors. | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0133_comparison_of_constant.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0133_comparison_of_constant.py.snap index 29f4192415..aff14069c9 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0133_comparison_of_constant.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0133_comparison_of_constant.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- comparison_of_constant.py:3:4: PLR0133 Two constants compared in a comparison, consider replacing `100 == 100` | @@ -89,5 +90,3 @@ comparison_of_constant.py:58:4: PLR0133 Two constants compared in a comparison, | ^^^^ PLR0133 59 | pass | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0202_no_method_decorator.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0202_no_method_decorator.py.snap index 8824f3dd57..436db3757a 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0202_no_method_decorator.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0202_no_method_decorator.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- no_method_decorator.py:9:5: PLR0202 [*] Class method defined without decorator | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0203_no_method_decorator.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0203_no_method_decorator.py.snap index c4f9d811b4..9ef8f741f1 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0203_no_method_decorator.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0203_no_method_decorator.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- no_method_decorator.py:15:5: PLR0203 [*] Static method defined without decorator | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0206_property_with_parameters.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0206_property_with_parameters.py.snap index ada975adc5..3c8afe856c 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0206_property_with_parameters.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0206_property_with_parameters.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- property_with_parameters.py:7:9: PLR0206 Cannot have defined parameters for properties | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0402_import_aliasing.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0402_import_aliasing.py.snap index 75384428f6..944d71a06c 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0402_import_aliasing.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0402_import_aliasing.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- import_aliasing.py:9:8: PLR0402 [*] Use `from os import path` in lieu of alias | @@ -53,5 +54,3 @@ import_aliasing.py:12:8: PLR0402 Use `from foo.bar import foobar` in lieu of ali 14 | import os as OS | = help: Replace with `from foo.bar import foobar` - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0911_too_many_return_statements.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0911_too_many_return_statements.py.snap index 9348c8d85f..7db77dee35 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0911_too_many_return_statements.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0911_too_many_return_statements.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_return_statements.py:4:5: PLR0911 Too many return statements (11 > 6) | @@ -10,5 +11,3 @@ too_many_return_statements.py:4:5: PLR0911 Too many return statements (11 > 6) 5 | if arg == 1: 6 | return 1 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0912_too_many_branches.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0912_too_many_branches.py.snap index cc4a6a40f2..d865538446 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0912_too_many_branches.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0912_too_many_branches.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_branches.py:8:5: PLR0912 Too many branches (13 > 12) | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0913_too_many_arguments.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0913_too_many_arguments.py.snap index a66df27fbd..fcdbc52e19 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0913_too_many_arguments.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0913_too_many_arguments.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_arguments.py:1:5: PLR0913 Too many arguments in function definition (8 > 5) | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0915_too_many_statements.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0915_too_many_statements.py.snap index 00d55f6846..f3d12f984a 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0915_too_many_statements.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0915_too_many_statements.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_statements.py:5:11: PLR0915 Too many statements (51 > 50) | @@ -8,5 +9,3 @@ too_many_statements.py:5:11: PLR0915 Too many statements (51 > 50) 6 | print() 7 | print() | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0917_too_many_positional_arguments.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0917_too_many_positional_arguments.py.snap index 52182d288a..293664ff30 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0917_too_many_positional_arguments.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0917_too_many_positional_arguments.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_positional_arguments.py:1:5: PLR0917 Too many positional arguments (8/5) | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1702_too_many_nested_blocks.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1702_too_many_nested_blocks.py.snap index c3df6b5ec6..f98ba2c778 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1702_too_many_nested_blocks.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1702_too_many_nested_blocks.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_nested_blocks.py:2:5: PLR1702 Too many nested blocks (6 > 5) | @@ -16,5 +17,3 @@ too_many_nested_blocks.py:2:5: PLR1702 Too many nested blocks (6 > 5) | |_______________________________________^ PLR1702 10 | return False | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1704_redefined_argument_from_local.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1704_redefined_argument_from_local.py.snap index 246e255ce8..19a226391e 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1704_redefined_argument_from_local.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1704_redefined_argument_from_local.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- redefined_argument_from_local.py:41:9: PLR1704 Redefining argument with the local name `a` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1711_useless_return.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1711_useless_return.py.snap index cf914458f4..42779605bb 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1711_useless_return.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1711_useless_return.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- useless_return.py:6:5: PLR1711 [*] Useless `return` statement at end of function | @@ -105,5 +106,3 @@ useless_return.py:60:9: PLR1711 [*] Useless `return` statement at end of functio 58 58 | def get(self, key: str) -> None: 59 59 | print(f"{key} not found") 60 |- return None - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1714_repeated_equality_comparison.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1714_repeated_equality_comparison.py.snap index 0c02246b06..06f948e4df 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1714_repeated_equality_comparison.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1714_repeated_equality_comparison.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- repeated_equality_comparison.py:2:1: PLR1714 [*] Consider merging multiple comparisons: `foo in ("a", "b")`. Use a `set` if the elements are hashable. | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1716_boolean_chained_comparison.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1716_boolean_chained_comparison.py.snap index 46f98755a1..1628f99501 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1716_boolean_chained_comparison.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1716_boolean_chained_comparison.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- boolean_chained_comparison.py:8:4: PLR1716 [*] Contains chained boolean comparison that can be simplified | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_0.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_0.py.snap index 290c2cc893..022ee5888c 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_0.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- sys_exit_alias_0.py:1:1: PLR1722 [*] Use `sys.exit()` instead of `exit` | @@ -73,5 +74,3 @@ sys_exit_alias_0.py:7:5: PLR1722 [*] Use `sys.exit()` instead of `quit` 6 7 | exit(2) 7 |- quit(2) 8 |+ sys.exit(2) - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_1.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_1.py.snap index f2124e8ded..906f9ad6c9 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_1.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- sys_exit_alias_1.py:3:1: PLR1722 [*] Use `sys.exit()` instead of `exit` | @@ -93,5 +94,3 @@ sys_exit_alias_1.py:16:5: PLR1722 Use `sys.exit()` instead of `quit` | ^^^^ PLR1722 | = help: Replace `quit` with `sys.exit()` - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_10.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_10.py.snap index 9328cd82d4..d8bfe3033e 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_10.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_10.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- sys_exit_alias_10.py:8:5: PLR1722 Use `sys.exit()` instead of `exit` | @@ -8,5 +9,3 @@ sys_exit_alias_10.py:8:5: PLR1722 Use `sys.exit()` instead of `exit` | ^^^^ PLR1722 | = help: Replace `exit` with `sys.exit()` - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_11.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_11.py.snap index 4f537fcd13..8c3556438b 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_11.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_11.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- sys_exit_alias_11.py:3:1: PLR1722 [*] Use `sys.exit()` instead of `exit` | @@ -16,5 +17,3 @@ sys_exit_alias_11.py:3:1: PLR1722 [*] Use `sys.exit()` instead of `exit` 2 3 | 3 |-exit(0) 4 |+sys.exit(0) - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_12.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_12.py.snap index 8221f82db5..956a1ed942 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_12.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_12.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- sys_exit_alias_12.py:3:1: PLR1722 [*] Use `sys.exit()` instead of `exit` | @@ -16,5 +17,3 @@ sys_exit_alias_12.py:3:1: PLR1722 [*] Use `sys.exit()` instead of `exit` 2 2 | 3 |-exit(0) 3 |+sys.exit(0) - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_2.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_2.py.snap index d5faaa92da..96d4b0f316 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_2.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- sys_exit_alias_2.py:3:1: PLR1722 [*] Use `sys.exit()` instead of `exit` | @@ -70,5 +71,3 @@ sys_exit_alias_2.py:9:5: PLR1722 [*] Use `sys.exit()` instead of `quit` 8 8 | exit(1) 9 |- quit(1) 9 |+ sys2.exit(1) - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_3.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_3.py.snap index c7faa956b3..43e4361fe2 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_3.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- sys_exit_alias_3.py:4:1: PLR1722 [*] Use `sys.exit()` instead of `quit` | @@ -45,5 +46,3 @@ sys_exit_alias_3.py:16:5: PLR1722 Use `sys.exit()` instead of `quit` | ^^^^ PLR1722 | = help: Replace `quit` with `sys.exit()` - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_4.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_4.py.snap index 9a41754444..5c81a57432 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_4.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_4.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- sys_exit_alias_4.py:3:1: PLR1722 [*] Use `sys.exit()` instead of `exit` | @@ -70,5 +71,3 @@ sys_exit_alias_4.py:9:5: PLR1722 [*] Use `sys.exit()` instead of `quit` 8 8 | exit(1) 9 |- quit(1) 9 |+ exit2(1) - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_5.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_5.py.snap index 8a6bbc5f3e..d8b3a11512 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_5.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_5.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- sys_exit_alias_5.py:3:1: PLR1722 [*] Use `sys.exit()` instead of `exit` | @@ -83,5 +84,3 @@ sys_exit_alias_5.py:9:5: PLR1722 [*] Use `sys.exit()` instead of `quit` 8 9 | exit(1) 9 |- quit(1) 10 |+ sys.exit(1) - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_6.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_6.py.snap index 87119e0665..bff2c47eec 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_6.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_6.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- sys_exit_alias_6.py:1:1: PLR1722 [*] Use `sys.exit()` instead of `exit` | @@ -33,5 +34,3 @@ sys_exit_alias_6.py:2:1: PLR1722 [*] Use `sys.exit()` instead of `quit` 3 4 | 4 5 | 5 6 | def exit(e): - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_7.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_7.py.snap index 4c32e7cc3a..072845bb2e 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_7.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_7.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- sys_exit_alias_7.py:2:5: PLR1722 [*] Use `sys.exit()` instead of `exit` | @@ -17,5 +18,3 @@ sys_exit_alias_7.py:2:5: PLR1722 [*] Use `sys.exit()` instead of `exit` 3 4 | 4 5 | 5 6 | import functools - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_8.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_8.py.snap index 1423a41dba..337821b7d4 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_8.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_8.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- sys_exit_alias_8.py:5:5: PLR1722 [*] Use `sys.exit()` instead of `exit` | @@ -15,5 +16,3 @@ sys_exit_alias_8.py:5:5: PLR1722 [*] Use `sys.exit()` instead of `exit` 2 2 | 3 3 | 4 4 | def main(): - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_9.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_9.py.snap index 23107f6066..019462ca26 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_9.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1722_sys_exit_alias_9.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- sys_exit_alias_9.py:2:5: PLR1722 [*] Use `sys.exit()` instead of `exit` | @@ -17,5 +18,3 @@ sys_exit_alias_9.py:2:5: PLR1722 [*] Use `sys.exit()` instead of `exit` 3 4 | 4 5 | 5 6 | from sys import argv - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1730_if_stmt_min_max.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1730_if_stmt_min_max.py.snap index 52baee302a..d27e1fd2fb 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1730_if_stmt_min_max.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1730_if_stmt_min_max.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- if_stmt_min_max.py:8:1: PLR1730 [*] Replace `if` statement with `value = max(value, 10)` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1733_unnecessary_dict_index_lookup.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1733_unnecessary_dict_index_lookup.py.snap index 44ae274800..dbbcead379 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1733_unnecessary_dict_index_lookup.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1733_unnecessary_dict_index_lookup.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- unnecessary_dict_index_lookup.py:4:6: PLR1733 [*] Unnecessary lookup of dictionary value by key | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1736_unnecessary_list_index_lookup.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1736_unnecessary_list_index_lookup.py.snap index ff398797f4..f187241d63 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1736_unnecessary_list_index_lookup.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1736_unnecessary_list_index_lookup.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- unnecessary_list_index_lookup.py:7:6: PLR1736 [*] List index lookup in `enumerate()` loop | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR2004_magic_value_comparison.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR2004_magic_value_comparison.py.snap index 2f292d9d9a..1c179c1311 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR2004_magic_value_comparison.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR2004_magic_value_comparison.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- magic_value_comparison.py:5:4: PLR2004 Magic value used in comparison, consider replacing `10` with a constant variable | @@ -72,5 +73,3 @@ magic_value_comparison.py:86:21: PLR2004 Magic value used in comparison, conside | ^^^ PLR2004 87 | pass | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR2044_empty_comment.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR2044_empty_comment.py.snap index 94bb9acab3..5b9ce7cf4a 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR2044_empty_comment.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR2044_empty_comment.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- empty_comment.py:3:1: PLR2044 [*] Line with empty comment | @@ -129,5 +130,3 @@ empty_comment.py:58:2: PLR2044 [*] Line with empty comment 57 57 | α = 1 58 |-α# 58 |+α - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR5501_collapsible_else_if.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR5501_collapsible_else_if.py.snap index d5b95a89ea..0ac4f5d772 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR5501_collapsible_else_if.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR5501_collapsible_else_if.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- collapsible_else_if.py:37:5: PLR5501 [*] Use `elif` instead of `else` then `if`, to reduce indentation | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR6104_non_augmented_assignment.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR6104_non_augmented_assignment.py.snap index a676c83cb8..fdf1eb6d3a 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR6104_non_augmented_assignment.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR6104_non_augmented_assignment.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- non_augmented_assignment.py:16:1: PLR6104 [*] Use `+=` to perform an augmented assignment directly | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR6201_literal_membership.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR6201_literal_membership.py.snap index 98cd73be36..0a05dcb711 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR6201_literal_membership.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR6201_literal_membership.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- literal_membership.py:2:6: PLR6201 [*] Use a set literal when testing for membership | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR6301_no_self_use.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR6301_no_self_use.py.snap index fe3f47b21f..b1da0df29e 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR6301_no_self_use.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR6301_no_self_use.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- no_self_use.py:7:9: PLR6301 Method `developer_greeting` could be a function, class method, or static method | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0108_unnecessary_lambda.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0108_unnecessary_lambda.py.snap index 74af7a647f..0bff37af89 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0108_unnecessary_lambda.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0108_unnecessary_lambda.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- unnecessary_lambda.py:1:5: PLW0108 [*] Lambda may be unnecessary; consider inlining inner function | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0120_useless_else_on_loop.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0120_useless_else_on_loop.py.snap index ea72439be9..8d16fb473a 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0120_useless_else_on_loop.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0120_useless_else_on_loop.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- useless_else_on_loop.py:9:5: PLW0120 [*] `else` clause on loop without a `break` statement; remove the `else` and dedent its contents | @@ -183,5 +184,3 @@ useless_else_on_loop.py:144:5: PLW0120 [*] `else` clause on loop without a `brea 145 |+ print("fat chance") 146 |+ for j in range(10): 147 |+ break - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0127_self_assigning_variable.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0127_self_assigning_variable.py.snap index 882bd21a0a..6c9031d4c1 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0127_self_assigning_variable.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0127_self_assigning_variable.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- self_assigning_variable.py:6:1: PLW0127 Self-assignment of variable `foo` | @@ -407,5 +408,3 @@ self_assigning_variable.py:28:7: PLW0127 Self-assignment of variable `bar` 29 | 30 | # Non-errors. | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0128_redeclared_assigned_name.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0128_redeclared_assigned_name.py.snap index eda5b8ea9f..66b84a4bcc 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0128_redeclared_assigned_name.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0128_redeclared_assigned_name.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- redeclared_assigned_name.py:1:8: PLW0128 Redeclared variable `FIRST` in assignment | @@ -55,5 +56,3 @@ redeclared_assigned_name.py:4:30: PLW0128 Redeclared variable `SECOND` in assign 5 | 6 | FIRST, SECOND, _, _, _ignored = (1, 2, 3, 4, 5) # OK | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0129_assert_on_string_literal.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0129_assert_on_string_literal.py.snap index 6b87dcf58c..c4293a4ef0 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0129_assert_on_string_literal.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0129_assert_on_string_literal.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- assert_on_string_literal.py:3:12: PLW0129 Asserting on a non-empty string literal will always pass | @@ -95,5 +96,3 @@ assert_on_string_literal.py:23:8: PLW0129 Asserting on a non-empty string litera | ^^^^^^^^^^^^^ PLW0129 24 | assert 12, "ok here" | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0131_named_expr_without_context.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0131_named_expr_without_context.py.snap index 9a3730761b..ae0e8efbf1 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0131_named_expr_without_context.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0131_named_expr_without_context.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- named_expr_without_context.py:2:2: PLW0131 Named expression used without context | @@ -24,5 +25,3 @@ named_expr_without_context.py:8:6: PLW0131 Named expression used without context 8 | (c := 1) | ^^^^^^ PLW0131 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0133_useless_exception_statement.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0133_useless_exception_statement.py.snap index ab1a7935b8..4593aa5e54 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0133_useless_exception_statement.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0133_useless_exception_statement.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- useless_exception_statement.py:7:5: PLW0133 [*] Missing `raise` statement on exception | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0177_nan_comparison.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0177_nan_comparison.py.snap index a4f659c566..3b87327d73 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0177_nan_comparison.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0177_nan_comparison.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- nan_comparison.py:11:9: PLW0177 Comparing against a NaN value; use `math.isnan` instead | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0211_bad_staticmethod_argument.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0211_bad_staticmethod_argument.py.snap index add63e311b..30531d9efa 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0211_bad_staticmethod_argument.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0211_bad_staticmethod_argument.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- bad_staticmethod_argument.py:3:13: PLW0211 First argument of a static method should not be named `self` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0245_super_without_brackets.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0245_super_without_brackets.py.snap index d2abe86131..b52fb9601f 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0245_super_without_brackets.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0245_super_without_brackets.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- super_without_brackets.py:10:26: PLW0245 [*] `super` call is missing parentheses | @@ -19,6 +20,4 @@ super_without_brackets.py:10:26: PLW0245 [*] `super` call is missing parentheses 10 |+ original_speak = super().speak() # PLW0245 11 11 | return f"{original_speak} But as a dog, it barks!" 12 12 | -13 13 | - - +13 13 | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0406_import_self__module.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0406_import_self__module.py.snap index e2be646568..7ac51eba2d 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0406_import_self__module.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0406_import_self__module.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- module.py:1:8: PLW0406 Module `import_self.module` imports itself | @@ -24,5 +25,3 @@ module.py:3:15: PLW0406 Module `import_self.module` imports itself 3 | from . import module | ^^^^^^ PLW0406 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0602_global_variable_not_assigned.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0602_global_variable_not_assigned.py.snap index 61b98b457e..40a663dc5b 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0602_global_variable_not_assigned.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0602_global_variable_not_assigned.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- global_variable_not_assigned.py:5:12: PLW0602 Using global for `X` but no assignment is done | @@ -17,5 +18,3 @@ global_variable_not_assigned.py:9:12: PLW0602 Using global for `X` but no assign 10 | 11 | print(X) | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0603_global_statement.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0603_global_statement.py.snap index ad189b3ebb..8258c72238 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0603_global_statement.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0603_global_statement.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- global_statement.py:17:12: PLW0603 Using the global statement to update `CONSTANT` is discouraged | @@ -98,5 +99,3 @@ global_statement.py:80:12: PLW0603 Using the global statement to update `CONSTAN 81 | CONSTANT = 1 82 | CONSTANT = 2 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0604_global_at_module_level.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0604_global_at_module_level.py.snap index 75c9b9db2a..ef9766f7b3 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0604_global_at_module_level.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0604_global_at_module_level.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- global_at_module_level.py:1:1: PLW0604 `global` at module level is redundant | @@ -17,5 +18,3 @@ global_at_module_level.py:6:5: PLW0604 `global` at module level is redundant 7 | 8 | def no_error(): | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0642_self_or_cls_assignment.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0642_self_or_cls_assignment.py.snap index 315998894e..b6b4c7ff2d 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0642_self_or_cls_assignment.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0642_self_or_cls_assignment.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- self_or_cls_assignment.py:4:9: PLW0642 Reassigned `cls` variable in class method | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0711_binary_op_exception.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0711_binary_op_exception.py.snap index e8300c00e3..d0f7bf9c11 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0711_binary_op_exception.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0711_binary_op_exception.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- binary_op_exception.py:3:8: PLW0711 Exception to catch is the result of a binary `or` operation | @@ -18,5 +19,3 @@ binary_op_exception.py:8:8: PLW0711 Exception to catch is the result of a binary | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PLW0711 9 | print(e) | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1501_bad_open_mode.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1501_bad_open_mode.py.snap index b029ad5b01..6b93f039ff 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1501_bad_open_mode.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1501_bad_open_mode.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- bad_open_mode.py:11:12: PLW1501 `rwx` is not a valid mode for `open` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1507_shallow_copy_environ.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1507_shallow_copy_environ.py.snap index 40729240c3..e6b1d9adb4 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1507_shallow_copy_environ.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1507_shallow_copy_environ.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- shallow_copy_environ.py:4:14: PLW1507 [*] Shallow copy of `os.environ` via `copy.copy(os.environ)` | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1508_invalid_envvar_default.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1508_invalid_envvar_default.py.snap index 9490733158..cccf6cc290 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1508_invalid_envvar_default.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1508_invalid_envvar_default.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- invalid_envvar_default.py:3:29: PLW1508 Invalid type for environment variable default; expected `str` or `None` | @@ -48,5 +49,3 @@ invalid_envvar_default.py:14:17: PLW1508 Invalid type for environment variable d 14 | os.getenv("AA", 1 if Z else "BAR") # [invalid-envvar-default] | ^^^^^^^^^^^^^^^^^ PLW1508 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1509_subprocess_popen_preexec_fn.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1509_subprocess_popen_preexec_fn.py.snap index fd540da0f6..8a03622b19 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1509_subprocess_popen_preexec_fn.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1509_subprocess_popen_preexec_fn.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- subprocess_popen_preexec_fn.py:9:18: PLW1509 `preexec_fn` argument is unsafe when using threads | @@ -38,5 +39,3 @@ subprocess_popen_preexec_fn.py:12:26: PLW1509 `preexec_fn` argument is unsafe wh 13 | 14 | # Non-errors. | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1510_subprocess_run_without_check.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1510_subprocess_run_without_check.py.snap index 7419c16569..275cf6d41a 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1510_subprocess_run_without_check.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1510_subprocess_run_without_check.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- subprocess_run_without_check.py:4:1: PLW1510 [*] `subprocess.run` without explicit `check` argument | @@ -83,5 +84,3 @@ subprocess_run_without_check.py:10:1: PLW1510 [*] `subprocess.run` without expli 11 11 | 12 12 | # Non-errors. 13 13 | subprocess.run("ls", check=True) - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1514_unspecified_encoding.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1514_unspecified_encoding.py.snap index 9b6ebb6c85..cd39d99241 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1514_unspecified_encoding.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1514_unspecified_encoding.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- unspecified_encoding.py:8:1: PLW1514 [*] `open` in text mode without explicit `encoding` argument | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1641_eq_without_hash.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1641_eq_without_hash.py.snap index 416ed71902..94cf3bf44f 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1641_eq_without_hash.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW1641_eq_without_hash.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- eq_without_hash.py:1:7: PLW1641 Object does not implement `__hash__` method | @@ -8,5 +9,3 @@ eq_without_hash.py:1:7: PLW1641 Object does not implement `__hash__` method 2 | def __init__(self): 3 | self.name = "monty" | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW2101_useless_with_lock.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW2101_useless_with_lock.py.snap index 0715c3e5d8..9adf2b8cf5 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW2101_useless_with_lock.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW2101_useless_with_lock.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- useless_with_lock.py:5:6: PLW2101 Threading lock directly created in `with` statement has no effect | @@ -97,5 +98,3 @@ useless_with_lock.py:35:6: PLW2101 Threading lock directly created in `with` sta | ^^^^^^^^^^^^^^^^^^ PLW2101 36 | ... | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW2901_redefined_loop_name.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW2901_redefined_loop_name.py.snap index ee9c609b64..e834d0c89f 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW2901_redefined_loop_name.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW2901_redefined_loop_name.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- redefined_loop_name.py:6:9: PLW2901 Outer `for` loop variable `i` overwritten by inner `for` loop target | @@ -248,5 +249,3 @@ redefined_loop_name.py:180:5: PLW2901 `for` loop variable `a.i` overwritten by a 180 | a.i = 2 # error | ^^^ PLW2901 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW3201_bad_dunder_method_name.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW3201_bad_dunder_method_name.py.snap index a98abee052..1ac8bee6ed 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW3201_bad_dunder_method_name.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW3201_bad_dunder_method_name.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- bad_dunder_method_name.py:5:9: PLW3201 Dunder method `_init_` has no special meaning in Python 3 | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW3301_nested_min_max.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW3301_nested_min_max.py.snap index ab395e0472..b4043cd22f 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW3301_nested_min_max.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW3301_nested_min_max.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- nested_min_max.py:2:1: PLW3301 [*] Nested `min` calls can be flattened | diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__allow_magic_value_types.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__allow_magic_value_types.snap index 31a4c8eda0..f857130221 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__allow_magic_value_types.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__allow_magic_value_types.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- magic_value_comparison.py:56:12: PLR2004 Magic value used in comparison, consider replacing `-2.0` with a constant variable | @@ -45,5 +46,3 @@ magic_value_comparison.py:92:18: PLR2004 Magic value used in comparison, conside | ^^^^^^^^^^^^ PLR2004 93 | pass | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__continue_in_finally.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__continue_in_finally.snap index 8b0ac4063f..6a195c7775 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__continue_in_finally.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__continue_in_finally.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- continue_in_finally.py:5:9: PLE0116 `continue` not supported inside `finally` clause | @@ -124,5 +125,3 @@ continue_in_finally.py:95:17: PLE0116 `continue` not supported inside `finally` 95 | continue # [continue-in-finally] | ^^^^^^^^ PLE0116 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_args.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_args.snap index 440f2dafeb..bdc4b307ea 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_args.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_args.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_arguments_params.py:3:5: PLR0913 Too many arguments in function definition (6 > 4) | @@ -18,5 +19,3 @@ too_many_arguments_params.py:9:5: PLR0913 Too many arguments in function definit | ^ PLR0913 10 | pass | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_args_with_dummy_variables.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_args_with_dummy_variables.snap index 865d4d0abd..6f978e8024 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_args_with_dummy_variables.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_args_with_dummy_variables.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_arguments_params.py:9:5: PLR0913 Too many arguments in function definition (6 > 5) | @@ -9,5 +10,3 @@ too_many_arguments_params.py:9:5: PLR0913 Too many arguments in function definit | ^ PLR0913 10 | pass | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_boolean_expressions.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_boolean_expressions.snap index 141ee9e4c5..c5da76519d 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_boolean_expressions.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_boolean_expressions.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_boolean_expressions.py:11:6: PLR0916 Too many Boolean expressions (6 > 5) | @@ -210,5 +211,3 @@ too_many_boolean_expressions.py:51:6: PLR0916 Too many Boolean expressions (26 > 52 | ... 53 | else: | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_branches.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_branches.snap index e35b9cad8e..10c8978d84 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_branches.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_branches.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_branches_params.py:6:5: PLR0912 Too many branches (2 > 1) | @@ -18,5 +19,3 @@ too_many_branches_params.py:15:9: PLR0912 Too many branches (2 > 1) 16 | if x: 17 | pass | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_positional_args.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_positional_args.snap index ae8e6bf796..fd65b9bb84 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_positional_args.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_positional_args.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_positional_params.py:3:5: PLR0917 Too many positional arguments (7/4) | @@ -18,5 +19,3 @@ too_many_positional_params.py:9:5: PLR0917 Too many positional arguments (7/4) | ^ PLR0917 10 | pass | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_return_statements.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_return_statements.snap index 974b8b8001..36c4a29056 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_return_statements.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_return_statements.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_return_statements_params.py:1:5: PLR0911 Too many return statements (2 > 1) | @@ -8,5 +9,3 @@ too_many_return_statements_params.py:1:5: PLR0911 Too many return statements (2 2 | if x == 1: 3 | return | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_statements.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_statements.snap index 017e2b2b8b..9b524750b6 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_statements.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_statements.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_statements_params.py:6:5: PLR0915 Too many statements (2 > 1) | @@ -8,5 +9,3 @@ too_many_statements_params.py:6:5: PLR0915 Too many statements (2 > 1) 7 | def g(x): 8 | pass | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__too_many_locals.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__too_many_locals.snap index 99a0f2a960..65eacdcd81 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__too_many_locals.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__too_many_locals.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_locals.py:20:5: PLR0914 Too many local variables (16/15) | @@ -8,5 +9,3 @@ too_many_locals.py:20:5: PLR0914 Too many local variables (16/15) 21 | first = 1 22 | second = 2 | - - diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__too_many_public_methods.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__too_many_public_methods.snap index f86c673e9b..e1acc49d25 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__too_many_public_methods.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__too_many_public_methods.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs +snapshot_kind: text --- too_many_public_methods.py:1:1: PLR0904 Too many public methods (10 > 7) | @@ -42,5 +43,3 @@ too_many_public_methods.py:1:1: PLR0904 Too many public methods (10 > 7) 36 | 37 | class Small: | - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP001.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP001.py.snap index 1b1e0774ee..92cfb8e021 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP001.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP001.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP001.py:2:5: UP001 [*] `__metaclass__ = type` is implied | @@ -35,5 +36,3 @@ UP001.py:6:5: UP001 [*] `__metaclass__ = type` is implied 7 6 | 8 7 | def __init__(self) -> None: 9 8 | pass - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP003.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP003.py.snap index 4ea8ce1491..000e7e2b2e 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP003.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP003.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP003.py:1:1: UP003 [*] Use `str` instead of `type(...)` | @@ -110,5 +111,3 @@ UP003.py:14:29: UP003 [*] Use `str` instead of `type(...)` 13 13 | # Regression test for: https://github.com/astral-sh/ruff/issues/7455#issuecomment-1722459841 14 |-assert isinstance(fullname, type("")is not True) 14 |+assert isinstance(fullname, str is not True) - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP004.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP004.py.snap index 0c4b87c5d9..e042b8c1ff 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP004.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP004.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP004.py:5:9: UP004 [*] Class `A` inherits from `object` | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP005.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP005.py.snap index 21d08d5d28..9f6ddec478 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP005.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP005.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP005.py:6:9: UP005 [*] `assertEquals` is deprecated, use `assertEqual` | @@ -76,5 +77,3 @@ UP005.py:10:9: UP005 [*] `assertNotRegexpMatches` is deprecated, use `assertNotR 9 9 | self.failUnlessAlmostEqual(1, 1.1) 10 |- self.assertNotRegexpMatches("a", "b") 10 |+ self.assertNotRegex("a", "b") - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_0.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_0.py.snap index 283b6f1b0c..58bd2d2497 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_0.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP006_0.py:4:10: UP006 [*] Use `list` instead of `typing.List` for type annotation | @@ -280,5 +281,3 @@ UP006_0.py:65:10: UP006 [*] Use `collections.defaultdict` instead of `typing.Def 65 |-def f(x: typing.DefaultDict[str, str]) -> None: 66 |+def f(x: defaultdict[str, str]) -> None: 66 67 | ... - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_1.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_1.py.snap index 23d2e79f9a..f262fe0498 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_1.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP006_1.py:9:10: UP006 [*] Use `collections.defaultdict` instead of `typing.DefaultDict` for type annotation | @@ -16,5 +17,3 @@ UP006_1.py:9:10: UP006 [*] Use `collections.defaultdict` instead of `typing.Defa 9 |-def f(x: typing.DefaultDict[str, str]) -> None: 9 |+def f(x: defaultdict[str, str]) -> None: 10 10 | ... - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_2.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_2.py.snap index a290ac1b56..adc1afe1ef 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_2.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP006_2.py:7:10: UP006 Use `collections.defaultdict` instead of `typing.DefaultDict` for type annotation | @@ -8,5 +9,3 @@ UP006_2.py:7:10: UP006 Use `collections.defaultdict` instead of `typing.DefaultD 8 | ... | = help: Replace with `collections.defaultdict` - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_3.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_3.py.snap index 6e49fa8235..b9d64a074b 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_3.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP006_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP006_3.py:7:11: UP006 [*] Use `collections.defaultdict` instead of `typing.DefaultDict` for type annotation | @@ -16,5 +17,3 @@ UP006_3.py:7:11: UP006 [*] Use `collections.defaultdict` instead of `typing.Defa 7 |-def f(x: "typing.DefaultDict[str, str]") -> None: 7 |+def f(x: "defaultdict[str, str]") -> None: 8 8 | ... - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP007.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP007.py.snap index a607401c39..982ce1d0dd 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP007.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP007.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP007.py:6:10: UP007 [*] Use `X | Y` for type annotations | @@ -430,5 +431,3 @@ UP007.py:120:10: UP007 [*] Use `X | Y` for type annotations 120 |-def f(x: Union[int, str, bytes]) -> None: 120 |+def f(x: int | str | bytes) -> None: 121 121 | ... - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP008.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP008.py.snap index da6e68284d..45c029d2d0 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP008.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP008.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP008.py:17:23: UP008 [*] Use `super()` instead of `super(__class__, self)` | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_0.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_0.py.snap index c4e69c7ea1..7084576892 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_0.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP009_0.py:1:1: UP009 [*] UTF-8 encoding declaration is unnecessary | @@ -14,5 +15,3 @@ UP009_0.py:1:1: UP009 [*] UTF-8 encoding declaration is unnecessary 1 |-# coding=utf8 2 1 | 3 2 | print("Hello world") - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_1.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_1.py.snap index b1b25e0d32..62c16d74a6 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_1.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP009_1.py:2:1: UP009 [*] UTF-8 encoding declaration is unnecessary | @@ -16,5 +17,3 @@ UP009_1.py:2:1: UP009 [*] UTF-8 encoding declaration is unnecessary 2 |-# -*- coding: utf-8 -*- 3 2 | 4 3 | print('Hello world') - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_10.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_10.py.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_10.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_10.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_2.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_2.py.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_2.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_2.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_3.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_3.py.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_3.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_3.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_4.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_4.py.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_4.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_4.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_5.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_5.py.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_5.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_5.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_6.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_6.py.snap index 01bbf87c00..b588ce12d9 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_6.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_6.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP009_6.py:1:2: UP009 [*] UTF-8 encoding declaration is unnecessary | @@ -14,5 +15,3 @@ UP009_6.py:1:2: UP009 [*] UTF-8 encoding declaration is unnecessary 2 1 | print("Hello world") 3 2 | 4 3 | """ - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_7.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_7.py.snap index 8439a0715c..ee89c5f61a 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_7.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_7.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP009_7.py:1:2: UP009 [*] UTF-8 encoding declaration is unnecessary | @@ -14,5 +15,3 @@ UP009_7.py:1:2: UP009 [*] UTF-8 encoding declaration is unnecessary 2 1 | print("Hello world") 3 2 | 4 3 | """ - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_8.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_8.py.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_8.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_8.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_9.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_9.py.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_9.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_9.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP010.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP010.py.snap index d72c8e2fbb..3b081afd9d 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP010.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP010.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP010.py:1:1: UP010 [*] Unnecessary `__future__` imports `generators`, `nested_scopes` for target Python version | @@ -181,5 +182,3 @@ UP010.py:14:5: UP010 [*] Unnecessary `__future__` import `generators` for target 13 13 | from __future__ import generator_stop 14 |- from __future__ import invalid_module, generators 14 |+ from __future__ import invalid_module - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP011.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP011.py.snap index e672749216..7fb2e270ca 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP011.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP011.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP011.py:5:21: UP011 [*] Unnecessary parentheses to `functools.lru_cache` | @@ -77,5 +78,3 @@ UP011.py:21:21: UP011 [*] Unnecessary parentheses to `functools.lru_cache` 22 22 | @other_decorator 23 23 | def fixme(): 24 24 | pass - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP012.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP012.py.snap index f19df78488..47cb1dc815 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP012.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP012.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP012.py:2:1: UP012 [*] Unnecessary call to `encode` as UTF-8 | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP013.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP013.py.snap index d03ec38c48..73d1bf929c 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP013.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP013.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP013.py:5:1: UP013 [*] Convert `MyType` from `TypedDict` functional to class syntax | @@ -251,5 +252,3 @@ UP013.py:43:1: UP013 [*] Convert `MyType` from `TypedDict` functional to class s 43 |-MyType = TypedDict("MyType", dict()) 43 |+class MyType(TypedDict): 44 |+ pass - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP014.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP014.py.snap index 71ce3308f5..9697b8e885 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP014.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP014.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP014.py:5:1: UP014 [*] Convert `MyType` from `NamedTuple` functional to class syntax | @@ -108,5 +109,3 @@ UP014.py:20:1: UP014 [*] Convert `MyType` from `NamedTuple` functional to class 21 23 | 22 24 | # unfixable 23 25 | MyType = typing.NamedTuple("MyType", [("a", int)], [("b", str)]) - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP015.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP015.py.snap index 22e3044b55..40e6e2a2b2 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP015.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP015.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP015.py:1:1: UP015 [*] Unnecessary open mode parameters | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP015_1.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP015_1.py.snap index 03a9caacb8..41be987802 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP015_1.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP015_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP015_1.py:3:5: UP015 [*] Unnecessary open mode parameters | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP018.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP018.py.snap index a0a1f44188..c6a6796bea 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP018.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP018.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP018.py:37:1: UP018 [*] Unnecessary `str` call (rewrite as a literal) | @@ -392,5 +393,3 @@ UP018.py:61:1: UP018 [*] Unnecessary `float` call (rewrite as a literal) 60 60 | float(+1.0) 61 |-float(-1.0) 61 |+-1.0 - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP019.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP019.py.snap index 389ee5e973..7d61f428e1 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP019.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP019.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP019.py:7:22: UP019 [*] `typing.Text` is deprecated, use `str` | @@ -70,5 +71,3 @@ UP019.py:19:29: UP019 [*] `typing.Text` is deprecated, use `str` 19 |-def print_fourth_word(word: Goodbye) -> None: 19 |+def print_fourth_word(word: str) -> None: 20 20 | print(word) - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP020.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP020.py.snap index d8d5ed3948..ed65106f25 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP020.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP020.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP020.py:3:6: UP020 [*] Use builtin `open` | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP021.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP021.py.snap index 128a9c9d73..70eb08d6ae 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP021.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP021.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP021.py:5:25: UP021 [*] `universal_newlines` is deprecated, use `text` | @@ -61,5 +62,3 @@ UP021.py:7:14: UP021 [*] `universal_newlines` is deprecated, use `text` 8 8 | 9 9 | # OK 10 10 | subprocess.run(["foo"], check=True) - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP022.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP022.py.snap index c6680d1ce5..670cbbaee6 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP022.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP022.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP022.py:4:10: UP022 [*] Prefer `capture_output` over sending `stdout` and `stderr` to `PIPE` | @@ -215,5 +216,3 @@ UP022.py:46:10: UP022 Prefer `capture_output` over sending `stdout` and `stderr` 50 | # OK | = help: Replace with `capture_output` keyword argument - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP023.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP023.py.snap index 2f5d2cb75b..319ac21850 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP023.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP023.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP023.py:2:1: UP023 [*] `cElementTree` is deprecated, use `ElementTree` | @@ -204,5 +205,3 @@ UP023.py:24:32: UP023 [*] `cElementTree` is deprecated, use `ElementTree` 25 25 | 26 26 | # The below items should NOT be changed. 27 27 | import xml.etree.cElementTree - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_0.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_0.py.snap index bb7879fbc7..70898be69c 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_0.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP024_0.py:6:8: UP024 [*] Replace aliased errors with `OSError` | @@ -301,5 +302,3 @@ UP024_0.py:114:8: UP024 [*] Replace aliased errors with `OSError` 114 |-except os.error: 114 |+except OSError: 115 115 | pass - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_1.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_1.py.snap index d0a723a1b9..202e701dc7 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_1.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP024_1.py:5:8: UP024 [*] Replace aliased errors with `OSError` | @@ -68,5 +69,3 @@ UP024_1.py:12:8: UP024 [*] Replace aliased errors with `OSError` 16 |-): 12 |+except OSError: 17 13 | pass - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_2.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_2.py.snap index eecdf5fea5..31aebee5a0 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_2.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP024_2.py:10:7: UP024 [*] Replace aliased errors with `OSError` | @@ -400,5 +401,3 @@ UP024_2.py:50:7: UP024 [*] Replace aliased errors with `OSError` 49 49 | raise EnvironmentError(1) 50 |-raise IOError(1, 2) 50 |+raise OSError(1, 2) - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_3.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_3.py.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_3.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_3.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_4.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_4.py.snap index 40f6fbea4b..c3ea530f1d 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_4.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_4.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP024_4.py:9:8: UP024 [*] Replace aliased errors with `OSError` | @@ -18,5 +19,3 @@ UP024_4.py:9:8: UP024 [*] Replace aliased errors with `OSError` 9 |-except (socket.error, exceptions.OperationalError): 9 |+except (OSError, exceptions.OperationalError): 10 10 | return HttpResponseServerError("cache: cannot connect to broker.") - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP025.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP025.py.snap index e5cd73cc97..92a7f3e261 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP025.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP025.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP025.py:1:1: UP025 [*] Remove unicode literals from strings | @@ -298,5 +299,3 @@ UP025.py:28:8: UP025 [*] Remove unicode literals from strings 27 27 | f"foo"u"bar" # OK 28 |-f"foo" u"bar" # OK 28 |+f"foo" "bar" # OK - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP026.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP026.py.snap index 56d9e70f2c..e1f907ac2e 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP026.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP026.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP026.py:3:12: UP026 [*] `mock` is deprecated, use `unittest.mock` | @@ -603,5 +604,3 @@ UP026.py:93:5: UP026 [*] `mock` is deprecated, use `unittest.mock` 92 92 | # Error (`mock.Mock()`). 93 |-x = mock.mock.Mock() 93 |+x = mock.Mock() - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP027.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP027.py.snap index c177a26b81..526b2ea846 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP027.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP027.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP027.py:2:17: UP027 [*] Replace unpacked list comprehension with a generator expression | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP028_0.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP028_0.py.snap index b3c29c378c..b29e86af38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP028_0.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP028_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP028_0.py:2:5: UP028 [*] Replace `yield` over `for` loop with `yield from` | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP028_1.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP028_1.py.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP028_1.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP028_1.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP029.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP029.py.snap index 5dcbd5e6c9..67f4c5ab7f 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP029.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP029.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP029.py:1:1: UP029 [*] Unnecessary builtin import: `*` | @@ -74,5 +75,3 @@ UP029.py:5:1: UP029 [*] Unnecessary builtin import: `open` 6 5 | import io 7 6 | import six 8 7 | import six.moves - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP030_0.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP030_0.py.snap index 936bfd6887..28e2b01264 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP030_0.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP030_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP030_0.py:3:1: UP030 [*] Use implicit references for positional format fields | @@ -499,5 +500,3 @@ UP030_0.py:61:1: UP030 [*] Use implicit references for positional format fields 60 60 | 61 |-"{1}_{0}".format(1, 2) 61 |+"{}_{}".format(2, 1) - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP030_1.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP030_1.py.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP030_1.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP030_1.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP031_0.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP031_0.py.snap index 2b72d13959..49140e1a62 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP031_0.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP031_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP031_0.py:4:7: UP031 [*] Use format specifiers instead of percent format | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP031_1.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP031_1.py.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP031_1.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP031_1.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_0.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_0.py.snap index 487e053727..5e61f226d7 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_0.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP032_0.py:5:1: UP032 [*] Use f-string instead of `format` call | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_1.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_1.py.snap index 221526314e..dbb0955b48 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_1.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP032_1.py:1:1: UP032 [*] Use f-string instead of `format` call | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_2.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_2.py.snap index 7ad4096da6..a852bdc242 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_2.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP032_2.py:2:1: UP032 [*] Use f-string instead of `format` call | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_3.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_3.py.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_3.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_3.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP033_0.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP033_0.py.snap index 8d6d1475d2..bef261b87e 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP033_0.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP033_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP033_0.py:4:21: UP033 [*] Use `@functools.cache` instead of `@functools.lru_cache(maxsize=None)` | @@ -58,5 +59,3 @@ UP033_0.py:15:21: UP033 [*] Use `@functools.cache` instead of `@functools.lru_ca 16 16 | @other_decorator 17 17 | def fixme(): 18 18 | pass - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP033_1.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP033_1.py.snap index 5b106d2541..5cf350c7e0 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP033_1.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP033_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP033_1.py:4:11: UP033 [*] Use `@functools.cache` instead of `@functools.lru_cache(maxsize=None)` | @@ -71,5 +72,3 @@ UP033_1.py:15:11: UP033 [*] Use `@functools.cache` instead of `@functools.lru_ca 16 16 | @other_decorator 17 17 | def fixme(): 18 18 | pass - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP034.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP034.py.snap index 52e90884c1..98b05d49ac 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP034.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP034.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP034.py:2:7: UP034 [*] Avoid extraneous parentheses | @@ -205,5 +206,3 @@ UP034.py:39:7: UP034 [*] Avoid extraneous parentheses 40 40 | 41 41 | # OK 42 42 | print("foo") - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP035.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP035.py.snap index e83b5d88e3..b63110f623 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP035.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP035.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP035.py:2:1: UP035 [*] Import from `collections.abc` instead: `Mapping` | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_0.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_0.py.snap index fbfadc1258..9c23af8835 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_0.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP036_0.py:3:4: UP036 [*] Version block is outdated for minimum Python version | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_1.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_1.py.snap index e89393c5a4..9a7f623e26 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_1.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP036_1.py:3:4: UP036 [*] Version block is outdated for minimum Python version | @@ -291,5 +292,3 @@ UP036_1.py:75:10: UP036 [*] Version block is outdated for minimum Python version 75 |- elif sys.version_info > (3,): 75 |+ else: 76 76 | print(3) - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_2.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_2.py.snap index 0a280dc505..964c71c65d 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_2.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_2.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP036_2.py:4:4: UP036 [*] Version block is outdated for minimum Python version | @@ -276,5 +277,3 @@ UP036_2.py:54:4: UP036 [*] Version block is outdated for minimum Python version 58 55 | 59 56 | if sys.version_info[0] > "2": 60 57 | 3 - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_3.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_3.py.snap index d22d368074..aea4432b41 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_3.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP036_3.py:3:15: UP036 [*] Version block is outdated for minimum Python version | @@ -74,5 +75,3 @@ UP036_3.py:23:15: UP036 [*] Version block is outdated for minimum Python version 23 |-if sys.version_info < (3,0): print("PY2!") 24 |-else : print("PY3!") 23 |+print("PY3!") - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_4.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_4.py.snap index db21eecad4..0d226c5168 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_4.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_4.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP036_4.py:4:8: UP036 [*] Version block is outdated for minimum Python version | @@ -169,5 +170,3 @@ UP036_4.py:42:8: UP036 [*] Version block is outdated for minimum Python version 44 |- elif foo: 42 |+ if foo: 45 43 | cmd = [sys.executable, "-m", "test", "-j0"] - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_5.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_5.py.snap index 5a121f09e4..62e5d77f2e 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_5.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP036_5.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP036_5.py:3:4: UP036 [*] Version block is outdated for minimum Python version | @@ -66,5 +67,3 @@ UP036_5.py:18:4: UP036 [*] Version block is outdated for minimum Python version 23 |+ else: 24 |+ print(3) 25 |+ return None - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP037_0.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP037_0.py.snap index 4b4eb9e716..c323896def 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP037_0.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP037_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP037_0.py:18:14: UP037 [*] Remove quotes from type annotation | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP037_1.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP037_1.py.snap index 57379b20ed..63db5a46b1 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP037_1.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP037_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP037_1.py:9:8: UP037 [*] Remove quotes from type annotation | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP038.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP038.py.snap index 7a5117ab07..d29c4723fe 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP038.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP038.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP038.py:1:1: UP038 [*] Use `X | Y` in `isinstance` call instead of `(X, Y)` | @@ -33,5 +34,3 @@ UP038.py:2:1: UP038 [*] Use `X | Y` in `issubclass` call instead of `(X, Y)` 3 3 | 4 4 | isinstance(1, int) # OK 5 5 | issubclass("yes", int) # OK - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP039.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP039.py.snap index ff6299b6e9..66a8284139 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP039.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP039.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP039.py:2:8: UP039 [*] Unnecessary parentheses after class definition | @@ -93,5 +94,3 @@ UP039.py:21:8: UP039 [*] Unnecessary parentheses after class definition 22 22 | pass 23 23 | 24 24 | # OK - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP040.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP040.py.snap index 03c7ea34d3..bb6346a05c 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP040.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP040.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP040.py:5:1: UP040 [*] Type alias `x` uses `TypeAlias` annotation instead of the `type` keyword | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP040.pyi.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP040.pyi.snap index 9615265f86..90329fd870 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP040.pyi.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP040.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP040.pyi:6:1: UP040 [*] Type alias `x` uses `TypeAlias` annotation instead of the `type` keyword | @@ -34,5 +35,3 @@ UP040.pyi:7:1: UP040 [*] Type alias `x` uses `TypeAlias` annotation instead of t 6 6 | x: typing.TypeAlias = int 7 |-x: TypeAlias = int 7 |+type x = int - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP041.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP041.py.snap index 68f66dc6de..563ec5fd39 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP041.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP041.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP041.py:5:8: UP041 [*] Replace aliased errors with `TimeoutError` | @@ -140,5 +141,3 @@ UP041.py:42:8: UP041 [*] Replace aliased errors with `TimeoutError` 43 43 | pass 44 44 | 45 45 | # These should not change - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP042.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP042.py.snap index e7bff6e269..59de11c176 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP042.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP042.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP042.py:4:7: UP042 [*] Class A inherits from both `str` and `enum.Enum` | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP043.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP043.py.snap index 65243085cc..3c64e318f1 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP043.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP043.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP043.py:4:15: UP043 [*] Unnecessary default type arguments | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__async_timeout_error_alias_not_applied_py310.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__async_timeout_error_alias_not_applied_py310.snap index 3197391b53..3e307f7aa2 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__async_timeout_error_alias_not_applied_py310.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__async_timeout_error_alias_not_applied_py310.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP041.py:10:8: UP041 [*] Replace aliased errors with `TimeoutError` | @@ -80,5 +81,3 @@ UP041.py:34:8: UP041 [*] Replace aliased errors with `TimeoutError` 35 35 | pass 36 36 | 37 37 | # First should change, second should not - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__datetime_utc_alias_py311.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__datetime_utc_alias_py311.snap index 9cea3d7563..0794f714e4 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__datetime_utc_alias_py311.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__datetime_utc_alias_py311.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP017.py:10:11: UP017 [*] Use `datetime.UTC` alias | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_keep_runtime_typing_p310.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_keep_runtime_typing_p310.snap index dc9d6c6a7f..a1794b6f27 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_keep_runtime_typing_p310.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_keep_runtime_typing_p310.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- future_annotations.py:34:18: UP006 [*] Use `list` instead of `List` for type annotation | @@ -71,5 +72,3 @@ future_annotations.py:42:38: UP006 [*] Use `list` instead of `List` for type ann 41 41 | 42 |-MyList: TypeAlias = Union[List[int], List[str]] 42 |+MyList: TypeAlias = Union[List[int], list[str]] - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_keep_runtime_typing_p37.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_keep_runtime_typing_p37.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_keep_runtime_typing_p37.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_keep_runtime_typing_p37.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_585_p37.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_585_p37.snap index 71eba348b3..afe64ea69a 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_585_p37.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_585_p37.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- future_annotations.py:34:18: UP006 [*] Use `list` instead of `List` for type annotation | @@ -19,5 +20,3 @@ future_annotations.py:34:18: UP006 [*] Use `list` instead of `List` for type ann 35 35 | y = List[int]() 36 36 | y.append(x) 37 37 | return y - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_585_py310.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_585_py310.snap index dc9d6c6a7f..a1794b6f27 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_585_py310.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_585_py310.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- future_annotations.py:34:18: UP006 [*] Use `list` instead of `List` for type annotation | @@ -71,5 +72,3 @@ future_annotations.py:42:38: UP006 [*] Use `list` instead of `List` for type ann 41 41 | 42 |-MyList: TypeAlias = Union[List[int], List[str]] 42 |+MyList: TypeAlias = Union[List[int], list[str]] - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_604_p37.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_604_p37.snap index 442d20f7a5..ebd2b1f889 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_604_p37.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_604_p37.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- future_annotations.py:40:4: UP007 [*] Use `X | Y` for type annotations | @@ -18,5 +19,3 @@ future_annotations.py:40:4: UP007 [*] Use `X | Y` for type annotations 40 |+x: int | None = None 41 41 | 42 42 | MyList: TypeAlias = Union[List[int], List[str]] - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_604_py310.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_604_py310.snap index 386e009dfa..a010c8ef19 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_604_py310.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_pep_604_py310.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- future_annotations.py:40:4: UP007 [*] Use `X | Y` for type annotations | @@ -34,5 +35,3 @@ future_annotations.py:42:21: UP007 [*] Use `X | Y` for type annotations 41 41 | 42 |-MyList: TypeAlias = Union[List[int], List[str]] 42 |+MyList: TypeAlias = List[int] | List[str] - - diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__non_pep695_type_alias_not_applied_py311.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__non_pep695_type_alias_not_applied_py311.snap index 2bacb5d540..c996a51d38 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__non_pep695_type_alias_not_applied_py311.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__non_pep695_type_alias_not_applied_py311.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__preview.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__preview.snap index 79c32ccea2..4480794080 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__preview.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__preview.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP031_0.py:4:7: UP031 [*] Use format specifiers instead of percent format | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__unpack_pep_646_py311.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__unpack_pep_646_py311.snap index d6b1d6a69e..3407035b9a 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__unpack_pep_646_py311.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__unpack_pep_646_py311.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs +snapshot_kind: text --- UP044.py:6:17: UP044 [*] Use `*` for unpacking | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB101_FURB101.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB101_FURB101.py.snap index b3db05568d..7e1899006c 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB101_FURB101.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB101_FURB101.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB101.py:12:6: FURB101 `open` and `read` should be replaced by `Path("file.txt").read_text()` | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB103_FURB103.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB103_FURB103.py.snap index 7a25e91164..81a420fbc8 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB103_FURB103.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB103_FURB103.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB103.py:12:6: FURB103 `open` and `write` should be replaced by `Path("file.txt").write_text("test")` | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB105_FURB105.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB105_FURB105.py.snap index fc552a58e7..986f9ddb26 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB105_FURB105.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB105_FURB105.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB105.py:3:1: FURB105 [*] Unnecessary empty string passed to `print` | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB110_FURB110.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB110_FURB110.py.snap index 29e977193e..476f8ae222 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB110_FURB110.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB110_FURB110.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB110.py:1:5: FURB110 [*] Replace ternary `if` expression with `or` operator | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB113_FURB113.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB113_FURB113.py.snap index 07e89d33ac..5ab20d9d43 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB113_FURB113.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB113_FURB113.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB113.py:23:1: FURB113 [*] Use `nums.extend((1, 2))` instead of repeatedly calling `nums.append()` | @@ -345,5 +346,3 @@ FURB113.py:128:5: FURB113 Use `nums.extend((1, 2, 3))` instead of repeatedly cal | |__________________^ FURB113 | = help: Replace with `nums.extend((1, 2, 3))` - - diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB116_FURB116.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB116_FURB116.py.snap index 02e102a7ba..005971005c 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB116_FURB116.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB116_FURB116.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB116.py:6:7: FURB116 [*] Replace `oct` call with `f"{num:o}"` | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB118_FURB118.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB118_FURB118.py.snap index 97bf4e8b85..8cf0314f1f 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB118_FURB118.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB118_FURB118.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB118.py:2:13: FURB118 [*] Use `operator.invert` instead of defining a lambda | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB129_FURB129.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB129_FURB129.py.snap index 655f8d6959..faa3ec5314 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB129_FURB129.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB129_FURB129.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB129.py:7:18: FURB129 [*] Instead of calling `readlines()`, iterate over file object directly | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB131_FURB131.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB131_FURB131.py.snap index fcd3ecd84e..4e9058da5f 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB131_FURB131.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB131_FURB131.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB131.py:11:1: FURB131 [*] Prefer `clear` over deleting a full slice | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB132_FURB132.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB132_FURB132.py.snap index ac600b20be..4f3f51660f 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB132_FURB132.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB132_FURB132.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB132.py:12:1: FURB132 [*] Use `s.discard("x")` instead of check and `remove` | @@ -80,5 +81,3 @@ FURB132.py:32:1: FURB132 [*] Use `s.discard(f"{var}:{var}")` instead of check an 34 33 | 35 34 | 36 35 | def identity(x): - - diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB136_FURB136.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB136_FURB136.py.snap index bf698bafbf..0299299bc0 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB136_FURB136.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB136_FURB136.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB136.py:4:1: FURB136 [*] Replace `x if x > y else y` with `max(y, x)` | @@ -190,5 +191,3 @@ FURB136.py:22:1: FURB136 [*] Replace `if` expression with `max(y, x)` 24 |- > y 25 |-) else y # FURB136 22 |+max(y, x) # FURB136 - - diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB140_FURB140.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB140_FURB140.py.snap index 5fc72a0bc0..c9a123466a 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB140_FURB140.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB140_FURB140.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB140.py:7:1: FURB140 [*] Use `itertools.starmap` instead of the generator | @@ -193,6 +194,4 @@ FURB140.py:31:1: FURB140 [*] Use `itertools.starmap` instead of the generator 31 |+set(sm(foo, [(85, 60), (100, 80)])) 32 32 | 33 33 | # Non-errors. -34 34 | - - +34 34 | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB142_FURB142.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB142_FURB142.py.snap index cd781a8bbe..81965e9793 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB142_FURB142.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB142_FURB142.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB142.py:5:1: FURB142 [*] Use of `set.add()` in a for loop | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB145_FURB145.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB145_FURB145.py.snap index 388dfb2488..3cc3c1ece6 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB145_FURB145.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB145_FURB145.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB145.py:4:5: FURB145 [*] Prefer `copy` method over slicing | @@ -124,5 +125,3 @@ FURB145.py:9:7: FURB145 [*] Prefer `copy` method over slicing 10 10 | 11 11 | # False negatives. 12 12 | aa = a[:] # Type inference. - - diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB148_FURB148.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB148_FURB148.py.snap index 3cb94bc16b..76ccacebb2 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB148_FURB148.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB148_FURB148.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB148.py:14:17: FURB148 [*] `enumerate` value is unused, use `for x in range(len(y))` instead | @@ -439,5 +440,3 @@ FURB148.py:83:16: FURB148 [*] `enumerate` index is unused, use `for x in y` inst 84 84 | print(book) 85 85 | 86 86 | # OK - - diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB152_FURB152.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB152_FURB152.py.snap index 9933f51589..4714a3437b 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB152_FURB152.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB152_FURB152.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB152.py:3:5: FURB152 [*] Replace `3.14` with `math.pi` | @@ -376,5 +377,3 @@ FURB152.py:45:5: FURB152 [*] Replace `2.7182000000000001` with `math.e` 44 45 | 45 |-e = 2.7182000000000001 # FURB152 46 |+e = math.e # FURB152 - - diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB154_FURB154.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB154_FURB154.py.snap index a935e1ae3c..aa1be216fd 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB154_FURB154.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB154_FURB154.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB154.py:4:5: FURB154 [*] Use of repeated consecutive `global` | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB156_FURB156.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB156_FURB156.py.snap index 5be7c392e0..f9f12e934b 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB156_FURB156.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB156_FURB156.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB156.py:3:5: FURB156 [*] Use of hardcoded string charset | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB157_FURB157.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB157_FURB157.py.snap index e735d59f3a..cdf82865ff 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB157_FURB157.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB157_FURB157.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB157.py:5:9: FURB157 [*] Verbose expression in `Decimal` constructor | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB161_FURB161.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB161_FURB161.py.snap index 0085558579..d9385176d9 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB161_FURB161.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB161_FURB161.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB161.py:6:9: FURB161 [*] Use of `bin(x).count('1')` | @@ -187,5 +188,3 @@ FURB161.py:14:9: FURB161 [*] Use of `bin("10" "15").count('1')` 15 15 | 16 16 | count = x.bit_count() # OK 17 17 | count = (10).bit_count() # OK - - diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB163_FURB163.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB163_FURB163.py.snap index c305821cc9..32df4b1d7d 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB163_FURB163.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB163_FURB163.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB163.py:4:1: FURB163 [*] Prefer `math.log2(1)` over `math.log` with a redundant base | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB164_FURB164.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB164_FURB164.py.snap index 04340e219c..d07e82b376 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB164_FURB164.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB164_FURB164.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB164.py:7:5: FURB164 [*] Verbose method `from_float` in `Fraction` construction | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB166_FURB166.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB166_FURB166.py.snap index c78dbdb22c..4f698d4136 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB166_FURB166.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB166_FURB166.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB166.py:3:5: FURB166 [*] Use of `int` with explicit `base=2` after removing prefix | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB167_FURB167.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB167_FURB167.py.snap index a95fff1e09..a34ef22a7a 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB167_FURB167.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB167_FURB167.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB167.py:13:42: FURB167 [*] Use of regular expression alias `re.I` | @@ -41,5 +42,3 @@ FURB167.py:21:39: FURB167 [*] Use of regular expression alias `re.I` 21 |- if match("^hello", "hello world", I): 22 |+ if match("^hello", "hello world", re.IGNORECASE): 22 23 | pass - - diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB168_FURB168.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB168_FURB168.py.snap index 88aa3efb4e..c27d38bc58 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB168_FURB168.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB168_FURB168.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB168.py:5:4: FURB168 [*] Prefer `is` operator over `isinstance` to check if an object is `None` | @@ -158,6 +159,4 @@ FURB168.py:27:4: FURB168 [*] Prefer `is` operator over `isinstance` to check if 27 |+if foo is None: 28 28 | pass 29 29 | -30 30 | - - +30 30 | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB169_FURB169.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB169_FURB169.py.snap index ee9ee14f36..6db38df6cb 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB169_FURB169.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB169_FURB169.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB169.py:5:1: FURB169 [*] Compare the identities of `foo` and `None` instead of their respective types | @@ -251,6 +252,4 @@ FURB169.py:27:1: FURB169 [*] Compare the identities of `None` and `None` instead 27 |+None is not None 28 28 | 29 29 | # Ok. -30 30 | - - +30 30 | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB171_FURB171.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB171_FURB171.py.snap index 2b29e1e40a..7547b02958 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB171_FURB171.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB171_FURB171.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB171.py:3:4: FURB171 [*] Membership test against single-item container | @@ -119,5 +120,3 @@ FURB171.py:18:8: FURB171 [*] Membership test against single-item container 19 19 | print("Check the negated membership test") 20 20 | 21 21 | # Non-errors. - - diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB177_FURB177.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB177_FURB177.py.snap index a7034cc35a..e87eb04f57 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB177_FURB177.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB177_FURB177.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB177.py:5:5: FURB177 [*] Prefer `Path.cwd()` over `Path().resolve()` for current-directory lookups | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB180_FURB180.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB180_FURB180.py.snap index 0d683880ef..5ecf72dfa7 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB180_FURB180.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB180_FURB180.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB180.py:7:10: FURB180 [*] Use of `metaclass=abc.ABCMeta` to define abstract base class | @@ -76,6 +77,4 @@ FURB180.py:31:34: FURB180 [*] Use of `metaclass=abc.ABCMeta` to define abstract 31 |+class A3(B0, abc.ABC, before_metaclass=1): 32 32 | pass 33 33 | -34 34 | - - +34 34 | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB181_FURB181.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB181_FURB181.py.snap index cca7645c90..a3e4e1d363 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB181_FURB181.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB181_FURB181.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB181.py:19:1: FURB181 [*] Use of hashlib's `.digest().hex()` | @@ -335,5 +336,3 @@ FURB181.py:38:1: FURB181 [*] Use of hashlib's `.digest().hex()` 39 39 | 40 40 | # not yet supported 41 41 | h = sha256() - - diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB187_FURB187.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB187_FURB187.py.snap index e4d08fd9ee..8da31baa69 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB187_FURB187.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB187_FURB187.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB187.py:6:5: FURB187 [*] Use of assignment of `reversed` on list `l` | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB188_FURB188.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB188_FURB188.py.snap index ddcc3676ac..0ee585151c 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB188_FURB188.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB188_FURB188.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB188.py:7:5: FURB188 [*] Prefer `removesuffix` over conditionally replacing with slice. | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB189_FURB189.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB189_FURB189.py.snap index ca530033a8..714df9487f 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB189_FURB189.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB189_FURB189.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB189.py:17:9: FURB189 [*] Subclassing `dict` can be error prone, use `collections.UserDict` instead | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB192_FURB192.py.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB192_FURB192.py.snap index 2d962a82b9..cebfe0b17f 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB192_FURB192.py.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__FURB192_FURB192.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB192.py:3:1: FURB192 [*] Prefer `min` over `sorted()` to compute the minimum value in a sequence | diff --git a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__write_whole_file_python_39.snap b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__write_whole_file_python_39.snap index 445a83eda6..9a82d01f8e 100644 --- a/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__write_whole_file_python_39.snap +++ b/crates/ruff_linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__write_whole_file_python_39.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/refurb/mod.rs +snapshot_kind: text --- FURB103.py:12:6: FURB103 `open` and `write` should be replaced by `Path("file.txt").write_text("test")` | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__PY39_RUF013_RUF013_0.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__PY39_RUF013_RUF013_0.py.snap index 096eceb46b..2617077336 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__PY39_RUF013_RUF013_0.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__PY39_RUF013_RUF013_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF013_0.py:20:12: RUF013 [*] PEP 484 prohibits implicit `Optional` | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__PY39_RUF013_RUF013_1.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__PY39_RUF013_RUF013_1.py.snap index b15b7e1409..cf0db90939 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__PY39_RUF013_RUF013_1.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__PY39_RUF013_RUF013_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF013_1.py:4:12: RUF013 [*] PEP 484 prohibits implicit `Optional` | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF005_RUF005.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF005_RUF005.py.snap index 8e9c466eb6..a4251d40e3 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF005_RUF005.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF005_RUF005.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF005.py:4:1: RUF005 Consider `[*foo]` instead of concatenation | @@ -353,5 +354,3 @@ RUF005.py:61:4: RUF005 [*] Consider `[*a(), 'b']` instead of concatenation 62 62 | 63 63 | ### 64 64 | # Non-errors. - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF006_RUF006.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF006_RUF006.py.snap index 884e920dcb..707e27a8cd 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF006_RUF006.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF006_RUF006.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF006.py:6:5: RUF006 Store a reference to the return value of `asyncio.create_task` | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF007_RUF007.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF007_RUF007.py.snap index 653760b026..b536632bbf 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF007_RUF007.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF007_RUF007.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF007.py:16:1: RUF007 Prefer `itertools.pairwise()` over `zip()` when iterating over successive pairs | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF008_RUF008.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF008_RUF008.py.snap index 97ea363c77..02873f0c60 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF008_RUF008.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF008_RUF008.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF008.py:10:34: RUF008 Do not use mutable default values for dataclass attributes | @@ -20,5 +21,3 @@ RUF008.py:20:34: RUF008 Do not use mutable default values for dataclass attribut 21 | immutable_annotation: Sequence[int] = [] 22 | without_annotation = [] | - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF009_RUF009.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF009_RUF009.py.snap index 3d38dd0d51..b5f982f917 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF009_RUF009.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF009_RUF009.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF009.py:20:41: RUF009 Do not perform function call `default_function` in dataclass defaults | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF010_RUF010.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF010_RUF010.py.snap index fe2e4e3c74..969cafe0b7 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF010_RUF010.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF010_RUF010.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF010.py:9:4: RUF010 [*] Use explicit conversion flag | @@ -244,6 +245,4 @@ RUF010.py:35:20: RUF010 [*] Use explicit conversion flag 35 |+ f" that flows {obj!r} of type {type(obj)}.{additional_message}" # RUF010 36 36 | ) 37 37 | -38 38 | - - +38 38 | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF012_RUF012.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF012_RUF012.py.snap index c6c9873efc..dc8766424c 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF012_RUF012.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF012_RUF012.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF012.py:9:34: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | @@ -30,5 +31,3 @@ RUF012.py:25:26: RUF012 Mutable class attributes should be annotated with `typin 26 | perfectly_fine: list[int] = field(default_factory=list) 27 | class_variable: ClassVar[list[int]] = [] | - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_0.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_0.py.snap index 50bcc3df25..ded2a1770c 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_0.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF013_0.py:20:12: RUF013 [*] PEP 484 prohibits implicit `Optional` | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_1.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_1.py.snap index f2bf264ff5..c132eee6a9 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_1.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF013_1.py:4:12: RUF013 [*] PEP 484 prohibits implicit `Optional` | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_2.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_2.py.snap index 7f58cfd724..b3a37c0921 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_2.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_2.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_3.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_3.py.snap index f8172df9aa..2c90acd338 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_3.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_3.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF013_3.py:4:12: RUF013 [*] PEP 484 prohibits implicit `Optional` | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF015_RUF015.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF015_RUF015.py.snap index 7500f39c81..5fbad3a710 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF015_RUF015.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF015_RUF015.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF015.py:4:1: RUF015 [*] Prefer `next(iter(x))` over single element slice | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF016_RUF016.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF016_RUF016.py.snap index 5e69aaee10..3db5a468c3 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF016_RUF016.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF016_RUF016.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF016.py:20:13: RUF016 Indexed access to type `str` uses type `str` instead of an integer or slice | @@ -375,5 +376,3 @@ RUF016.py:94:17: RUF016 Indexed access to type `list` uses type `str` instead of 95 | 96 | # Cannot emit on invalid access using variable in index | - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF017_RUF017_0.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF017_RUF017_0.py.snap index aad3c2fed9..eaeb9c874d 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF017_RUF017_0.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF017_RUF017_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF017_0.py:5:1: RUF017 [*] Avoid quadratic list summation | @@ -171,5 +172,3 @@ RUF017_0.py:26:5: RUF017 [*] Avoid quadratic list summation 25 27 | def func(): 26 |- sum((factor.dims for factor in bases), []) 28 |+ functools.reduce(operator.iadd, (factor.dims for factor in bases), []) - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF017_RUF017_1.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF017_RUF017_1.py.snap index ff3b145e56..4622f8eb6e 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF017_RUF017_1.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF017_RUF017_1.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF017_1.py:1:1: RUF017 [*] Avoid quadratic list summation | @@ -13,5 +14,3 @@ RUF017_1.py:1:1: RUF017 [*] Avoid quadratic list summation 1 |+import functools 2 |+import operator 3 |+functools.reduce(operator.iadd, (factor.dims for factor in bases), []) - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF018_RUF018.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF018_RUF018.py.snap index d4ceedb624..b5cc262d51 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF018_RUF018.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF018_RUF018.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF018.py:2:9: RUF018 Avoid assignment expressions in `assert` statements | @@ -18,5 +19,3 @@ RUF018.py:3:12: RUF018 Avoid assignment expressions in `assert` statements 4 | 5 | # OK | - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF019_RUF019.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF019_RUF019.py.snap index f536eb250a..22702a5c56 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF019_RUF019.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF019_RUF019.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF019.py:3:4: RUF019 [*] Unnecessary key check before dictionary access | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF020_RUF020.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF020_RUF020.py.snap index 64fd30b4ed..683c802ab3 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF020_RUF020.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF020_RUF020.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF020.py:3:7: RUF020 [*] `Union[Never, T]` is equivalent to `T` | @@ -133,5 +134,3 @@ RUF020.py:8:7: RUF020 [*] `Union[NoReturn, T]` is equivalent to `T` 7 7 | Union[Union[Never, int], Union[NoReturn, int]] 8 |-Union[NoReturn, int, float] 8 |+Union[int, float] - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF021_RUF021.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF021_RUF021.py.snap index 0660b0b97f..300a19e072 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF021_RUF021.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF021_RUF021.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF021.py:12:10: RUF021 [*] Parenthesize `a and b` expressions when chaining `and` and `or` together, to make the precedence clear | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF022_RUF022.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF022_RUF022.py.snap index c886b91ccf..c7d3bbf1a9 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF022_RUF022.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF022_RUF022.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF022.py:5:11: RUF022 [*] `__all__` is not sorted | @@ -1076,5 +1077,3 @@ RUF022.py:253:11: RUF022 [*] `__all__` is not sorted 263 263 | # strange multiline comment comment 2a 264 264 | # strange multiline comment 2b 265 265 | , - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF023_RUF023.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF023_RUF023.py.snap index 7365bb1259..72437c6a2b 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF023_RUF023.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF023_RUF023.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF023.py:6:17: RUF023 [*] `Klass.__slots__` is not sorted | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF024_RUF024.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF024_RUF024.py.snap index f083f1920f..df1bc34856 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF024_RUF024.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF024_RUF024.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF024.py:9:1: RUF024 [*] Do not pass mutable objects as values to `dict.fromkeys` | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF026_RUF026.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF026_RUF026.py.snap index 100ff9db32..6e40ef428e 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF026_RUF026.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF026_RUF026.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF026.py:11:5: RUF026 [*] `default_factory` is a positional-only argument to `defaultdict` | @@ -264,6 +265,4 @@ RUF026.py:75:5: RUF026 [*] `default_factory` is a positional-only argument to `d 76 |+ tuple, member=1, 78 77 | ) # RUF026 79 78 | -80 79 | - - +80 79 | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_0.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_0.py.snap index ca858cdcda..f7d533bd90 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_0.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_0.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF027_0.py:5:7: RUF027 [*] Possible f-string without an `f` prefix | @@ -315,5 +316,3 @@ RUF027_0.py:74:9: RUF027 [*] Possible f-string without an `f` prefix 73 73 | a = 4 74 |- b = "{a:b} {a:^5}" 74 |+ b = f"{a:b} {a:^5}" - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_1.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_1.py.snap index 7f58cfd724..b3a37c0921 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_1.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_1.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_2.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_2.py.snap index 7f58cfd724..b3a37c0921 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_2.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_2.py.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF028_RUF028.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF028_RUF028.py.snap index a2846ab41f..c3504d7828 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF028_RUF028.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF028_RUF028.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF028.py:3:9: RUF028 [*] This suppression comment is invalid because it cannot be in an expression, pattern, argument list, or other non-statement | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF029_RUF029.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF029_RUF029.py.snap index 34cbd80ea6..dbd3b6c632 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF029_RUF029.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF029_RUF029.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF029.py:38:11: RUF029 Function `fail_1a` is declared `async`, but doesn't `await` or use `async` features. | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF030_RUF030.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF030_RUF030.py.snap index aeea27858e..f1db8a36e3 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF030_RUF030.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF030_RUF030.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF030.py:6:14: RUF030 [*] `print()` expression in `assert` statement is likely unintentional | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF031_RUF031.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF031_RUF031.py.snap index c6e934cddd..68f0960074 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF031_RUF031.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF031_RUF031.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF031.py:2:3: RUF031 [*] Avoid parentheses for tuples in subscripts | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF032_RUF032.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF032_RUF032.py.snap index 8186c77789..626a673032 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF032_RUF032.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF032_RUF032.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF032.py:6:17: RUF032 [*] `Decimal()` called with float literal argument | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF033_RUF033.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF033_RUF033.py.snap index a5b42e3f4a..fe62f6c915 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF033_RUF033.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF033_RUF033.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF033.py:19:35: RUF033 `__post_init__` method with argument defaults | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF034_RUF034.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF034_RUF034.py.snap index 62245a9dba..c045532ca5 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF034_RUF034.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF034_RUF034.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF034.py:5:5: RUF034 Useless `if`-`else` condition | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF036_RUF036.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF036_RUF036.py.snap index 20eaffafd9..62619ff4b2 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF036_RUF036.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF036_RUF036.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF036.py:4:16: RUF036 `None` not at the end of the type annotation. | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF036_RUF036.pyi.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF036_RUF036.pyi.snap index b66df39a84..e678092721 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF036_RUF036.pyi.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF036_RUF036.pyi.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF036.pyi:4:16: RUF036 `None` not at the end of the type annotation. | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF101_RUF101.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF101_RUF101.py.snap index c7a92cb49e..92fdfe6317 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF101_RUF101.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF101_RUF101.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF101.py:1:15: RUF101 [*] `RUF940` is a redirect to `RUF950` | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_bleach.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_bleach.snap index 7d974f8ffe..1d20cab3dd 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_bleach.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_bleach.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- pyproject.toml:5:16: RUF200 Failed to parse pyproject.toml: Version specifier `>=1.1.0<1.2` doesn't match PEP 440 rules tinycss2>=1.1.0<1.2 @@ -13,5 +14,3 @@ tinycss2>=1.1.0<1.2 7 | | ] | |_^ RUF200 | - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_invalid_author.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_invalid_author.snap index 5ce8729604..e1301bcf41 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_invalid_author.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_invalid_author.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- pyproject.toml:6:84: RUF200 Failed to parse pyproject.toml: invalid type: integer `1`, expected a string | @@ -9,5 +10,3 @@ pyproject.toml:6:84: RUF200 Failed to parse pyproject.toml: invalid type: intege | ^ RUF200 7 | ] | - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_maturin.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_maturin.snap index 7f58cfd724..b3a37c0921 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_maturin.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_maturin.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_maturin_gh_1615.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_maturin_gh_1615.snap index 8d9104c7ec..4d3fd4526f 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_maturin_gh_1615.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_maturin_gh_1615.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- pyproject.toml:9:17: RUF200 Failed to parse pyproject.toml: wanted string or table | @@ -10,5 +11,3 @@ pyproject.toml:9:17: RUF200 Failed to parse pyproject.toml: wanted string or tab 10 | requires-python = ">=3.8" 11 | requires-dist = [ "maturin>=0.14", "...",] | - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__confusables.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__confusables.snap index 7bbfa68012..2285d405cf 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__confusables.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__confusables.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- confusables.py:1:6: RUF001 String contains ambiguous `𝐁` (MATHEMATICAL BOLD CAPITAL B). Did you mean `B` (LATIN CAPITAL LETTER B)? | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__extend_allow_callables__RUF035_RUF035_extend_markup_names.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__extend_allow_callables__RUF035_RUF035_extend_markup_names.py.snap index e0b0b2454f..460278d551 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__extend_allow_callables__RUF035_RUF035_extend_markup_names.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__extend_allow_callables__RUF035_RUF035_extend_markup_names.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF035_extend_markup_names.py:5:1: RUF035 Unsafe use of `markupsafe.Markup` detected | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__extend_allow_callables__RUF035_RUF035_skip_early_out.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__extend_allow_callables__RUF035_RUF035_skip_early_out.py.snap index ea90be2f43..2572b25493 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__extend_allow_callables__RUF035_RUF035_skip_early_out.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__extend_allow_callables__RUF035_RUF035_skip_early_out.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF035_skip_early_out.py:7:1: RUF035 Unsafe use of `webhelpers.html.literal` detected | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__flake8_noqa.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__flake8_noqa.snap index 7f58cfd724..b3a37c0921 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__flake8_noqa.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__flake8_noqa.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__no_remove_parentheses_starred_expr_py310.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__no_remove_parentheses_starred_expr_py310.snap index 8fc974cc07..8fee3cc35a 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__no_remove_parentheses_starred_expr_py310.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__no_remove_parentheses_starred_expr_py310.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF031.py:2:3: RUF031 [*] Avoid parentheses for tuples in subscripts | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__noqa.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__noqa.snap index 6736a8f1c5..1e8d507c84 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__noqa.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__noqa.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- noqa.py:23:5: F841 [*] Local variable `I` is assigned to but never used | @@ -16,5 +17,3 @@ noqa.py:23:5: F841 [*] Local variable `I` is assigned to but never used 22 22 | # Only `E741` should be ignored by the `noqa`. 23 |- I = 1 # noqa: E741.F841 23 |+ pass # noqa: E741.F841 - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__prefer_parentheses_getitem_tuple.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__prefer_parentheses_getitem_tuple.snap index 5047ae56dc..ce4161086e 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__prefer_parentheses_getitem_tuple.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__prefer_parentheses_getitem_tuple.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF031_prefer_parens.py:8:5: RUF031 [*] Use parentheses for tuples in subscripts | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF007_RUF007.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF007_RUF007.py.snap index b12828b3ac..b5386d7fb3 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF007_RUF007.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF007_RUF007.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF007.py:16:1: RUF007 [*] Prefer `itertools.pairwise()` over `zip()` when iterating over successive pairs | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF008_RUF008_attrs.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF008_RUF008_attrs.py.snap index 23561eb18f..0b4772e491 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF008_RUF008_attrs.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF008_RUF008_attrs.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF008_attrs.py:13:34: RUF008 Do not use mutable default values for dataclass attributes | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF009_RUF009_attrs.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF009_RUF009_attrs.py.snap index 2052306b4f..771b3601fe 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF009_RUF009_attrs.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF009_RUF009_attrs.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF009_attrs.py:23:41: RUF009 Do not perform function call `default_function` in dataclass defaults | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF035_RUF035.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF035_RUF035.py.snap index 22cf28fa1f..1e6f5ae811 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF035_RUF035.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview__RUF035_RUF035.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF035.py:5:1: RUF035 Unsafe use of `markupsafe.Markup` detected | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview_confusables.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview_confusables.snap index 46ac0fafeb..d6f6e62a28 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview_confusables.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__preview_confusables.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- confusables.py:1:6: RUF001 String contains ambiguous `𝐁` (MATHEMATICAL BOLD CAPITAL B). Did you mean `B` (LATIN CAPITAL LETTER B)? | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__redirects.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__redirects.snap index 7f58cfd724..b3a37c0921 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__redirects.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__redirects.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_0.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_0.snap index 4832895a70..5501c10475 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_0.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_0.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF100_0.py:9:12: RUF100 [*] Unused blanket `noqa` directive | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_0_prefix.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_0_prefix.snap index 10d49089c3..631a2d7a0e 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_0_prefix.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_0_prefix.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF100_0.py:9:12: RUF100 [*] Unused blanket `noqa` directive | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_1.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_1.snap index bd0aaf365a..967b7a5d3b 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_1.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_1.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF100_1.py:37:9: F401 [*] `typing.Union` imported but unused | @@ -150,5 +151,3 @@ RUF100_1.py:89:55: RUF100 [*] Unused `noqa` directive (non-enabled: `F501`) 88 88 | # This should mark F501 as unused. 89 |- from typing import Awaitable, AwaitableGenerator # noqa: F501 89 |+ from typing import Awaitable, AwaitableGenerator - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_2.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_2.snap index 4eef8cdef3..d4ea19a5df 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_2.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_2.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF100_2.py:1:19: RUF100 [*] Unused `noqa` directive (unused: `F401`) | @@ -11,5 +12,3 @@ RUF100_2.py:1:19: RUF100 [*] Unused `noqa` directive (unused: `F401`) ℹ Safe fix 1 |-import itertools # noqa: F401 1 |+import itertools - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_3.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_3.snap index 187117c3e0..65d1f67dbd 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_3.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_3.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF100_3.py:1:1: RUF100 [*] Unused blanket `noqa` directive | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_4.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_4.snap index 7f58cfd724..b3a37c0921 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_4.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_4.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_5.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_5.snap index 23e5840e57..8077bfa4ed 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_5.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_5.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- RUF100_5.py:7:5: ERA001 Found commented-out code | diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_all.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_all.snap index 7f58cfd724..b3a37c0921 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_all.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_all.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_codes.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_codes.snap index 3274417750..8762e87e47 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_codes.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_codes.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- ruff_noqa_codes.py:8:5: F841 [*] Local variable `x` is assigned to but never used | @@ -15,5 +16,3 @@ ruff_noqa_codes.py:8:5: F841 [*] Local variable `x` is assigned to but never use 7 7 | def f(): 8 |- x = 1 8 |+ pass - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_invalid.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_invalid.snap index 7161b11be3..2b7f08191c 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_invalid.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_invalid.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- ruff_noqa_invalid.py:1:8: F401 [*] `os` imported but unused | @@ -28,5 +29,3 @@ ruff_noqa_invalid.py:5:5: F841 [*] Local variable `x` is assigned to but never u 4 4 | def f(): 5 |- x = 1 5 |+ pass - - diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores.snap index 7f58cfd724..b3a37c0921 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores_empty.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores_empty.snap index 7f58cfd724..b3a37c0921 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores_empty.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores_empty.snap @@ -1,4 +1,5 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs +snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__error-instead-of-exception_TRY400.py.snap b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__error-instead-of-exception_TRY400.py.snap index 1cc91d6730..03d81d83a8 100644 --- a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__error-instead-of-exception_TRY400.py.snap +++ b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__error-instead-of-exception_TRY400.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/tryceratops/mod.rs +snapshot_kind: text --- TRY400.py:13:9: TRY400 [*] Use `logging.exception` instead of `logging.error` | diff --git a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__raise-vanilla-args_TRY003.py.snap b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__raise-vanilla-args_TRY003.py.snap index 23b37ca793..9c8bf58daf 100644 --- a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__raise-vanilla-args_TRY003.py.snap +++ b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__raise-vanilla-args_TRY003.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/tryceratops/mod.rs +snapshot_kind: text --- TRY003.py:8:15: TRY003 Avoid specifying long messages outside the exception class | @@ -34,5 +35,3 @@ TRY003.py:44:15: TRY003 Avoid specifying long messages outside the exception cla 44 | raise BadArgCantBeEven("The argument `a` should not be odd.") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TRY003 | - - diff --git a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__raise-vanilla-class_TRY002.py.snap b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__raise-vanilla-class_TRY002.py.snap index 4950b2e853..8bba4a062d 100644 --- a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__raise-vanilla-class_TRY002.py.snap +++ b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__raise-vanilla-class_TRY002.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/tryceratops/mod.rs +snapshot_kind: text --- TRY002.py:13:15: TRY002 Create your own exception | @@ -36,5 +37,3 @@ TRY002.py:41:15: TRY002 Create your own exception 41 | raise BaseException | ^^^^^^^^^^^^^ TRY002 | - - diff --git a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__raise-within-try_TRY301.py.snap b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__raise-within-try_TRY301.py.snap index f89e2f4b53..3030a80d2b 100644 --- a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__raise-within-try_TRY301.py.snap +++ b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__raise-within-try_TRY301.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/tryceratops/mod.rs +snapshot_kind: text --- TRY301.py:14:13: TRY301 Abstract `raise` to an inner function | @@ -60,5 +61,3 @@ TRY301.py:39:17: TRY301 Abstract `raise` to an inner function 40 | except* Exception: 41 | logger.exception("something failed") | - - diff --git a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__try-consider-else_TRY300.py.snap b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__try-consider-else_TRY300.py.snap index 3217f019c2..1e5761ed6e 100644 --- a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__try-consider-else_TRY300.py.snap +++ b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__try-consider-else_TRY300.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/tryceratops/mod.rs +snapshot_kind: text --- TRY300.py:20:9: TRY300 Consider moving this statement to an `else` block | @@ -10,5 +11,3 @@ TRY300.py:20:9: TRY300 Consider moving this statement to an `else` block 21 | except MyException: 22 | logger.exception("process failed") | - - diff --git a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__type-check-without-type-error_TRY004.py.snap b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__type-check-without-type-error_TRY004.py.snap index 014682e8e9..77ebf52e85 100644 --- a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__type-check-without-type-error_TRY004.py.snap +++ b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__type-check-without-type-error_TRY004.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/tryceratops/mod.rs +snapshot_kind: text --- TRY004.py:12:9: TRY004 Prefer `TypeError` exception for invalid type | @@ -295,5 +296,3 @@ TRY004.py:316:9: TRY004 Prefer `TypeError` exception for invalid type 316 | raise Exception(f"Unknown object type: {obj.__class__.__name__}") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TRY004 | - - diff --git a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__useless-try-except_TRY203.py.snap b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__useless-try-except_TRY203.py.snap index 6dc6ab7348..6192e3759f 100644 --- a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__useless-try-except_TRY203.py.snap +++ b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__useless-try-except_TRY203.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/tryceratops/mod.rs +snapshot_kind: text --- TRY203.py:12:5: TRY203 Remove exception handler; error is immediately re-raised | diff --git a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__verbose-log-message_TRY401.py.snap b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__verbose-log-message_TRY401.py.snap index 3f71c86e70..6999f6b92a 100644 --- a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__verbose-log-message_TRY401.py.snap +++ b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__verbose-log-message_TRY401.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/tryceratops/mod.rs +snapshot_kind: text --- TRY401.py:8:45: TRY401 Redundant exception object included in `logging.exception` call | @@ -192,5 +193,3 @@ TRY401.py:150:49: TRY401 Redundant exception object included in `logging.excepti 150 | logger.exception(f"Found an error: {ex}") # TRY401 | ^^ TRY401 | - - diff --git a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__verbose-raise_TRY201.py.snap b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__verbose-raise_TRY201.py.snap index 558c2c91ac..b8383947f3 100644 --- a/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__verbose-raise_TRY201.py.snap +++ b/crates/ruff_linter/src/rules/tryceratops/snapshots/ruff_linter__rules__tryceratops__tests__verbose-raise_TRY201.py.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/rules/tryceratops/mod.rs +snapshot_kind: text --- TRY201.py:20:15: TRY201 [*] Use `raise` without specifying exception name | @@ -53,5 +54,3 @@ TRY201.py:74:23: TRY201 [*] Use `raise` without specifying exception name 73 73 | def foo(): 74 |- raise e 74 |+ raise - - diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__import_sorting.snap b/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__import_sorting.snap index b0cc03fe75..7f726c2783 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__import_sorting.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__import_sorting.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/linter.rs +snapshot_kind: text --- isort.ipynb:cell 1:1:1: I001 [*] Import block is un-sorted or un-formatted | @@ -85,5 +86,3 @@ isort.ipynb:cell 3:7:1: I001 [*] Import block is un-sorted or un-formatted 15 |+import abc 15 16 | import math 16 |-import abc - - diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__ipy_escape_command.snap b/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__ipy_escape_command.snap index 8c1a547e85..9899e6297d 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__ipy_escape_command.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__ipy_escape_command.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/linter.rs +snapshot_kind: text --- ipy_escape_command.ipynb:cell 1:5:8: F401 [*] `os` imported but unused | @@ -34,5 +35,3 @@ ipy_escape_command.ipynb:cell 2:2:8: F401 [*] `sys` imported but unused 7 7 | _ = math.pi 8 8 | %%timeit 9 |-import sys - - diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__undefined_name.snap b/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__undefined_name.snap index d38bdfa2e0..d72f236dcd 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__undefined_name.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__undefined_name.snap @@ -1,10 +1,9 @@ --- source: crates/ruff_linter/src/linter.rs +snapshot_kind: text --- undefined_name.ipynb:cell 3:1:7: F821 Undefined name `undefined` | 1 | print(undefined) | ^^^^^^^^^ F821 | - - diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__unused_variable.snap b/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__unused_variable.snap index a610a9bb12..90dde196f8 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__unused_variable.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__unused_variable.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/linter.rs +snapshot_kind: text --- unused_variable.ipynb:cell 1:2:5: F841 [*] Local variable `foo1` is assigned to but never used | @@ -68,5 +69,3 @@ unused_variable.ipynb:cell 2:3:5: F841 [*] Local variable `bar2` is assigned to 5 5 | bar1 = !pwd 6 |- bar2: str = !pwd 6 |+ !pwd - - diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__vscode_language_id.snap b/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__vscode_language_id.snap index d89e58dc78..2f0aa2ab11 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__vscode_language_id.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__vscode_language_id.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_linter/src/linter.rs +snapshot_kind: text --- vscode_language_id.ipynb:cell 3:1:8: F401 [*] `os` imported but unused | diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_all.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_all.snap index 4fab59ef1b..82d71163d0 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_all.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_all.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "ParsedFileExemption::try_extract(source)" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_all_case_insensitive.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_all_case_insensitive.snap index 4fab59ef1b..82d71163d0 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_all_case_insensitive.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_all_case_insensitive.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "ParsedFileExemption::try_extract(source)" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_all_no_space.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_all_no_space.snap index 4fab59ef1b..82d71163d0 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_all_no_space.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_all_no_space.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "ParsedFileExemption::try_extract(source)" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_codes.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_codes.snap index ab2330d822..bdd8114fba 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_codes.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__flake8_exemption_codes.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "ParsedFileExemption::try_extract(source)" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all.snap index 1f82ec4cee..782d5edf44 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_case_insensitive.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_case_insensitive.snap index 1f82ec4cee..782d5edf44 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_case_insensitive.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_case_insensitive.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_leading_comment.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_leading_comment.snap index 34691c9c16..84d884a7fd 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_leading_comment.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_leading_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_multi_space.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_multi_space.snap index 79d3acb35e..502ca4bc6e 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_multi_space.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_multi_space.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_no_space.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_no_space.snap index 4e20a49851..ae2fb32499 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_no_space.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_no_space.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_trailing_comment.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_trailing_comment.snap index 1f82ec4cee..782d5edf44 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_trailing_comment.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_all_trailing_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code.snap index e5c3ff7365..8343827989 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_case_insensitive.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_case_insensitive.snap index e5c3ff7365..8343827989 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_case_insensitive.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_case_insensitive.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_leading_comment.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_leading_comment.snap index 051cc542ca..8b10f3792a 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_leading_comment.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_leading_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_multi_space.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_multi_space.snap index 1f4affbec0..365e539cfc 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_multi_space.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_multi_space.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_no_space.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_no_space.snap index 6b5ecf0c36..70c91d5d78 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_no_space.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_no_space.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_trailing_comment.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_trailing_comment.snap index e5c3ff7365..8343827989 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_trailing_comment.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_code_trailing_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes.snap index 7a83ed9db2..8c67e30e0d 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_case_insensitive.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_case_insensitive.snap index 7a83ed9db2..8c67e30e0d 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_case_insensitive.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_case_insensitive.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_leading_comment.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_leading_comment.snap index 2fbd25417d..57e9816701 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_leading_comment.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_leading_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_multi_space.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_multi_space.snap index 53d9993f68..608946baae 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_multi_space.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_multi_space.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_no_space.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_no_space.snap index 7e81d73d42..4a052fcde1 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_no_space.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_no_space.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_trailing_comment.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_trailing_comment.snap index 7a83ed9db2..8c67e30e0d 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_trailing_comment.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_codes_trailing_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_empty_comma.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_empty_comma.snap index 7a83ed9db2..8c67e30e0d 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_empty_comma.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_empty_comma.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_empty_comma_space.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_empty_comma_space.snap index c2a215c16f..f10d46ecb5 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_empty_comma_space.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_empty_comma_space.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_invalid_codes.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_invalid_codes.snap index 751f9e693b..5555a95e59 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_invalid_codes.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_invalid_codes.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Err( MissingCodes, diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_invalid_suffix.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_invalid_suffix.snap index 1852dbd27b..a2a1dc315f 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_invalid_suffix.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_invalid_suffix.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Err( InvalidSuffix, diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_leading_space.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_leading_space.snap index fb2fa3fe4f..2392249bda 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_leading_space.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_leading_space.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_non_code.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_non_code.snap index e5c3ff7365..8343827989 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_non_code.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_non_code.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_squashed_codes.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_squashed_codes.snap index fe65b9cc7f..d66ab807ba 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_squashed_codes.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_squashed_codes.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_trailing_space.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_trailing_space.snap index e5c3ff7365..8343827989 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_trailing_space.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_trailing_space.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "Directive::try_extract(source, TextSize::default())" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_all.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_all.snap index 4fab59ef1b..82d71163d0 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_all.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_all.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "ParsedFileExemption::try_extract(source)" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_all_case_insensitive.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_all_case_insensitive.snap index 4fab59ef1b..82d71163d0 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_all_case_insensitive.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_all_case_insensitive.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "ParsedFileExemption::try_extract(source)" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_all_no_space.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_all_no_space.snap index 4fab59ef1b..82d71163d0 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_all_no_space.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_all_no_space.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "ParsedFileExemption::try_extract(source)" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_codes.snap b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_codes.snap index ab2330d822..bdd8114fba 100644 --- a/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_codes.snap +++ b/crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__ruff_exemption_codes.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_linter/src/noqa.rs expression: "ParsedFileExemption::try_extract(source)" +snapshot_kind: text --- Ok( Some( diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__bytes_literals.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__bytes_literals.snap index 11df74981c..d8d8eb0e8d 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__bytes_literals.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__bytes_literals.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtExpr diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__class_type_parameters.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__class_type_parameters.snap index 7b72f072ca..9e777ff2ae 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__class_type_parameters.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__class_type_parameters.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtClassDef diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__compare.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__compare.snap index 7982572267..4fed977dca 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__compare.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__compare.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtExpr diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__decorators.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__decorators.snap index f6b6c175ae..977336ebd1 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__decorators.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__decorators.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtFunctionDef diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__dict_comprehension.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__dict_comprehension.snap index 2fa8d035d3..20daeacee0 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__dict_comprehension.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__dict_comprehension.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtExpr diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__f_strings.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__f_strings.snap index 296252a266..84266e3745 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__f_strings.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__f_strings.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtExpr diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__function_arguments.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__function_arguments.snap index d743ba0fa2..0079337323 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__function_arguments.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__function_arguments.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtFunctionDef diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__function_positional_only_with_default.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__function_positional_only_with_default.snap index 198e3b2aa3..d482b22231 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__function_positional_only_with_default.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__function_positional_only_with_default.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtFunctionDef diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__function_type_parameters.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__function_type_parameters.snap index d30516bf7b..1bd6284199 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__function_type_parameters.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__function_type_parameters.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtFunctionDef diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__list_comprehension.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__list_comprehension.snap index d7fa6bda2f..1cf6fb582f 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__list_comprehension.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__list_comprehension.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtExpr diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__match_class_pattern.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__match_class_pattern.snap index 70fa1276fe..ddd8b0c3d1 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__match_class_pattern.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__match_class_pattern.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtMatch diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__set_comprehension.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__set_comprehension.snap index 47c7344d61..89553f51a0 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__set_comprehension.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__set_comprehension.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtExpr diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__string_literals.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__string_literals.snap index fae44b6ed9..28c215cfb0 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__string_literals.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__string_literals.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtExpr diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__type_aliases.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__type_aliases.snap index 5c986912e2..2e2e76044c 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__type_aliases.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__type_aliases.snap @@ -1,6 +1,7 @@ --- -source: crates/ruff_python_ast_integration_tests/tests/preorder.rs +source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace +snapshot_kind: text --- - ModModule - StmtTypeAlias diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__bytes_literals.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__bytes_literals.snap index 0ad5f4f890..00c432cfdd 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__bytes_literals.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__bytes_literals.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtExpr - ExprBytesLiteral diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__class_type_parameters.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__class_type_parameters.snap index cf16702250..8b0acc8581 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__class_type_parameters.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__class_type_parameters.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtClassDef - TypeParamTypeVar diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__compare.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__compare.snap index 8c0425fa43..63981501e6 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__compare.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__compare.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtExpr - ExprCompare diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__decorators.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__decorators.snap index 799385941d..2a5528b94f 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__decorators.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__decorators.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtFunctionDef - ExprName diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__dict_comprehension.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__dict_comprehension.snap index 40fe6e72eb..217b76d445 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__dict_comprehension.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__dict_comprehension.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtExpr - ExprDictComp diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__f_strings.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__f_strings.snap index 2e9b7dccbc..f379b791d7 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__f_strings.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__f_strings.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtExpr - ExprFString diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_arguments.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_arguments.snap index a526cdd144..9ed633ee46 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_arguments.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_arguments.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtFunctionDef - Parameters diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_positional_only_with_default.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_positional_only_with_default.snap index c7501b8ae8..e4c1e7167f 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_positional_only_with_default.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_positional_only_with_default.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtFunctionDef - Parameters diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_type_parameters.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_type_parameters.snap index 2af2fa85aa..97bace8746 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_type_parameters.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_type_parameters.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtFunctionDef - TypeParamTypeVar diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__list_comprehension.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__list_comprehension.snap index 7af26ca3c4..9035972373 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__list_comprehension.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__list_comprehension.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtExpr - ExprListComp diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__match_class_pattern.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__match_class_pattern.snap index d91b865a4f..428de2cdab 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__match_class_pattern.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__match_class_pattern.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtMatch - ExprName diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__set_comprehension.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__set_comprehension.snap index 799b67aefa..da8ad27189 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__set_comprehension.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__set_comprehension.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtExpr - ExprSetComp diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__string_literals.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__string_literals.snap index 08cd420a99..48b18c6af3 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__string_literals.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__string_literals.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtExpr - ExprStringLiteral diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__type_aliases.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__type_aliases.snap index 539a38562d..452e3954de 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__type_aliases.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__type_aliases.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace +snapshot_kind: text --- - StmtTypeAlias - ExprSubscript diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__debug__tests__debug.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__debug__tests__debug.snap index 897dfa97ee..ab843732c2 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__debug__tests__debug.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__debug__tests__debug.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/debug.rs expression: comments.debug(source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__base_test.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__base_test.snap index 1a8dc9fcd7..9c23082e4d 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__base_test.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__base_test.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_comment.snap index 9be65b1a41..d901a21e36 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_trailing_end_of_line_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_trailing_end_of_line_comment.snap index e1f0f769fd..9b4dffe8a5 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_trailing_end_of_line_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_trailing_end_of_line_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__dangling_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__dangling_comment.snap index f1b3403f32..295eceb8ff 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__dangling_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__dangling_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__empty_file.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__empty_file.snap index 7ceb71b7a5..62f859c0f5 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__empty_file.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__empty_file.snap @@ -1,5 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- {} diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_else_comments.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_else_comments.snap index 99d380cc70..73c594fdd4 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_else_comments.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_else_comments.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_if_else_comments.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_if_else_comments.snap index 1cd1f74ac2..915b4744a4 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_if_else_comments.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_if_else_comments.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__leading_most_outer.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__leading_most_outer.snap index 9bef07f421..d3279f5945 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__leading_most_outer.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__leading_most_outer.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__match_cases.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__match_cases.snap index bc93d702de..d9d7466f49 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__match_cases.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__match_cases.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__nested_binary_expression.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__nested_binary_expression.snap index 7309048231..635c756da2 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__nested_binary_expression.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__nested_binary_expression.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_slash_on_same_line.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_slash_on_same_line.snap index ca9f11a24c..285939e6f0 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_slash_on_same_line.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_slash_on_same_line.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_with_defaults.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_with_defaults.snap index a7f9ec4064..4152fe5992 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_with_defaults.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_with_defaults.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__only_comments.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__only_comments.snap index 8f5f96bd72..95b80b4a41 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__only_comments.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__only_comments.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_expression.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_expression.snap index b39a29b965..b7bfd5e439 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_expression.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_expression.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_trailing_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_trailing_comment.snap index 73aa8104d9..928299740a 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_trailing_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_trailing_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment.snap index a8a9305375..993f6a4b37 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment_without_following_node.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment_without_following_node.snap index 9e9db25a5e..2c20ff80f0 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment_without_following_node.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment_without_following_node.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_leading_comma_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_leading_comma_comment.snap index a8a9305375..993f6a4b37 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_leading_comma_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_leading_comma_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_after_comma.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_after_comma.snap index 88f2be2c30..ad6a1e3f1a 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_after_comma.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_after_comma.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_comment_after_single_statement_body.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_comment_after_single_statement_body.snap index 62b0b6652b..abb80c9f78 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_comment_after_single_statement_body.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_comment_after_single_statement_body.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_function_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_function_comment.snap index 9dd6d289d4..6b9f631362 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_function_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_function_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer.snap index bb9a65c480..98728d2996 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer_nested.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer_nested.snap index 37e4a4cc52..120e2a9bb0 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer_nested.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer_nested.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except.snap index f72858e288..8937167e98 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except_finally_else.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except_finally_else.snap index 004b7a2de2..3d20d99e2a 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except_finally_else.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except_finally_else.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_else_end_of_line_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_else_end_of_line_comment.snap index 33cd36edc4..2befb882a3 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_else_end_of_line_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_else_end_of_line_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_end_of_line_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_end_of_line_comment.snap index 41e845c4b4..4a8a2ef322 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_end_of_line_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_end_of_line_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) +snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/snapshots/ruff_python_formatter__tests__string_processing.snap b/crates/ruff_python_formatter/src/snapshots/ruff_python_formatter__tests__string_processing.snap index fca7f8344e..f3e17efb87 100644 --- a/crates/ruff_python_formatter/src/snapshots/ruff_python_formatter__tests__string_processing.snap +++ b/crates/ruff_python_formatter/src/snapshots/ruff_python_formatter__tests__string_processing.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/src/lib.rs expression: "output.print().expect(\"Printing to succeed\").as_code()" +snapshot_kind: text --- "aaaaaaaaaa bbbbbbbbbb cccccccccc dddddddddd eeeeeeeeee ffffffffff gggggggggg h" ( diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__allow_empty_first_line.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__allow_empty_first_line.py.snap index 4931cdf636..570ca11b29 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__allow_empty_first_line.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__allow_empty_first_line.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/allow_empty_first_line.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__backslash_before_indent.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__backslash_before_indent.py.snap index f00bd36029..89cae6545b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__backslash_before_indent.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__backslash_before_indent.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/backslash_before_indent.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__class_blank_parentheses.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__class_blank_parentheses.py.snap index 2ad0c329cf..391c1c0604 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__class_blank_parentheses.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__class_blank_parentheses.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/class_blank_parentheses.py +snapshot_kind: text --- ## Input @@ -115,5 +116,3 @@ class NormalClass: sum = first + second return sum ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comment_after_escaped_newline.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comment_after_escaped_newline.py.snap index 9d7369e3f1..1e219b5630 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comment_after_escaped_newline.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comment_after_escaped_newline.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/comment_after_escaped_newline.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments2.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments2.py.snap index 941cb240fa..44b7651d1b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments2.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments2.py +snapshot_kind: text --- ## Input @@ -613,5 +614,3 @@ instruction() # comment with bad spacing # END COMMENTS # MORE END COMMENTS ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments6.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments6.py.snap index f1bc3b6173..f91b33c700 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments6.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments6.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments6.py +snapshot_kind: text --- ## Input @@ -435,5 +436,3 @@ call_to_some_function_asdf( aaaaaaaaaaaaa, bbbbbbbbb = map(list, map(itertools.chain.from_iterable, zip(*items))) # type: ignore[arg-type] ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments9.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments9.py.snap index 85d3044bac..01992d7f8a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments9.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments9.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments9.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_blocks.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_blocks.py.snap index 7524d7c7a7..c2f3898b2f 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_blocks.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_blocks.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments_in_blocks.py +snapshot_kind: text --- ## Input @@ -378,5 +379,3 @@ if ( ): print("Foo") ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_double_parens.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_double_parens.py.snap index a60996419c..6253b7309f 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_double_parens.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_double_parens.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments_in_double_parens.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition.py.snap index c1c42e11bb..2d2de804b5 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/composition.py +snapshot_kind: text --- ## Input @@ -610,5 +611,3 @@ class C: } ) ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition_no_trailing_comma.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition_no_trailing_comma.py.snap index 6a9570acf6..2a60999cd1 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition_no_trailing_comma.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition_no_trailing_comma.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/composition_no_trailing_comma.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__conditional_expression.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__conditional_expression.py.snap index 87ff831191..9375616352 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__conditional_expression.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__conditional_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/conditional_expression.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__context_managers_39.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__context_managers_39.py.snap index bda34193b2..c6ad245a3a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__context_managers_39.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__context_managers_39.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/context_managers_39.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__context_managers_autodetect_39.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__context_managers_autodetect_39.py.snap index c6ec010b2a..cd8e0e64eb 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__context_managers_autodetect_39.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__context_managers_autodetect_39.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/context_managers_autodetect_39.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__docstring_no_string_normalization.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__docstring_no_string_normalization.py.snap index 17915fd54d..dbbed9446c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__docstring_no_string_normalization.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__docstring_no_string_normalization.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_no_string_normalization.py +snapshot_kind: text --- ## Input @@ -461,5 +462,3 @@ def multiline_backslash_3(): ''' already escaped \\''' ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__dummy_implementations.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__dummy_implementations.py.snap index c5887596ae..126cf40280 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__dummy_implementations.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__dummy_implementations.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/dummy_implementations.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__empty_lines.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__empty_lines.py.snap index 2ce5876a95..5bf19e9b0b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__empty_lines.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__empty_lines.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/empty_lines.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__expression.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__expression.py.snap index 5b60337c94..81893524d0 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__expression.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/expression.py +snapshot_kind: text --- ## Input @@ -1028,5 +1029,3 @@ bbbb >> bbbb * bbbb last_call() # standalone comment at ENDMARKER ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff.py.snap index a14ed93600..3b862b14af 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff4.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff4.py.snap index 9162f85921..05bf9bd0bd 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff4.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff4.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff4.py +snapshot_kind: text --- ## Input @@ -93,5 +94,3 @@ def f(): def f(): pass ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff5.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff5.py.snap index 37aedd1955..b19050217c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff5.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff5.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff5.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtpass_imports.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtpass_imports.py.snap index 6a8042f10d..339b409336 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtpass_imports.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtpass_imports.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtpass_imports.py +snapshot_kind: text --- ## Input @@ -89,5 +90,3 @@ import sys import tempfile import zoneinfo ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip5.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip5.py.snap index 325b315501..5b426a3b86 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip5.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip5.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtskip5.py +snapshot_kind: text --- ## Input @@ -59,5 +60,3 @@ if ( else: print("I'm bad") ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip9.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip9.py.snap index bb8af9d423..3479ea65e3 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip9.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip9.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtskip9.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__form_feeds.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__form_feeds.py.snap index e6625b01a7..183c6a3b53 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__form_feeds.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__form_feeds.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/form_feeds.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__funcdef_return_type_trailing_comma.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__funcdef_return_type_trailing_comma.py.snap index 7266806c08..bb65a5389a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__funcdef_return_type_trailing_comma.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__funcdef_return_type_trailing_comma.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/funcdef_return_type_trailing_comma.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function.py.snap index 83dfa7e0b8..e9d860a053 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/function.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function2.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function2.py.snap index a9ffd5a3f9..74185d8f06 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function2.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/function2.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function_trailing_comma.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function_trailing_comma.py.snap index 480f37a879..62a169b1b0 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function_trailing_comma.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function_trailing_comma.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/function_trailing_comma.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__ignore_pyi.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__ignore_pyi.pyi.snap index 0d405b5b57..c356a5f720 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__ignore_pyi.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__ignore_pyi.pyi.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/ignore_pyi.pyi +snapshot_kind: text --- ## Input @@ -86,5 +87,3 @@ def h(): ... # bye ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__keep_newline_after_match.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__keep_newline_after_match.py.snap index 5e01554789..e329414749 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__keep_newline_after_match.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__keep_newline_after_match.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/keep_newline_after_match.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_diff_edge_case.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_diff_edge_case.py.snap index bdfd173c80..d52718d348 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_diff_edge_case.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_diff_edge_case.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/line_ranges_diff_edge_case.py +snapshot_kind: text --- ## Input @@ -70,5 +71,3 @@ print("format me") print("format me") print("format me") ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_fmt_off_decorator.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_fmt_off_decorator.py.snap index a6e07024ed..6ce20220d3 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_fmt_off_decorator.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_fmt_off_decorator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/line_ranges_fmt_off_decorator.py +snapshot_kind: text --- ## Input @@ -101,5 +102,3 @@ class MyClass: def func(): pass ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__multiline_consecutive_open_parentheses_ignore.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__multiline_consecutive_open_parentheses_ignore.py.snap index 45a41abfe2..53c85e1a04 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__multiline_consecutive_open_parentheses_ignore.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__multiline_consecutive_open_parentheses_ignore.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/multiline_consecutive_open_parentheses_ignore.py +snapshot_kind: text --- ## Input @@ -87,5 +88,3 @@ print("111") # type: ignore print("111") # type: ignore print("111") # type: ignore ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__nested_stub.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__nested_stub.pyi.snap index 5eed350fd7..1e05f95d0e 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__nested_stub.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__nested_stub.pyi.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/nested_stub.pyi +snapshot_kind: text --- ## Input @@ -141,5 +142,3 @@ class TopLevel: field = 1 ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__no_blank_line_before_docstring.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__no_blank_line_before_docstring.py.snap index 5d175b9b9b..379f746fae 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__no_blank_line_before_docstring.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__no_blank_line_before_docstring.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/no_blank_line_before_docstring.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_style.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_style.py.snap index 06422b3718..84ace27423 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_style.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_style.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/pattern_matching_style.py +snapshot_kind: text --- ## Input @@ -182,5 +183,3 @@ match match(): ): pass ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_trailing_comma.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_trailing_comma.py.snap index 8800ffc4ed..fa13412b56 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_trailing_comma.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_trailing_comma.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/pattern_matching_trailing_comma.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_with_if_stmt.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_with_if_stmt.py.snap index 02f6b0636a..1e74d2e322 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_with_if_stmt.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_with_if_stmt.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/pattern_matching_with_if_stmt.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pep604_union_types_line_breaks.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pep604_union_types_line_breaks.py.snap index f5eba916b2..d022f12050 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pep604_union_types_line_breaks.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pep604_union_types_line_breaks.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/pep604_union_types_line_breaks.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pep_701.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pep_701.py.snap index 1a7bc07b67..649bb0ea5f 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pep_701.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pep_701.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/pep_701.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__prefer_rhs_split.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__prefer_rhs_split.py.snap index d20c2a8d20..db71513a87 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__prefer_rhs_split.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__prefer_rhs_split.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/prefer_rhs_split.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_allow_empty_first_line.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_allow_empty_first_line.py.snap index 7ff5d6d32d..2503e39477 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_allow_empty_first_line.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_allow_empty_first_line.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_allow_empty_first_line.py +snapshot_kind: text --- ## Input @@ -322,5 +323,3 @@ def top_level( def nested(x: int) -> int: pass ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_allow_empty_first_line_in_special_cases.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_allow_empty_first_line_in_special_cases.py.snap index 2dce9bc3af..6ed5f15849 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_allow_empty_first_line_in_special_cases.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_allow_empty_first_line_in_special_cases.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_allow_empty_first_line_in_special_cases.py +snapshot_kind: text --- ## Input @@ -214,5 +215,3 @@ def baz(): if x: a = 123 ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit.py.snap index 1d93012d9b..ec8b567c4c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_cantfit.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit_string.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit_string.py.snap index 84a2568844..b4901425ff 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit_string.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit_string.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_cantfit_string.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_comments7.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_comments7.py.snap index 337c78698d..36f29c9177 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_comments7.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_comments7.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_comments7.py +snapshot_kind: text --- ## Input @@ -596,5 +597,3 @@ square = Square(4) # type: Optional[Square] ), ] ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_docstring_no_string_normalization.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_docstring_no_string_normalization.py.snap index 70b323e493..fe94787169 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_docstring_no_string_normalization.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_docstring_no_string_normalization.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_docstring_no_string_normalization.py +snapshot_kind: text --- ## Input @@ -64,5 +65,3 @@ def do_not_touch_this_prefix2(): def do_not_touch_this_prefix3(): u'''There was a bug where docstring prefixes would be normalized even with -S.''' ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_form_feeds.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_form_feeds.py.snap index 09b03d396a..3532bf00b6 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_form_feeds.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_form_feeds.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_form_feeds.py +snapshot_kind: text --- ## Input @@ -454,5 +455,3 @@ a = [] # form feeds at the very end get removed. ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets.py.snap index 71af123619..54e349c355 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_hug_parens_with_braces_and_square_brackets.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets_no_ll1.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets_no_ll1.py.snap index fd23c5a684..52818e7ae3 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets_no_ll1.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets_no_ll1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_hug_parens_with_braces_and_square_brackets_no_ll1.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_dict_values.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_dict_values.py.snap index b5afd447b3..f679636113 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_dict_values.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_dict_values.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_long_dict_values.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__east_asian_width.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__east_asian_width.py.snap index 7ba6778674..89247fa1f0 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__east_asian_width.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__east_asian_width.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_long_strings__east_asian_width.py +snapshot_kind: text --- ## Input @@ -71,5 +72,3 @@ japanese = ( "改行が要る文字列" ) ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__edge_case.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__edge_case.py.snap index 4db3fa039c..8da88e25b6 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__edge_case.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__edge_case.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_long_strings__edge_case.py +snapshot_kind: text --- ## Input @@ -336,5 +337,3 @@ msg += ( ) msg += "This long string should not be split at any point ever since it is just righttt" ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__type_annotations.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__type_annotations.py.snap index da32d342f0..4ae72f1717 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__type_annotations.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__type_annotations.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_long_strings__type_annotations.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_multiline_strings.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_multiline_strings.py.snap index 68b0202991..8d58214ce1 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_multiline_strings.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_multiline_strings.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_multiline_strings.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_pattern_matching_trailing_comma.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_pattern_matching_trailing_comma.py.snap index 257d3e63f6..d94102fe60 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_pattern_matching_trailing_comma.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_pattern_matching_trailing_comma.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_pattern_matching_trailing_comma.py +snapshot_kind: text --- ## Input @@ -100,5 +101,3 @@ match more := (than, one), indeed,: case _: pass ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_percent_precedence.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_percent_precedence.py.snap index 01f401e99a..5de6b53e3b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_percent_precedence.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_percent_precedence.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_percent_precedence.py +snapshot_kind: text --- ## Input @@ -95,5 +96,3 @@ await ("" % a) b[("" % a)] b(("" % a)) ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_prefer_rhs_split.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_prefer_rhs_split.py.snap index e799efc314..6c4d49d07a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_prefer_rhs_split.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_prefer_rhs_split.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_prefer_rhs_split.py +snapshot_kind: text --- ## Input @@ -350,5 +351,3 @@ a = ( cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc ) = ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_return_annotation_brackets_string.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_return_annotation_brackets_string.py.snap index 5f43f1a7d2..1ccd1c50c1 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_return_annotation_brackets_string.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_return_annotation_brackets_string.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_return_annotation_brackets_string.py +snapshot_kind: text --- ## Input @@ -64,5 +65,3 @@ def frobnicate( ) -> "ThisIsTrulyUnreasonablyExtremelyLongClassName | list[ThisIsTrulyUnreasonablyExtremelyLongClassName]": pass ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_single_line_format_skip_with_multiple_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_single_line_format_skip_with_multiple_comments.py.snap index 848e9fe3e2..05b3ba4a87 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_single_line_format_skip_with_multiple_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_single_line_format_skip_with_multiple_comments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_single_line_format_skip_with_multiple_comments.py +snapshot_kind: text --- ## Input @@ -59,5 +60,3 @@ baz = "a" + "b" # pylint; fmt: skip; noqa: E501 skip_will_not_work = "a" + "b" # pylint fmt:skip skip_will_not_work2 = "a" + "b" # some text; fmt:skip happens to be part of it ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring.py.snap index bc66189376..6a3a797325 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/raw_docstring.py +snapshot_kind: text --- ## Input @@ -75,5 +76,3 @@ class SingleQuotes: class UpperCaseR: R"""Raw""" ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring_no_string_normalization.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring_no_string_normalization.py.snap index b9c8f50f33..969951c8c5 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring_no_string_normalization.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring_no_string_normalization.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/raw_docstring_no_string_normalization.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_await_parens.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_await_parens.py.snap index 284e85189e..cb67f5b1bb 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_await_parens.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_await_parens.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_await_parens.py +snapshot_kind: text --- ## Input @@ -341,5 +342,3 @@ async def main(): await a[b] await a[b**c] ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_except_parens.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_except_parens.py.snap index 55f1e95384..8cea5eb67b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_except_parens.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_except_parens.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_except_parens.py +snapshot_kind: text --- ## Input @@ -151,5 +152,3 @@ except ( ) as err: raise err ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_for_brackets.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_for_brackets.py.snap index 5b98ee4d7f..3dd8cc5a5a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_for_brackets.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_for_brackets.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_for_brackets.py +snapshot_kind: text --- ## Input @@ -105,5 +106,3 @@ for ( for k, v in d.items(): print(k, v) ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_newline_after_code_block_open.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_newline_after_code_block_open.py.snap index ca73f90ad3..8ebaf95ff5 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_newline_after_code_block_open.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_newline_after_code_block_open.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_newline_after_code_block_open.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_redundant_parens_in_case_guard.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_redundant_parens_in_case_guard.py.snap index d848db4ce8..2f8e6eb01e 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_redundant_parens_in_case_guard.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_redundant_parens_in_case_guard.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_redundant_parens_in_case_guard.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__return_annotation_brackets.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__return_annotation_brackets.py.snap index 660fd0b731..ea9f587ded 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__return_annotation_brackets.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__return_annotation_brackets.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/return_annotation_brackets.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__single_line_format_skip_with_multiple_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__single_line_format_skip_with_multiple_comments.py.snap index 644db86aea..dfb256c9cb 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__single_line_format_skip_with_multiple_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__single_line_format_skip_with_multiple_comments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/single_line_format_skip_with_multiple_comments.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__stub.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__stub.pyi.snap index 13083c6ed0..4ac0d13469 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__stub.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__stub.pyi.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/stub.pyi +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__torture.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__torture.py.snap index 3ad322d6b7..574e3545e6 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__torture.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__torture.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/torture.py +snapshot_kind: text --- ## Input @@ -180,5 +181,3 @@ assert a_function( which_is_eighty_eight_in_this_case_plus_a_bit_more, ) == {"x": "this need to pass the line limit as well", "b": "but only by a little bit"} ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__trailing_commas_in_leading_parts.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__trailing_commas_in_leading_parts.py.snap index 27cdd32b80..6389a46477 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__trailing_commas_in_leading_parts.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__trailing_commas_in_leading_parts.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/trailing_commas_in_leading_parts.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__tupleassign.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__tupleassign.py.snap index 654b488efe..5909adb872 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__tupleassign.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__tupleassign.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/tupleassign.py +snapshot_kind: text --- ## Input @@ -63,5 +64,3 @@ this_will_be_wrapped_in_parens, = struct.unpack(b"12345678901234567890") (a,) = call() ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__type_param_defaults.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__type_param_defaults.py.snap index 19c55af550..3910a7cf56 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__type_param_defaults.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__type_param_defaults.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_param_defaults.py +snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@conditional_expression.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@conditional_expression.py.snap index 8a1f4efdd8..c270ff00c4 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@conditional_expression.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@conditional_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/conditional_expression.py +snapshot_kind: text --- ## Input @@ -330,5 +331,3 @@ def something(): else FlatValuesListIterable if flat else ValuesListIterable ) ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__blackd_diff.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__blackd_diff.py.snap index 5a0a7e590e..075d453d3d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__blackd_diff.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__blackd_diff.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/miscellaneous/blackd_diff.py +snapshot_kind: text --- ## Input @@ -51,5 +52,3 @@ def abc (): print( "Incorrect formatting" ) ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__debug_visitor.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__debug_visitor.py.snap index 36233a64ec..6befff92a3 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__debug_visitor.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__debug_visitor.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/miscellaneous/debug_visitor.py +snapshot_kind: text --- ## Input @@ -150,5 +151,3 @@ class DebugVisitor(Visitor[T]): v: DebugVisitor[None] = DebugVisitor() list(v.visit(lib2to3_parse(code))) ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__force_pyi.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__force_pyi.py.snap index 6a1fd9706d..736ef3026d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__force_pyi.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__force_pyi.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/miscellaneous/force_pyi.py +snapshot_kind: text --- ## Input @@ -176,5 +177,3 @@ var: int = 1 def eggs() -> Union[str, int]: ... ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__string_quotes.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__string_quotes.py.snap index 41d92b73c6..de54894a86 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__string_quotes.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__string_quotes.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/miscellaneous/string_quotes.py +snapshot_kind: text --- ## Input @@ -206,5 +207,3 @@ f"{y * x} '{z}'" f"\"{b}\"{' ' * (long-len(b)+1)}: \"{sts}\",\n" f"\"{a}\"{'hello' * b}\"{c}\"" ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@raw_docstring.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@raw_docstring.py.snap index 833cc46882..0e6b1af5db 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@raw_docstring.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@raw_docstring.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/raw_docstring.py +snapshot_kind: text --- ## Input @@ -82,5 +83,3 @@ class SingleQuotes: class UpperCaseR: R"""Raw""" ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@simple_cases__preview_hug_parens_with_braces_and_square_brackets.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@simple_cases__preview_hug_parens_with_braces_and_square_brackets.py.snap index df9471aac2..dfb50126e6 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@simple_cases__preview_hug_parens_with_braces_and_square_brackets.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@simple_cases__preview_hug_parens_with_braces_and_square_brackets.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/simple_cases/preview_hug_parens_with_braces_and_square_brackets.py +snapshot_kind: text --- ## Input @@ -539,5 +540,3 @@ foo(*[ str(i) for i in range(100000000000000000000000000000000000000000000000000000000000) ]) ``` - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@blank_line_before_class_docstring.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@blank_line_before_class_docstring.py.snap index 9f3a01f99c..897eaa535a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@blank_line_before_class_docstring.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@blank_line_before_class_docstring.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/blank_line_before_class_docstring.py +snapshot_kind: text --- ## Input ```python @@ -92,6 +93,3 @@ class DocstringWithComment4: """This is a docstring.""" ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@carriage_return__string.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@carriage_return__string.py.snap index 97df9f7e82..aeb2348f71 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@carriage_return__string.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@carriage_return__string.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/carriage_return/string.py +snapshot_kind: text --- ## Input ```python @@ -21,6 +22,3 @@ backslashes or newline characters." String \" """ ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@docstring.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@docstring.py.snap index 5a9741d3b8..b439d76070 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@docstring.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@docstring.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@docstring_code_examples.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@docstring_code_examples.py.snap index f1e571e0ea..e3880d0fb8 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@docstring_code_examples.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@docstring_code_examples.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py +snapshot_kind: text --- ## Input ```python @@ -15051,6 +15052,3 @@ def markdown_skipped_rst_directive(): """ pass ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@docstring_code_examples_crlf.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@docstring_code_examples_crlf.py.snap index cc1c3b7e52..60ba598a2d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@docstring_code_examples_crlf.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@docstring_code_examples_crlf.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_crlf.py +snapshot_kind: text --- ## Input ```python @@ -42,6 +43,3 @@ def doctest_line_ending(): """ pass ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@docstring_code_examples_dynamic_line_width.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@docstring_code_examples_dynamic_line_width.py.snap index fd884666c4..50aa25960f 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@docstring_code_examples_dynamic_line_width.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@docstring_code_examples_dynamic_line_width.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_dynamic_line_width.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@docstring_newlines.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@docstring_newlines.py.snap index ee05a1d333..dfa63ea82e 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@docstring_newlines.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@docstring_newlines.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_newlines.py +snapshot_kind: text --- ## Input ```python @@ -120,6 +121,3 @@ def test7(): """ ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@docstring_non_visible_characters.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@docstring_non_visible_characters.py.snap index 9029655d5a..502ba11a38 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@docstring_non_visible_characters.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@docstring_non_visible_characters.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_non_visible_characters.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@docstring_tab_indentation.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@docstring_tab_indentation.py.snap index 01089b0c96..05ac1a888d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@docstring_tab_indentation.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@docstring_tab_indentation.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_tab_indentation.py +snapshot_kind: text --- ## Input ```python @@ -265,6 +266,3 @@ def ascii_art(): d e """ ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@empty_multiple_trailing_newlines.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@empty_multiple_trailing_newlines.py.snap index 3346623b73..500a705577 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@empty_multiple_trailing_newlines.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@empty_multiple_trailing_newlines.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_multiple_trailing_newlines.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@empty_now_newline.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@empty_now_newline.py.snap index cc9ebfcc7e..4d3261a9d4 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@empty_now_newline.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@empty_now_newline.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_now_newline.py +snapshot_kind: text --- ## Input ```python @@ -9,6 +10,3 @@ input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_now_ ## Output ```python ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@empty_trailing_newline.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@empty_trailing_newline.py.snap index 6caaf01e0e..0e5082e40d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@empty_trailing_newline.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@empty_trailing_newline.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_trailing_newline.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@empty_whitespace.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@empty_whitespace.py.snap index 48184db5a3..92ad1d52a8 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@empty_whitespace.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@empty_whitespace.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_whitespace.py +snapshot_kind: text --- ## Input ```python @@ -9,6 +10,3 @@ input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_whit ## Output ```python ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__annotated_assign.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__annotated_assign.py.snap index 0ce76c8751..9afbb316f1 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__annotated_assign.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__annotated_assign.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/annotated_assign.py +snapshot_kind: text --- ## Input ```python @@ -32,6 +33,3 @@ b: list[ int, ] = [1, 2] ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__attribute.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__attribute.py.snap index bbcc0efd95..b0f564cacd 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__attribute.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__attribute.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/attribute.py +snapshot_kind: text --- ## Input ```python @@ -295,6 +296,3 @@ result = ( + 1 ).bit_length() ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__await.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__await.py.snap index 9a9a7da7cb..de396cccfb 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__await.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__await.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/await.py +snapshot_kind: text --- ## Input ```python @@ -141,6 +142,3 @@ test_data = await ( .to_list() ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__binary.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__binary.py.snap index 1d59b5b13a..82d426ac70 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__binary.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__binary.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/binary.py +snapshot_kind: text --- ## Input ```python @@ -897,6 +898,3 @@ if True: "a notification." ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_implicit_string.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_implicit_string.py.snap index 585f222d40..99b2eb9152 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_implicit_string.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_implicit_string.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/binary_implicit_string.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_pow_spacing.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_pow_spacing.py.snap index f54dfeb51c..cfe6481172 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_pow_spacing.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_pow_spacing.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/binary_pow_spacing.py +snapshot_kind: text --- ## Input ```python @@ -29,6 +30,3 @@ None**None # Space "a" ** "b" ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__boolean_operation.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__boolean_operation.py.snap index 74c03816e9..592c544678 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__boolean_operation.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__boolean_operation.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/boolean_operation.py +snapshot_kind: text --- ## Input ```python @@ -401,6 +402,3 @@ if ( ): pass ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__bytes.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__bytes.py.snap index 852c7b9228..b283d84cfb 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__bytes.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__bytes.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/bytes.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__call.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__call.py.snap index 1b35bce81b..6b5d7bfa99 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__call.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__call.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/call.py +snapshot_kind: text --- ## Input ```python @@ -556,6 +557,3 @@ result = ( result = (object[complicate_caller])("argument").a["b"].test(argument) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__compare.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__compare.py.snap index 314a53513b..431223f6b4 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__compare.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__compare.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/compare.py +snapshot_kind: text --- ## Input ```python @@ -418,6 +419,3 @@ c = ( "b" > b ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__dict.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__dict.py.snap index 6ecda476dd..1575a817d2 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__dict.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__dict.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/dict.py +snapshot_kind: text --- ## Input ```python @@ -256,6 +257,3 @@ query = { ): [clause for kf_pair in queries for clause in kf_pair["fragment"]] } ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__dict_comp.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__dict_comp.py.snap index 56181cd10a..fefd84ab81 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__dict_comp.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__dict_comp.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/dict_comp.py +snapshot_kind: text --- ## Input ```python @@ -403,6 +404,3 @@ query = { for key, queries in self._filters.items() } ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__fstring_py312.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__fstring_py312.py.snap index 75b2a13bdc..c482707871 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__fstring_py312.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__fstring_py312.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/fstring_py312.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__generator_exp.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__generator_exp.py.snap index 4818acca87..d19ce0f393 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__generator_exp.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__generator_exp.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/generator_exp.py +snapshot_kind: text --- ## Input ```python @@ -159,6 +160,3 @@ tuple( ) ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__hug.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__hug.py.snap index d620e52c60..0d15585887 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__hug.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__hug.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/hug.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__if.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__if.py.snap index e73a5515f3..cd1823865e 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__if.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__if.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/if.py +snapshot_kind: text --- ## Input ```python @@ -241,6 +242,3 @@ def something(): ) ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__join_implicit_concatenated_string.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__join_implicit_concatenated_string.py.snap index bfab700e2e..0b033ce915 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__join_implicit_concatenated_string.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__join_implicit_concatenated_string.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/join_implicit_concatenated_string.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__join_implicit_concatenated_string_assignment.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__join_implicit_concatenated_string_assignment.py.snap index 046264fe53..c160fa4dc9 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__join_implicit_concatenated_string_assignment.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__join_implicit_concatenated_string_assignment.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/join_implicit_concatenated_string_assignment.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__join_implicit_concatenated_string_preserve.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__join_implicit_concatenated_string_preserve.py.snap index 72e46d20bf..aa52acf554 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__join_implicit_concatenated_string_preserve.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__join_implicit_concatenated_string_preserve.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/join_implicit_concatenated_string_preserve.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__lambda.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__lambda.py.snap index e9874be9de..03332c6f92 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__lambda.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__lambda.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/lambda.py +snapshot_kind: text --- ## Input ```python @@ -473,6 +474,3 @@ def a(): g=10, ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__list.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__list.py.snap index b798984c65..4fbc4185fc 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__list.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__list.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/list.py +snapshot_kind: text --- ## Input ```python @@ -127,6 +128,3 @@ c1 = [ # trailing open bracket ), ] # outer comment ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__list_comp.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__list_comp.py.snap index ca2f9d45d2..b40606ac69 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__list_comp.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__list_comp.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/list_comp.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__named_expr.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__named_expr.py.snap index 0425268563..5e2c2087b6 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__named_expr.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__named_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/named_expr.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__number.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__number.py.snap index fe8a33ef8e..349ea964aa 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__number.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__number.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/number.py +snapshot_kind: text --- ## Input ```python @@ -23,6 +24,3 @@ input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression 1.0e1 1.1e1 ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__optional_parentheses_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__optional_parentheses_comments.py.snap index d577bea205..1b3497db8a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__optional_parentheses_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__optional_parentheses_comments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/optional_parentheses_comments.py +snapshot_kind: text --- ## Input ```python @@ -419,6 +420,3 @@ def test6(): # 89 characters parenthesized (collapse) return aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbvvvvvvvv # c ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__set_comp.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__set_comp.py.snap index b73d9a599e..179af7f4cd 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__set_comp.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__set_comp.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/set_comp.py +snapshot_kind: text --- ## Input ```python @@ -123,6 +124,3 @@ selected_choices = { if str(v) not in self.choices.field.empty_values } ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__slice.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__slice.py.snap index 7e12e24474..1d2eec247c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__slice.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__slice.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/slice.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__split_empty_brackets.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__split_empty_brackets.py.snap index 2c9fb1d380..65fa97cca4 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__split_empty_brackets.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__split_empty_brackets.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/split_empty_brackets.py +snapshot_kind: text --- ## Input ```python @@ -212,6 +213,3 @@ response = await sync_to_async( return await self.http_client.fetch( f"http://127.0.0.1:{self.port}{path}", ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__starred.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__starred.py.snap index 225242f034..dc468322eb 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__starred.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__starred.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/starred.py +snapshot_kind: text --- ## Input ```python @@ -99,6 +100,3 @@ call( ), ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__subscript.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__subscript.py.snap index 71fee09c21..4a97d4ebe8 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__subscript.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__subscript.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/subscript.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__tuple.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__tuple.py.snap index 1aa67094d5..00489faf9c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__tuple.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__tuple.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/tuple.py +snapshot_kind: text --- ## Input ```python @@ -283,6 +284,3 @@ i1 = ( "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", ) # This should break ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__unary.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__unary.py.snap index 0d80fc1a25..67f54f9da9 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__unary.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__unary.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/unary.py +snapshot_kind: text --- ## Input ```python @@ -415,6 +416,3 @@ def foo(): ): pass ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__unsplittable.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__unsplittable.py.snap index a40713b2d1..647fded93d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__unsplittable.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__unsplittable.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/unsplittable.py +snapshot_kind: text --- ## Input ```python @@ -217,6 +218,3 @@ def f(): True ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__yield.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__yield.py.snap index 0649b92081..32b57b37b1 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__yield.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__yield.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/yield.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__yield_from.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__yield_from.py.snap index cfbea8ba9a..dd3e64383f 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__yield_from.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__yield_from.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/yield_from.py +snapshot_kind: text --- ## Input ```python @@ -69,6 +70,3 @@ def foo(): yield (yield from l) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__comments.py.snap index a84753bdf6..6522d4e8ff 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__comments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/comments.py +snapshot_kind: text --- ## Input ```python @@ -65,6 +66,3 @@ def test(): # fmt: off # a trailing comment ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__empty_file.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__empty_file.py.snap index ea604491f3..98272aa0c3 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__empty_file.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__empty_file.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/empty_file.py +snapshot_kind: text --- ## Input ```python @@ -19,6 +20,3 @@ input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off # fmt: on ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_docstring.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_docstring.py.snap index 7c1a60237f..8d687c5eae 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_docstring.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_docstring.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/fmt_off_docstring.py +snapshot_kind: text --- ## Input ```python @@ -100,6 +101,3 @@ def test(): and_this + gets + formatted + too ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_deep_nested_trailing_comment.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_deep_nested_trailing_comment.py.snap index 474830dfe1..7adb22ee55 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_deep_nested_trailing_comment.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_deep_nested_trailing_comment.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/fmt_off_unclosed_deep_nested_trailing_comment.py +snapshot_kind: text --- ## Input ```python @@ -25,6 +26,3 @@ if True: if False: x: int # Optional[int] ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_trailing_comment.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_trailing_comment.py.snap index 2fb64fea20..e615c7b697 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_trailing_comment.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_trailing_comment.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/fmt_off_unclosed_trailing_comment.py +snapshot_kind: text --- ## Input ```python @@ -25,6 +26,3 @@ from dataclasses import dataclass class A: x: int # Optional[int] ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__form_feed.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__form_feed.py.snap index e5fb8812dc..1ce5808e85 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__form_feed.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__form_feed.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/form_feed.py +snapshot_kind: text --- ## Input ```python @@ -24,6 +25,3 @@ def test(): def test(): pass ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__indent.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__indent.py.snap index f0f8cce20b..d7752e3cc9 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__indent.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__indent.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/indent.py +snapshot_kind: text --- ## Input ```python @@ -62,6 +63,3 @@ source_type = Python ```python ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__last_statement.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__last_statement.py.snap index 311edae552..973ed62808 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__last_statement.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__last_statement.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/last_statement.py +snapshot_kind: text --- ## Input ```python @@ -30,6 +31,3 @@ def test(): a + b # formatted ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__mixed_space_and_tab.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__mixed_space_and_tab.py.snap index 1fe337eadb..d6786958b8 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__mixed_space_and_tab.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__mixed_space_and_tab.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/mixed_space_and_tab.py +snapshot_kind: text --- ## Input ```python @@ -125,6 +126,3 @@ not_fixed # fmt: on ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__newlines.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__newlines.py.snap index 9faec5b646..3d84932a69 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__newlines.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__newlines.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/newlines.py +snapshot_kind: text --- ## Input ```python @@ -85,6 +86,3 @@ def func(): def func(): pass ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__no_fmt_on.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__no_fmt_on.py.snap index f66b8bad7d..5174d25c8d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__no_fmt_on.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__no_fmt_on.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/no_fmt_on.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__off_on_off_on.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__off_on_off_on.py.snap index c06d40dd9c..0d3da965aa 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__off_on_off_on.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__off_on_off_on.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/off_on_off_on.py +snapshot_kind: text --- ## Input ```python @@ -151,6 +152,3 @@ def test (): a + b ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__simple.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__simple.py.snap index 727884cef7..7a80aaacce 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__simple.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__simple.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/simple.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_comments.py.snap index c56a1c47b2..a4eb13b410 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_comments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/trailing_comments.py +snapshot_kind: text --- ## Input ```python @@ -90,6 +91,3 @@ def test3 (): # fmt: on ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_semicolon.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_semicolon.py.snap index 1fba95d615..22a0a82413 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_semicolon.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_semicolon.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/trailing_semicolon.py +snapshot_kind: text --- ## Input ```python @@ -64,6 +65,3 @@ a = 10 # fmt: off last_statement_with_semi ; ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__yapf.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__yapf.py.snap index 7f3b39a0c4..77fe95026a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__yapf.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__yapf.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/yapf.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__decorators.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__decorators.py.snap index 563c35b5d4..6e2192b520 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__decorators.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__decorators.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/decorators.py +snapshot_kind: text --- ## Input ```python @@ -71,6 +72,3 @@ class Foo: # fmt: skip def foo(): # fmt: skip pass ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__docstrings.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__docstrings.py.snap index 72456f720c..d473520c8a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__docstrings.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__docstrings.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/docstrings.py +snapshot_kind: text --- ## Input ```python @@ -35,6 +36,3 @@ def test(): and_this + gets + formatted + too ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__match.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__match.py.snap index 9d8481a058..1381d6e25d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__match.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__match.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/match.py +snapshot_kind: text --- ## Input ```python @@ -158,6 +159,3 @@ match point: case Point(x, y): print(f"Point is not on the diagonal.") ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__or_else.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__or_else.py.snap index d68da5658d..a4d535404b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__or_else.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__or_else.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/or_else.py +snapshot_kind: text --- ## Input ```python @@ -71,6 +72,3 @@ else : # fmt: skip finally : # fmt: skip finally_call() ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__parentheses.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__parentheses.py.snap index 27719c174a..7515f3c860 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__parentheses.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__parentheses.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/parentheses.py +snapshot_kind: text --- ## Input ```python @@ -49,6 +50,3 @@ if ( # trailing open parentheses comment ) and y: # fmt: skip pass ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__reason.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__reason.py.snap index 296742a0ac..7ad73e8267 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__reason.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__reason.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/reason.py +snapshot_kind: text --- ## Input ```python @@ -27,6 +28,3 @@ x = 1 # fmt: skip reason x = 1 # fmt: skip - reason x = 1 # fmt: skip; noqa ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__trailing_semi.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__trailing_semi.py.snap index 55c9a112e8..f059e4257f 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__trailing_semi.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__trailing_semi.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/trailing_semi.py +snapshot_kind: text --- ## Input ```python @@ -29,6 +30,3 @@ x = 1 # ; # fmt: skip _ # unrelated semicolon ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__type_params.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__type_params.py.snap index e38376ca8d..93eb2442bd 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__type_params.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__type_params.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/type_params.py +snapshot_kind: text --- ## Input ```python @@ -89,6 +90,3 @@ def test [ ] () -> str: # fmt: skip ... ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@form_feed.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@form_feed.py.snap index c6a5a26dbf..a461554f7d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@form_feed.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@form_feed.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/form_feed.py +snapshot_kind: text --- ## Input ```python @@ -21,6 +22,3 @@ if symbol is not None: else: pass ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment1.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment1.py.snap index 34f9219fb3..3a74d69888 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment1.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/module_dangling_comment1.py +snapshot_kind: text --- ## Input ```python @@ -15,6 +16,3 @@ __all__ = ["X", "XK", "Xatom", "Xcursorfont", "Xutil", "display", "error", "rdb" # Shared types throughout the stub ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment2.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment2.py.snap index 768e829c77..1bce6a4e14 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment2.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/module_dangling_comment2.py +snapshot_kind: text --- ## Input ```python @@ -13,6 +14,3 @@ __all__ = ["X", "XK", "Xatom", "Xcursorfont", "Xutil", "display", "error", "rdb" __all__ = ["X", "XK", "Xatom", "Xcursorfont", "Xutil", "display", "error", "rdb"] # Shared types throughout the stub ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@multiline_string_deviations.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@multiline_string_deviations.py.snap index b04238a5ca..c4fde9b127 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@multiline_string_deviations.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@multiline_string_deviations.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/multiline_string_deviations.py +snapshot_kind: text --- ## Input ```python @@ -105,6 +106,3 @@ generated_readme = ( """.strip().format(project_name) ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@newlines.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@newlines.py.snap index 292918d126..84bd4283c4 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@newlines.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@newlines.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/newlines.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@newlines.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@newlines.pyi.snap index 121c3bb85e..f19605db1c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@newlines.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@newlines.pyi.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/newlines.pyi +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@notebook_docstring.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@notebook_docstring.py.snap index ffda594e16..3e18863e39 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@notebook_docstring.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@notebook_docstring.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/notebook_docstring.py +snapshot_kind: text --- ## Input ```python @@ -60,6 +61,3 @@ Ruff should leave it as is "another normal string" ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__call_chains.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__call_chains.py.snap index 1dfd3e8f7c..4da30d3632 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__call_chains.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__call_chains.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/call_chains.py +snapshot_kind: text --- ## Input ```python @@ -466,6 +467,3 @@ max_message_id = ( .baz() ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__expression_parentheses_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__expression_parentheses_comments.py.snap index 625d83e171..5e8e826231 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__expression_parentheses_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__expression_parentheses_comments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/expression_parentheses_comments.py +snapshot_kind: text --- ## Input ```python @@ -218,6 +219,3 @@ x = ( 1 ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__nested.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__nested.py.snap index 3616fa2267..e05c287ef6 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__nested.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__nested.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/nested.py +snapshot_kind: text --- ## Input ```python @@ -133,6 +134,3 @@ b3 = ( () ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_empty.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_empty.py.snap index 7969cd7b7d..4559988d60 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_empty.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_empty.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/opening_parentheses_comment_empty.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_value.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_value.py.snap index 2dc8136879..5638969934 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_value.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_value.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/opening_parentheses_comment_value.py +snapshot_kind: text --- ## Input ```python @@ -346,6 +347,3 @@ f5 = { # f5 i: i**2 for i in range(10) } ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@pattern__pattern_maybe_parenthesize.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@pattern__pattern_maybe_parenthesize.py.snap index 89c82dd396..80ba16a98f 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@pattern__pattern_maybe_parenthesize.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@pattern__pattern_maybe_parenthesize.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/pattern/pattern_maybe_parenthesize.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@preview.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@preview.py.snap index 96c34a25aa..c4e1bfb476 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@preview.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@preview.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/preview.py +snapshot_kind: text --- ## Input ```python @@ -237,6 +238,3 @@ def f(): collections.defaultdict(list) ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@quote_style.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@quote_style.py.snap index 68e97d27f0..293edf4573 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@quote_style.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@quote_style.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/quote_style.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__ancestory.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__ancestory.py.snap index d309ad6311..f95db3007b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__ancestory.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__ancestory.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/ancestory.py +snapshot_kind: text --- ## Input ```python @@ -48,6 +49,3 @@ def test_empty_lines (): print(" Do not format this") ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__clause_header.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__clause_header.py.snap index 8238248983..8f16a68d08 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__clause_header.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__clause_header.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/clause_header.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__comment_only_range.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__comment_only_range.py.snap index d69ceb6c42..ab845ad185 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__comment_only_range.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__comment_only_range.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/comment_only_range.py +snapshot_kind: text --- ## Input ```python @@ -21,6 +22,3 @@ def test (): print("Do not format this" ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__decorators.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__decorators.py.snap index 4b39451a05..9c7cb5ae45 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__decorators.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__decorators.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/decorators.py +snapshot_kind: text --- ## Input ```python @@ -54,6 +55,3 @@ def test( a): print("after" ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__docstring_code_examples.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__docstring_code_examples.py.snap index 13e46604e5..a97d21118f 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__docstring_code_examples.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__docstring_code_examples.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/docstring_code_examples.py +snapshot_kind: text --- ## Input ```python @@ -386,6 +387,3 @@ if True: foo, bar, quux = this_is_a_long_line(lion, giraffe, hippo, zeba, lemur, penguin, monkey) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_file.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_file.py.snap index ec7310c609..7d3842db52 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_file.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_file.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/empty_file.py +snapshot_kind: text --- ## Input ```python @@ -9,6 +10,3 @@ input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_form ## Output ```python ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_range.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_range.py.snap index 4f4a1acd1a..b2f3ea5843 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_range.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_range.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/empty_range.py +snapshot_kind: text --- ## Input ```python @@ -13,6 +14,3 @@ def test(): def test(): print( "test" ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__end_of_file.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__end_of_file.py.snap index 2ef6ce2bab..8e07b71f75 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__end_of_file.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__end_of_file.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/end_of_file.py +snapshot_kind: text --- ## Input ```python @@ -9,6 +10,3 @@ a + b``` ## Output ```python a + b``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__fmt_on_off.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__fmt_on_off.py.snap index 5ddf8a65cb..6f657b60d7 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__fmt_on_off.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__fmt_on_off.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/fmt_on_off.py +snapshot_kind: text --- ## Input ```python @@ -57,6 +58,3 @@ class MyClass: def outside_formatting_range (self): pass ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__indent.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__indent.py.snap index bf1c74c0c7..f7cbac4957 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__indent.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__indent.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/indent.py +snapshot_kind: text --- ## Input ```python @@ -305,6 +306,3 @@ def test6 (): print(3 + 4) print("Format to fix indentation") ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_comments.py.snap index 9297aa57fd..a3efadc515 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_comments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/leading_comments.py +snapshot_kind: text --- ## Input ```python @@ -77,6 +78,3 @@ def test3 (): print( "unformatted" ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_trailing_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_trailing_comments.py.snap index 37fe8c3145..1390dc17a8 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_trailing_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_trailing_comments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/leading_trailing_comments.py +snapshot_kind: text --- ## Input ```python @@ -41,6 +42,3 @@ def test (): print("Do not format this 2" ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__module.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__module.py.snap index 652bc2a605..74c420c5b2 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__module.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__module.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/module.py +snapshot_kind: text --- ## Input ```python @@ -29,6 +30,3 @@ print("still in range") print("After range end" ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__parentheses.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__parentheses.py.snap index 09ead4c89d..38ae52f175 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__parentheses.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__parentheses.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/parentheses.py +snapshot_kind: text --- ## Input ```python @@ -36,6 +37,3 @@ def format_range_after_inserted_parens (): a and item.sizing_mode is None and item.width_policy == "auto" and item.height_policy == "automatic" print("Format this") ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__range_narrowing.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__range_narrowing.py.snap index 55ee3b708d..d7fbe53c9a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__range_narrowing.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__range_narrowing.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/range_narrowing.py +snapshot_kind: text --- ## Input ```python @@ -25,6 +26,3 @@ def test (): print("nor this" ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__regressions.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__regressions.py.snap index 914a83b6e5..66151a4b7a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__regressions.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__regressions.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/regressions.py +snapshot_kind: text --- ## Input ```python @@ -166,6 +167,3 @@ def test_start (): def new_function_inserted_after_test_start(): print("This should get formatted") ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__same_line_body.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__same_line_body.py.snap index b637a77a23..38483c141b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__same_line_body.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__same_line_body.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/same_line_body.py +snapshot_kind: text --- ## Input ```python @@ -56,6 +57,3 @@ if aaaaaaaaaaaa + bbbbbbbbbbbbbb + cccccccccccccccccc + ddd: "more content to make it exceed the 88 chars limit", ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__stub.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__stub.pyi.snap index 9af5612858..c46a56df60 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__stub.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__stub.pyi.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/stub.pyi +snapshot_kind: text --- ## Input ```python @@ -56,6 +57,3 @@ class Test4: class Test4: ... ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__trailing_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__trailing_comments.py.snap index 9e6a775af7..33c059d881 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__trailing_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__trailing_comments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/trailing_comments.py +snapshot_kind: text --- ## Input ```python @@ -69,6 +70,3 @@ def test3 (): print( "world" ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__whitespace_only_range.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__whitespace_only_range.py.snap index 4e22fa6805..26548ab5f3 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__whitespace_only_range.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__whitespace_only_range.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/whitespace_only_range.py +snapshot_kind: text --- ## Input ```python @@ -20,6 +21,3 @@ def test(): def test_formatted(): pass ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@skip_magic_trailing_comma.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@skip_magic_trailing_comma.py.snap index 11509f7214..0030c400ee 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@skip_magic_trailing_comma.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@skip_magic_trailing_comma.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/skip_magic_trailing_comma.py +snapshot_kind: text --- ## Input ```python @@ -146,6 +147,3 @@ x2 = lambda y,: 1 with a: # magic trailing comma ... ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__ann_assign.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__ann_assign.py.snap index 05c3613816..eb4b02773c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__ann_assign.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__ann_assign.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/ann_assign.py +snapshot_kind: text --- ## Input ```python @@ -65,6 +66,3 @@ class DefaultRunner: DefaultTaskRunner ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__assert.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__assert.py.snap index 2bc958df25..648583c0cb 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__assert.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__assert.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/assert.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__assign.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__assign.py.snap index 832fadbd6b..81529c8997 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__assign.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__assign.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/assign.py +snapshot_kind: text --- ## Input ```python @@ -163,6 +164,3 @@ c = b[dddddd, aaaaaa] = ( # comment ) = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__assignment_split_value_first.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__assignment_split_value_first.py.snap index 0bd2c2c1d1..53b78380e8 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__assignment_split_value_first.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__assignment_split_value_first.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/assignment_split_value_first.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__aug_assign.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__aug_assign.py.snap index 583b2f7c63..404bd30502 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__aug_assign.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__aug_assign.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/aug_assign.py +snapshot_kind: text --- ## Input ```python @@ -20,6 +21,3 @@ greeting += ( % len(name) ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__break.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__break.py.snap index f7e6ec7f46..9bc6b02966 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__break.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__break.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/break.py +snapshot_kind: text --- ## Input ```python @@ -19,6 +20,3 @@ while True: # block comment break # break comment # post comment ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__class_definition.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__class_definition.py.snap index db9773291b..2bf875ea66 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__class_definition.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__class_definition.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/class_definition.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__delete.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__delete.py.snap index 931b4a6da7..588f6fe42b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__delete.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__delete.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/delete.py +snapshot_kind: text --- ## Input ```python @@ -232,6 +233,3 @@ del ( # dangling end of line comment # dangling own line comment ) # trailing statement comment ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__ellipsis.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__ellipsis.pyi.snap index 89bab19aef..b69087e003 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__ellipsis.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__ellipsis.pyi.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/ellipsis.pyi +snapshot_kind: text --- ## Input ```python @@ -197,6 +198,3 @@ try: ... # comment except: ... # comment finally: ... # comment ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__for.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__for.py.snap index fbf7fb7e75..484a0dee91 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__for.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__for.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/for.py +snapshot_kind: text --- ## Input ```python @@ -161,6 +162,3 @@ for ( ) in relations.items(): pass ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__function.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__function.py.snap index 64eaa01b0b..be06b9daf6 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__function.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__function.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__global.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__global.py.snap index 27743bbf79..f963dd53b8 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__global.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__global.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/global.py +snapshot_kind: text --- ## Input ```python @@ -46,6 +47,3 @@ def f(): def f(): global analyze_featuremap_layer, analyze_featuremapcompression_layer, analyze_latencies_post, analyze_motions_layer, analyze_size_model # end-of-line comment ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__if.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__if.py.snap index 9bc4576203..7becf78515 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__if.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__if.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/if.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__import.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__import.py.snap index 00ab19b271..960d24aa28 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__import.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__import.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/import.py +snapshot_kind: text --- ## Input ```python @@ -187,6 +188,3 @@ import os # comment x = 1 ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__import_from.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__import_from.py.snap index d650fd8548..45626f76cd 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__import_from.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__import_from.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/import_from.py +snapshot_kind: text --- ## Input ```python @@ -120,6 +121,3 @@ from a import ( # comment from tqdm.auto import tqdm ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__long_type_annotations.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__long_type_annotations.py.snap index 39bde3ee75..a7fff93b31 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__long_type_annotations.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__long_type_annotations.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/long_type_annotations.py +snapshot_kind: text --- ## Input ```python @@ -347,6 +348,3 @@ nested_comment: None | [ str ] = None ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__match.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__match.py.snap index e12a5cf5a6..141e5590d6 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__match.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__match.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/match.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__module_comment.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__module_comment.py.snap index 075458da5a..ac5e757c1b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__module_comment.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__module_comment.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/module_comment.py +snapshot_kind: text --- ## Input ```python @@ -14,6 +15,3 @@ input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/ ```python # hehehe >:)a ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__nonlocal.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__nonlocal.py.snap index c9fc2a5993..cddbf5c2c3 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__nonlocal.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__nonlocal.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/nonlocal.py +snapshot_kind: text --- ## Input ```python @@ -46,6 +47,3 @@ def f(): def f(): nonlocal analyze_featuremap_layer, analyze_featuremapcompression_layer, analyze_latencies_post, analyze_motions_layer, analyze_size_model # end-of-line comment ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__raise.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__raise.py.snap index 0e5676f0b4..ba7b568f51 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__raise.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__raise.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/raise.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__return.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__return.py.snap index 8ea03f9211..01f442e545 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__return.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__return.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return.py +snapshot_kind: text --- ## Input ```python @@ -119,6 +120,3 @@ def f(): output.getvalue().encode("utf-8----------------"), ) ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__return_annotation.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__return_annotation.py.snap index 86f834791a..4de17268e1 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__return_annotation.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__return_annotation.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_annotation.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_no_parameters.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_no_parameters.py.snap index 01cc4a19eb..b02e9c8718 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_no_parameters.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_no_parameters.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_no_parameters.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_parameters.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_parameters.py.snap index 20d605b884..4e0a850bba 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_parameters.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_parameters.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__stub_functions_trailing_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__stub_functions_trailing_comments.py.snap index 39b3ecb94b..9bfe8fe8fd 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__stub_functions_trailing_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__stub_functions_trailing_comments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/stub_functions_trailing_comments.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.py.snap index ad0b0871dd..7eb73c6446 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/top_level.py +snapshot_kind: text --- ## Input ```python @@ -102,6 +103,3 @@ def quux(): def quuz(): """Some docstring.""" ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.pyi.snap index 851369179a..1d6dd85093 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.pyi.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/top_level.pyi +snapshot_kind: text --- ## Input ```python @@ -160,6 +161,3 @@ class EllipsisWithLeadingComment: # leading ... ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__try.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__try.py.snap index fad6dd510e..fc6fcf4406 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__try.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__try.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/try.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__type_alias.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__type_alias.py.snap index a62550da9c..f406cf6ef1 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__type_alias.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__type_alias.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/type_alias.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__while.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__while.py.snap index bc72ff7260..6217656dda 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__while.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__while.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/while.py +snapshot_kind: text --- ## Input ```python @@ -70,6 +71,3 @@ while ( ): # comment print("Do something") ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__with_39.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__with_39.py.snap index 7dd1f089bb..7d5d4dca17 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__with_39.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__with_39.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/with_39.py +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__blank_line_after_nested_stub_class.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__blank_line_after_nested_stub_class.pyi.snap index b1b154f8dc..05d856ccf8 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__blank_line_after_nested_stub_class.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__blank_line_after_nested_stub_class.pyi.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/stub_files/blank_line_after_nested_stub_class.pyi +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__blank_line_after_nested_stub_class_eof.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__blank_line_after_nested_stub_class_eof.pyi.snap index 1841010315..d8c03ade9e 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__blank_line_after_nested_stub_class_eof.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__blank_line_after_nested_stub_class_eof.pyi.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/stub_files/blank_line_after_nested_stub_class_eof.pyi +snapshot_kind: text --- ## Input ```python @@ -55,6 +56,3 @@ class Top: # comment ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__comments.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__comments.pyi.snap index 299b986fd2..53d613c936 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__comments.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__comments.pyi.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/stub_files/comments.pyi +snapshot_kind: text --- ## Input ```python @@ -23,6 +24,3 @@ class SupportsAnext: class SupportsDunderLT: def __init__(self): ... ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__nesting.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__nesting.pyi.snap index 68fd2614d4..9a7263a2a7 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__nesting.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__nesting.pyi.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/stub_files/nesting.pyi +snapshot_kind: text --- ## Input ```python @@ -70,6 +71,3 @@ if sys.version_info > (3, 7): def f2(self) -> str: ... ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__suite.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__suite.pyi.snap index 7c2b8c94b0..289958372a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__suite.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__suite.pyi.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/stub_files/suite.pyi +snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__top_level.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__top_level.pyi.snap index d34c36b1a3..563fe96da4 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__top_level.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__top_level.pyi.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/stub_files/top_level.pyi +snapshot_kind: text --- ## Input ```python @@ -42,6 +43,3 @@ class LockType3: ... @final class LockType4: ... ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@tab_width.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@tab_width.py.snap index 48b59ad92e..6e7bbc62a0 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@tab_width.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@tab_width.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/tab_width.py +snapshot_kind: text --- ## Input ```python @@ -103,6 +104,3 @@ source_type = Python # Fits with tab width 8 (1 + " 012345678901234567890123456789012345678901234567890123456789012345678901") ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@trailing_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@trailing_comments.py.snap index 9dd7fade23..d3d09022ea 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@trailing_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@trailing_comments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/trailing_comments.py +snapshot_kind: text --- ## Input ```python @@ -75,6 +76,3 @@ i = "" #   type: Add space before two leading NBSP # A noqa as `#\u{A0}\u{A0}noqa` becomes `# \u{A0}noqa` i = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" #  noqa ``` - - - diff --git a/crates/ruff_python_formatter/tests/snapshots/format@trivia.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@trivia.py.snap index 598ee13df1..6945bd28ee 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@trivia.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@trivia.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/trivia.py +snapshot_kind: text --- ## Input ```python @@ -75,6 +76,3 @@ while b == 20: e = 50 # one empty line before ``` - - - diff --git a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax1.snap b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax1.snap index a3b74e9fad..39c3600ad3 100644 --- a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax1.snap +++ b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax1.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/parser/tests.rs expression: error +snapshot_kind: text --- ParseError { error: UnexpectedExpressionToken, diff --git a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax2.snap b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax2.snap index ba26114dd8..ce4545a699 100644 --- a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax2.snap +++ b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax2.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/parser/tests.rs expression: error +snapshot_kind: text --- ParseError { error: UnexpectedExpressionToken, diff --git a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax3.snap b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax3.snap index ba26114dd8..ce4545a699 100644 --- a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax3.snap +++ b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax3.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/parser/tests.rs expression: error +snapshot_kind: text --- ParseError { error: UnexpectedExpressionToken, diff --git a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_valid_syntax.snap b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_valid_syntax.snap index a3f88a0bb0..29cb09b85a 100644 --- a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_valid_syntax.snap +++ b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_valid_syntax.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/parser/tests.rs expression: parsed.expr() +snapshot_kind: text --- Name( ExprName { diff --git a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__ipython_escape_commands.snap b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__ipython_escape_commands.snap index d365ad3653..e5566ded21 100644 --- a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__ipython_escape_commands.snap +++ b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__ipython_escape_commands.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/parser/tests.rs expression: parsed.syntax() +snapshot_kind: text --- Module( ModModule { diff --git a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__unicode_aliases.snap b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__unicode_aliases.snap index 12dbd525ae..fe8e440c17 100644 --- a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__unicode_aliases.snap +++ b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__unicode_aliases.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/parser/tests.rs expression: suite +snapshot_kind: text --- [ Assign( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__assignment.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__assignment.snap index 4a1d92e345..40f35557b8 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__assignment.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__assignment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom.snap index f8ffac2586..2717980245 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset.snap index ae884918e1..1c53c8171b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: "lex_source_with_offset(source, TextSize::new(7))" +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset_edge.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset_edge.snap index e7376dbf3b..5302fb97c6 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset_edge.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset_edge.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: "lex_source_with_offset(source, TextSize::new(11))" +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_mac_eol.snap index 9e3a9cee5a..3e90872a52 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_mac_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: comment_until_eol(MAC_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_unix_eol.snap index 6b884348b1..d7a257a84f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_unix_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: comment_until_eol(UNIX_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_windows_eol.snap index fa24089239..5db83a7a6c 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_windows_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: comment_until_eol(WINDOWS_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__dedent_after_whitespace.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__dedent_after_whitespace.snap index 52f55ab814..6b5d886d4c 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__dedent_after_whitespace.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__dedent_after_whitespace.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_mac_eol.snap index ccb4c9f107..88cc1d1d91 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_mac_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: double_dedent_with_eol(MAC_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_mac_eol.snap index 974da6fd82..ec925b42c6 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_mac_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: double_dedent_with_tabs_eol(MAC_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_unix_eol.snap index 1e0460ca79..dd7745835f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_unix_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: double_dedent_with_tabs_eol(UNIX_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_windows_eol.snap index 6c431603c1..63dc87cdc2 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_windows_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: double_dedent_with_tabs_eol(WINDOWS_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_unix_eol.snap index 220b1d6e01..6a142d584b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_unix_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: double_dedent_with_eol(UNIX_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_windows_eol.snap index 3aee0e3cb6..cca104025a 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_windows_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: double_dedent_with_eol(WINDOWS_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__emoji_identifier.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__emoji_identifier.snap index 0a9bec6cf9..8912d40c32 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__emoji_identifier.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__emoji_identifier.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: "lex_invalid(source, Mode::Module)" +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_fstrings.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_fstrings.snap index 2e6c623f95..61c557e47b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_fstrings.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_fstrings.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_ipython_escape_command.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_ipython_escape_command.snap index 848e576a83..a66566b446 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_ipython_escape_command.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_ipython_escape_command.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_jupyter_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__escape_unicode_name.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__escape_unicode_name.snap index baa500ccb7..5e3bc9cb3b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__escape_unicode_name.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__escape_unicode_name.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring.snap index 9bb046096b..3a56937bcc 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_comments.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_comments.snap index 32c1e8d641..dae04a5f0c 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_comments.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_comments.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_conversion.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_conversion.snap index 134d038e21..80a8683277 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_conversion.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_conversion.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_escape.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_escape.snap index 081742afc5..7aae96b72f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_escape.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_escape.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_escape_braces.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_escape_braces.snap index a225b449f5..3cfba863a2 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_escape_braces.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_escape_braces.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_escape_raw.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_escape_raw.snap index f0efc08a4f..0e14fbb35d 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_escape_raw.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_escape_raw.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_expression_multiline.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_expression_multiline.snap index e3726a139c..c7fd18b79a 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_expression_multiline.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_expression_multiline.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_multiline.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_multiline.snap index c69eddd664..95c43f76d1 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_multiline.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_multiline.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_named_unicode.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_named_unicode.snap index 0f729e45f8..2ae4109360 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_named_unicode.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_named_unicode.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_named_unicode_raw.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_named_unicode_raw.snap index 3f678f2a81..b37611f0da 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_named_unicode_raw.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_named_unicode_raw.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_nested.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_nested.snap index 1aff2fa908..de3e6d60f2 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_nested.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_nested.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_parentheses.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_parentheses.snap index 1212187d91..287d62d08a 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_parentheses.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_parentheses.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_prefix.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_prefix.snap index f134fe8d99..2ee601197c 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_prefix.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_prefix.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_single_quote_escape_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_single_quote_escape_mac_eol.snap index bb5f4d7597..5476c1fa02 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_single_quote_escape_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_single_quote_escape_mac_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: fstring_single_quote_escape_eol(MAC_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_single_quote_escape_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_single_quote_escape_unix_eol.snap index ace6850825..19e0346f43 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_single_quote_escape_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_single_quote_escape_unix_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: fstring_single_quote_escape_eol(UNIX_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_single_quote_escape_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_single_quote_escape_windows_eol.snap index a3b11f3d6b..c4f595a389 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_single_quote_escape_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_single_quote_escape_windows_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: fstring_single_quote_escape_eol(WINDOWS_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_format_spec.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_format_spec.snap index a4df0afe76..400f81636f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_format_spec.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_format_spec.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_ipy_escape_command.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_ipy_escape_command.snap index 2ca6afe74c..f48c742e6d 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_ipy_escape_command.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_ipy_escape_command.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_lambda_expression.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_lambda_expression.snap index fedc3ab67c..265afe8c79 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_lambda_expression.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_lambda_expression.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_multiline_format_spec.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_multiline_format_spec.snap index a48bb8b3c2..341455e1f2 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_multiline_format_spec.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_multiline_format_spec.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_named_expression.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_named_expression.snap index d202f0fa66..8f83f01d57 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_named_expression.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_named_expression.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_nul_char.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_nul_char.snap index 2620cb6cc8..73b431eccc 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_nul_char.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_nul_char.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_mac_eol.snap index 60a396cb45..9c6494542b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_mac_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: indentation_with_eol(MAC_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_unix_eol.snap index e7eda48572..4ffc52ad99 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_unix_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: indentation_with_eol(UNIX_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_windows_eol.snap index d5966f6c55..e53ec3ae31 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_windows_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: indentation_with_eol(WINDOWS_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_big.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_big.snap index 189a89b5b8..2b34a9903d 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_big.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_big.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: "lex_invalid(source, Mode::Module)" +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_small.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_small.snap index 50a1a1564f..607a466967 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_small.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_small.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: "lex_invalid(source, Mode::Module)" +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command.snap index 87c8111347..758824dceb 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_jupyter_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_assignment.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_assignment.snap index 232b1d850f..0466d36499 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_assignment.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_assignment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_jupyter_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_indentation.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_indentation.snap index add0a35364..ca986e3a04 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_indentation.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_indentation.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_jupyter_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_mac_eol.snap index 913af5854f..ac912f1716 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_mac_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: ipython_escape_command_line_continuation_eol(MAC_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_unix_eol.snap index 4710ed4bc1..f6ff576adc 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_unix_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: ipython_escape_command_line_continuation_eol(UNIX_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_windows_eol.snap index 0e9e3bde72..344bf237bb 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_windows_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: ipython_escape_command_line_continuation_eol(WINDOWS_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_mac_eol_and_eof.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_mac_eol_and_eof.snap index 1d842b60d1..695022e09f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_mac_eol_and_eof.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_mac_eol_and_eof.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: ipython_escape_command_line_continuation_with_eol_and_eof(MAC_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_unix_eol_and_eof.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_unix_eol_and_eof.snap index 13d4cf600f..4b75406242 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_unix_eol_and_eof.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_unix_eol_and_eof.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: ipython_escape_command_line_continuation_with_eol_and_eof(UNIX_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_windows_eol_and_eof.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_windows_eol_and_eof.snap index b70e615c07..54eae10f2c 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_windows_eol_and_eof.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_windows_eol_and_eof.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: ipython_escape_command_line_continuation_with_eol_and_eof(WINDOWS_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_help_end_escape_command.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_help_end_escape_command.snap index 69e13c03bd..f4413ed56b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_help_end_escape_command.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_help_end_escape_command.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_jupyter_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_empty.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_empty.snap index 8aa9156f9f..6cd63d62b8 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_empty.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_empty.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(&source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_long.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_long.snap index b583477cdb..a3cc233123 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_long.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_long.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(&source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_single_whitespace.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_single_whitespace.snap index 0c4d6c8372..ab484bbdd0 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_single_whitespace.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_single_whitespace.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(&source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_whitespace.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_whitespace.snap index f2e37aa31d..027d1d6caf 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_whitespace.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_whitespace.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(&source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__logical_newline_line_comment.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__logical_newline_line_comment.snap index 151f5dedd4..63eaf712c1 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__logical_newline_line_comment.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__logical_newline_line_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__match_softkeyword_in_notebook.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__match_softkeyword_in_notebook.snap index a8c2f875ea..c27d0b2419 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__match_softkeyword_in_notebook.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__match_softkeyword_in_notebook.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_jupyter_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_mac_eol.snap index f9e862dc9f..b3b0180cf9 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_mac_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: newline_in_brackets_eol(MAC_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_unix_eol.snap index 82230da340..57cf72a871 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_unix_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: newline_in_brackets_eol(UNIX_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_windows_eol.snap index b1901506c7..2db482fb79 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_windows_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: newline_in_brackets_eol(WINDOWS_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__non_logical_newline_in_string_continuation.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__non_logical_newline_in_string_continuation.snap index 48356832bc..947c612cc9 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__non_logical_newline_in_string_continuation.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__non_logical_newline_in_string_continuation.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__numbers.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__numbers.snap index ee49b4ab27..f957d1f50b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__numbers.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__numbers.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__operators.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__operators.snap index 3a241f6c7c..3c0b9abbf4 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__operators.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__operators.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string.snap index c045c602e2..909c5edd9b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_mac_eol.snap index 3df752853b..47c35076b3 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_mac_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: string_continuation_with_eol(MAC_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_unix_eol.snap index e7413d1002..94f8a1dbc4 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_unix_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: string_continuation_with_eol(UNIX_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_windows_eol.snap index ac945e5ace..906eb37faf 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_windows_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: string_continuation_with_eol(WINDOWS_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__tet_too_low_dedent.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__tet_too_low_dedent.snap index 166877fd0e..e5dd55522e 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__tet_too_low_dedent.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__tet_too_low_dedent.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: "lex_invalid(source, Mode::Module)" +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_mac_eol.snap index 6dcccf3fdb..70820bcf5d 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_mac_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: triple_quoted_eol(MAC_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_unix_eol.snap index 70f9c06af3..7b51869281 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_unix_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: triple_quoted_eol(UNIX_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_windows_eol.snap index 8dcdd0461c..c53f4f93fc 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_windows_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: triple_quoted_eol(WINDOWS_EOL) +snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__backspace_alias.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__backspace_alias.snap index 0de05e40c1..84fbc3cae0 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__backspace_alias.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__backspace_alias.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__bell_alias.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__bell_alias.snap index 1908b77a61..4cfaed6c05 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__bell_alias.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__bell_alias.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__carriage_return_alias.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__carriage_return_alias.snap index 2768101d4e..9fce7955de 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__carriage_return_alias.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__carriage_return_alias.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__character_tabulation_with_justification_alias.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__character_tabulation_with_justification_alias.snap index 5541c02008..9f6bf06e28 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__character_tabulation_with_justification_alias.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__character_tabulation_with_justification_alias.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__delete_alias.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__delete_alias.snap index ae82c459bf..9a8831f2db 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__delete_alias.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__delete_alias.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__dont_panic_on_8_in_octal_escape.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__dont_panic_on_8_in_octal_escape.snap index cb104bf045..3fd84081eb 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__dont_panic_on_8_in_octal_escape.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__dont_panic_on_8_in_octal_escape.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Assign( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__double_quoted_byte.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__double_quoted_byte.snap index 57a9e8453d..fd003b6a4a 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__double_quoted_byte.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__double_quoted_byte.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__escape_alias.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__escape_alias.snap index 5d12fcf17a..d924ebd21a 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__escape_alias.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__escape_alias.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__escape_char_in_byte_literal.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__escape_char_in_byte_literal.snap index 0938c2e966..e830dd89ea 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__escape_char_in_byte_literal.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__escape_char_in_byte_literal.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__escape_octet.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__escape_octet.snap index b1d9bc5d1d..cf13defcb6 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__escape_octet.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__escape_octet.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__form_feed_alias.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__form_feed_alias.snap index 169580478a..bd6d960559 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__form_feed_alias.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__form_feed_alias.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_constant_range.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_constant_range.snap index 1fb97ef52c..99985450fd 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_constant_range.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_constant_range.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_escaped_character.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_escaped_character.snap index ac60d76a17..2721f57e77 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_escaped_character.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_escaped_character.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_escaped_newline.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_escaped_newline.snap index 0c9226d1bc..44b3a5dcad 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_escaped_newline.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_escaped_newline.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_line_continuation.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_line_continuation.snap index c4309c2577..898ff2d347 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_line_continuation.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_line_continuation.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_parse_self_documenting_base.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_parse_self_documenting_base.snap index f7b2fe35ad..1f21cd2286 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_parse_self_documenting_base.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_parse_self_documenting_base.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_parse_self_documenting_base_more.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_parse_self_documenting_base_more.snap index 378a47ac0b..9a6ed32258 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_parse_self_documenting_base_more.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_parse_self_documenting_base_more.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_parse_self_documenting_format.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_parse_self_documenting_format.snap index e1fe9b94f7..8c786dbbd1 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_parse_self_documenting_format.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_parse_self_documenting_format.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_unescaped_newline.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_unescaped_newline.snap index 19af05c881..eedba2c8bc 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_unescaped_newline.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__fstring_unescaped_newline.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__hts_alias.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__hts_alias.snap index 53588d5dc8..c65231cc33 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__hts_alias.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__hts_alias.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_byte_literal_error.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_byte_literal_error.snap index cfd2346294..ee80a30310 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_byte_literal_error.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_byte_literal_error.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: error +snapshot_kind: text --- ParseError { error: Lexical( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_literal.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_literal.snap index 05ba4616d5..ea4afbab7e 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_literal.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_literal.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: error +snapshot_kind: text --- ParseError { error: Lexical( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_name_error.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_name_error.snap index d657f5063d..ce1df14dc8 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_name_error.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_name_error.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: error +snapshot_kind: text --- ParseError { error: Lexical( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_lbrace_error.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_lbrace_error.snap index fec204c0df..5b61d84958 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_lbrace_error.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_lbrace_error.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: error +snapshot_kind: text --- ParseError { error: Lexical( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_rbrace_error.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_rbrace_error.snap index c052b292f5..20927a8b12 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_rbrace_error.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_rbrace_error.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: error +snapshot_kind: text --- ParseError { error: Lexical( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_empty_fstring.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_empty_fstring.snap index 5b96c7e0fa..ffd0191500 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_empty_fstring.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_empty_fstring.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: "parse_suite(r#\"f\"\"\"#).unwrap()" +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_1.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_1.snap index e5a9defe32..983da17da4 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_1.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_1.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_2.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_2.snap index e5a9defe32..983da17da4 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_2.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_2.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_3.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_3.snap index 80271443bf..8479de9437 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_3.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_3.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_4.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_4.snap index db9e2af4d5..56a819bd71 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_4.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_f_string_concat_4.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring.snap index d482341170..4ec8dc27be 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_equals.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_equals.snap index e543128f90..58821196bd 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_equals.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_equals.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_nested_concatenation_string_spec.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_nested_concatenation_string_spec.snap index 1ffe597771..9e5b4a2fc8 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_nested_concatenation_string_spec.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_nested_concatenation_string_spec.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_nested_spec.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_nested_spec.snap index 0a3252e55a..28e6e4a2a1 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_nested_spec.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_nested_spec.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_nested_string_spec.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_nested_string_spec.snap index e93879ed2e..9dae288239 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_nested_string_spec.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_nested_string_spec.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_not_equals.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_not_equals.snap index 217f80fa04..d5884e9d75 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_not_equals.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_not_equals.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_not_nested_spec.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_not_nested_spec.snap index 013a9e508c..738b731a41 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_not_nested_spec.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_not_nested_spec.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_self_doc_prec_space.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_self_doc_prec_space.snap index aae7697356..e1d2941dc5 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_self_doc_prec_space.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_self_doc_prec_space.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_self_doc_trailing_space.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_self_doc_trailing_space.snap index d571a2b65a..e5857594c1 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_self_doc_trailing_space.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_self_doc_trailing_space.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_yield_expr.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_yield_expr.snap index 6f08477802..3dca1cc84b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_yield_expr.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_fstring_yield_expr.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_string_concat.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_string_concat.snap index 916b964cc8..11f5a0bd1f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_string_concat.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_string_concat.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_string_triple_quotes_with_kind.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_string_triple_quotes_with_kind.snap index 03698da5d6..cdf62c658a 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_string_triple_quotes_with_kind.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_string_triple_quotes_with_kind.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_f_string_concat_1.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_f_string_concat_1.snap index cdea22b209..2d864494e5 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_f_string_concat_1.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_f_string_concat_1.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_f_string_concat_2.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_f_string_concat_2.snap index d4f17c4620..e3bafd8a1f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_f_string_concat_2.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_f_string_concat_2.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_string_concat_1.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_string_concat_1.snap index 2630c0747f..ea637bffc3 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_string_concat_1.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_string_concat_1.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_string_concat_2.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_string_concat_2.snap index 6aebfcab16..7748193e5b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_string_concat_2.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__parse_u_string_concat_2.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__raw_byte_literal_1.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__raw_byte_literal_1.snap index aca165c1ee..68da7f5aaa 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__raw_byte_literal_1.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__raw_byte_literal_1.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__raw_byte_literal_2.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__raw_byte_literal_2.snap index 283c38784b..6cf0a69a02 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__raw_byte_literal_2.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__raw_byte_literal_2.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__raw_fstring.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__raw_fstring.snap index b82aeffc63..ff531b735e 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__raw_fstring.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__raw_fstring.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__single_quoted_byte.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__single_quoted_byte.snap index 38f8bd2264..921213a707 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__single_quoted_byte.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__single_quoted_byte.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__string_parser_escaped_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__string_parser_escaped_mac_eol.snap index 15a9ecaf44..67456edf4f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__string_parser_escaped_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__string_parser_escaped_mac_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__string_parser_escaped_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__string_parser_escaped_unix_eol.snap index 15a9ecaf44..67456edf4f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__string_parser_escaped_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__string_parser_escaped_unix_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__string_parser_escaped_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__string_parser_escaped_windows_eol.snap index 81cb221ae5..46afa1625b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__string_parser_escaped_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__string_parser_escaped_windows_eol.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs -expression: parse_ast +expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__triple_quoted_raw_fstring.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__triple_quoted_raw_fstring.snap index 519c65e04c..1d0ed68bc3 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__triple_quoted_raw_fstring.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__triple_quoted_raw_fstring.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/src/string.rs expression: suite +snapshot_kind: text --- [ Expr( diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_invalid_annotation.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_invalid_annotation.py.snap index 79252b34af..76f99c4e88 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_invalid_annotation.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_invalid_annotation.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/ann_assign_stmt_invalid_annotation.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_invalid_target.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_invalid_target.py.snap index 2807b90172..9bd4841679 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_invalid_target.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_invalid_target.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/ann_assign_stmt_invalid_target.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_invalid_value.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_invalid_value.py.snap index 714c5d29f5..f37b524ee3 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_invalid_value.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_invalid_value.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/ann_assign_stmt_invalid_value.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_missing_rhs.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_missing_rhs.py.snap index 96a57dfeb1..dfd20d1d11 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_missing_rhs.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_missing_rhs.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/ann_assign_stmt_missing_rhs.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_type_alias_annotation.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_type_alias_annotation.py.snap index f94c3c08e6..304d630374 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_type_alias_annotation.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@ann_assign_stmt_type_alias_annotation.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/ann_assign_stmt_type_alias_annotation.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@args_unparenthesized_generator.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@args_unparenthesized_generator.py.snap index 653de13645..47aa86d8a0 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@args_unparenthesized_generator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@args_unparenthesized_generator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/args_unparenthesized_generator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_empty_msg.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_empty_msg.py.snap index 2b54821ece..0de6bbd3f8 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_empty_msg.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_empty_msg.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/assert_empty_msg.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_empty_test.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_empty_test.py.snap index 14ef5d77db..24dfb690d2 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_empty_test.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_empty_test.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/assert_empty_test.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_invalid_msg_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_invalid_msg_expr.py.snap index e2966c3197..557cbe6bf3 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_invalid_msg_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_invalid_msg_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/assert_invalid_msg_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_invalid_test_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_invalid_test_expr.py.snap index 5135617f81..afe4aca2ba 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_invalid_test_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assert_invalid_test_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/assert_invalid_test_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_invalid_target.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_invalid_target.py.snap index 98770afc2f..8f47b9c042 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_invalid_target.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_invalid_target.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/assign_stmt_invalid_target.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_invalid_value_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_invalid_value_expr.py.snap index 3dd710665e..306a963769 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_invalid_value_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_invalid_value_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/assign_stmt_invalid_value_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_keyword_target.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_keyword_target.py.snap index 262d203221..0ed0320576 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_keyword_target.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_keyword_target.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/assign_stmt_keyword_target.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_missing_rhs.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_missing_rhs.py.snap index 0622530818..35e1921645 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_missing_rhs.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@assign_stmt_missing_rhs.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/assign_stmt_missing_rhs.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@async_unexpected_token.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@async_unexpected_token.py.snap index fb98de4ff4..678e667d88 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@async_unexpected_token.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@async_unexpected_token.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/async_unexpected_token.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@aug_assign_stmt_invalid_target.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@aug_assign_stmt_invalid_target.py.snap index e70d651f0e..17b749427a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@aug_assign_stmt_invalid_target.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@aug_assign_stmt_invalid_target.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/aug_assign_stmt_invalid_target.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@aug_assign_stmt_invalid_value.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@aug_assign_stmt_invalid_value.py.snap index 84441297a0..cd6e0380f9 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@aug_assign_stmt_invalid_value.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@aug_assign_stmt_invalid_value.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/aug_assign_stmt_invalid_value.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@aug_assign_stmt_missing_rhs.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@aug_assign_stmt_missing_rhs.py.snap index 36e0931320..d2ba825987 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@aug_assign_stmt_missing_rhs.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@aug_assign_stmt_missing_rhs.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/aug_assign_stmt_missing_rhs.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@case_expect_indented_block.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@case_expect_indented_block.py.snap index 9e736f1735..48c0bba70c 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@case_expect_indented_block.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@case_expect_indented_block.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/case_expect_indented_block.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@class_def_empty_body.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@class_def_empty_body.py.snap index 2e9bbb95f4..29be135fec 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@class_def_empty_body.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@class_def_empty_body.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/class_def_empty_body.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@class_def_missing_name.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@class_def_missing_name.py.snap index a6a65bf577..05c4ed0abc 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@class_def_missing_name.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@class_def_missing_name.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/class_def_missing_name.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@class_def_unclosed_type_param_list.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@class_def_unclosed_type_param_list.py.snap index 039c40e65e..bcbd8a0224 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@class_def_unclosed_type_param_list.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@class_def_unclosed_type_param_list.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/class_def_unclosed_type_param_list.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@clause_expect_indented_block.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@clause_expect_indented_block.py.snap index 5290039f5e..44bc4b2b51 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@clause_expect_indented_block.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@clause_expect_indented_block.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/clause_expect_indented_block.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@clause_expect_single_statement.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@clause_expect_single_statement.py.snap index e7068ac10f..6ed8d32774 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@clause_expect_single_statement.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@clause_expect_single_statement.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/clause_expect_single_statement.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_comma.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_comma.py.snap index 035ba2045c..fee330ecc2 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_comma.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_comma.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/comma_separated_missing_comma.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_comma_between_elements.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_comma_between_elements.py.snap index 78474e6cbb..39ffd3982f 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_comma_between_elements.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_comma_between_elements.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/comma_separated_missing_comma_between_elements.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_element_between_commas.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_element_between_commas.py.snap index c68307d59f..799432dc3f 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_element_between_commas.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_element_between_commas.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/comma_separated_missing_element_between_commas.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_first_element.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_first_element.py.snap index 65bb9f79c9..59fb82a1e5 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_first_element.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comma_separated_missing_first_element.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/comma_separated_missing_first_element.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comprehension_missing_for_after_async.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comprehension_missing_for_after_async.py.snap index 57fa3e1227..8713ae5f80 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comprehension_missing_for_after_async.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@comprehension_missing_for_after_async.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/comprehension_missing_for_after_async.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_invalid_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_invalid_expression.py.snap index b6e1f3f84f..b89a8c6132 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_invalid_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_invalid_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/decorator_invalid_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_missing_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_missing_expression.py.snap index 8920f84ade..38f833d040 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_missing_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_missing_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/decorator_missing_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_missing_newline.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_missing_newline.py.snap index fdbe569f7f..98cda543d8 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_missing_newline.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_missing_newline.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/decorator_missing_newline.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_unexpected_token.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_unexpected_token.py.snap index 3b1efc7102..8e3126c2e3 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_unexpected_token.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@decorator_unexpected_token.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/decorator_unexpected_token.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@del_incomplete_target.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@del_incomplete_target.py.snap index 4019e44237..99399b3d4f 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@del_incomplete_target.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@del_incomplete_target.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/del_incomplete_target.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@del_stmt_empty.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@del_stmt_empty.py.snap index f36083fc0c..da81492018 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@del_stmt_empty.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@del_stmt_empty.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/del_stmt_empty.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@dotted_name_multiple_dots.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@dotted_name_multiple_dots.py.snap index a84773ff80..281c71c151 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@dotted_name_multiple_dots.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@dotted_name_multiple_dots.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/dotted_name_multiple_dots.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_invalid_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_invalid_expression.py.snap index dacd5f5d78..3409ecda78 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_invalid_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_invalid_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/except_stmt_invalid_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_missing_as_name.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_missing_as_name.py.snap index 433c42b6c3..309e29e699 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_missing_as_name.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_missing_as_name.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/except_stmt_missing_as_name.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_missing_exception.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_missing_exception.py.snap index 6462ff8898..16e649cc7d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_missing_exception.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_missing_exception.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/except_stmt_missing_exception.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_missing_exception_and_as_name.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_missing_exception_and_as_name.py.snap index 20805396e6..ad463555ea 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_missing_exception_and_as_name.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_missing_exception_and_as_name.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/except_stmt_missing_exception_and_as_name.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_unparenthesized_tuple.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_unparenthesized_tuple.py.snap index 7b4a51d0d8..9a142e87af 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_unparenthesized_tuple.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@except_stmt_unparenthesized_tuple.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/except_stmt_unparenthesized_tuple.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__double_starred.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__double_starred.py.snap index 5a3276c6a4..346c5353a0 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__double_starred.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__double_starred.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/arguments/double_starred.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__duplicate_keyword_arguments.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__duplicate_keyword_arguments.py.snap index 2b70f716d5..d31cfdfc0b 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__duplicate_keyword_arguments.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__duplicate_keyword_arguments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/arguments/duplicate_keyword_arguments.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__invalid_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__invalid_expression.py.snap index 421422c823..70177d5520 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__invalid_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__invalid_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/arguments/invalid_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__invalid_keyword_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__invalid_keyword_expression.py.snap index ed40594a67..1f990885a4 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__invalid_keyword_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__invalid_keyword_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/arguments/invalid_keyword_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__invalid_order.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__invalid_order.py.snap index 88887650f1..b4a999a448 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__invalid_order.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__invalid_order.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/arguments/invalid_order.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__missing_argument.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__missing_argument.py.snap index dab4a4db50..2fd99bd6cb 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__missing_argument.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__missing_argument.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/arguments/missing_argument.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__missing_comma.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__missing_comma.py.snap index 229848f77f..43abd82cae 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__missing_comma.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__missing_comma.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/arguments/missing_comma.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__missing_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__missing_expression.py.snap index ca673d00fe..ed8132fa6e 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__missing_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__missing_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/arguments/missing_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__starred.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__starred.py.snap index f538b70039..3c1e2f02bb 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__starred.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__starred.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/arguments/starred.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__unclosed_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__unclosed_0.py.snap index 4f8681244d..fa0a24674c 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__unclosed_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__unclosed_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/arguments/unclosed_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__unclosed_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__unclosed_1.py.snap index 3654bb9411..1388d6761f 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__unclosed_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__unclosed_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/arguments/unclosed_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__unclosed_2.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__unclosed_2.py.snap index 2b49a046b2..df28c5c6da 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__unclosed_2.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__arguments__unclosed_2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/arguments/unclosed_2.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__attribute__invalid_member.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__attribute__invalid_member.py.snap index 17e2275533..0ab3721b7a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__attribute__invalid_member.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__attribute__invalid_member.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/attribute/invalid_member.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__attribute__multiple_dots.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__attribute__multiple_dots.py.snap index d9b4b66168..a6c1f3f614 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__attribute__multiple_dots.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__attribute__multiple_dots.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/attribute/multiple_dots.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__attribute__no_member.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__attribute__no_member.py.snap index d2eed0a8e5..9de860a7e9 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__attribute__no_member.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__attribute__no_member.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/attribute/no_member.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__await__no_expression_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__await__no_expression_0.py.snap index 0164501aa5..2c07927222 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__await__no_expression_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__await__no_expression_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/await/no_expression_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__await__no_expression_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__await__no_expression_1.py.snap index 57dc152f35..140d14011a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__await__no_expression_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__await__no_expression_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/await/no_expression_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__await__recover.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__await__recover.py.snap index e07ab46242..de33b13673 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__await__recover.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__await__recover.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/await/recover.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__invalid_rhs_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__invalid_rhs_expression.py.snap index 81f7387015..e961c326aa 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__invalid_rhs_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__invalid_rhs_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/bin_op/invalid_rhs_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__missing_lhs.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__missing_lhs.py.snap index f244c636ad..cce646dc94 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__missing_lhs.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__missing_lhs.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/bin_op/missing_lhs.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__missing_rhs_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__missing_rhs_0.py.snap index a766ceda9c..59b52ca24a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__missing_rhs_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__missing_rhs_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/bin_op/missing_rhs_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__missing_rhs_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__missing_rhs_1.py.snap index 1a5e9fb038..b6392a1552 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__missing_rhs_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__missing_rhs_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/bin_op/missing_rhs_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__multiple_ops.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__multiple_ops.py.snap index 24db57185b..2bcbe82a7e 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__multiple_ops.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__multiple_ops.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/bin_op/multiple_ops.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__named_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__named_expression.py.snap index 89624a06e8..f38974105d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__named_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__named_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/bin_op/named_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__starred_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__starred_expression.py.snap index 65f2ce048d..cc1cc268ad 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__starred_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bin_op__starred_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/bin_op/starred_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__invalid_rhs_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__invalid_rhs_expression.py.snap index 2268d3a7b0..6690771f30 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__invalid_rhs_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__invalid_rhs_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/bool_op/invalid_rhs_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__missing_lhs.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__missing_lhs.py.snap index bba4257d31..6818a4a9bf 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__missing_lhs.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__missing_lhs.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/bool_op/missing_lhs.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__missing_rhs.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__missing_rhs.py.snap index 92a7651203..16ed53c32d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__missing_rhs.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__missing_rhs.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/bool_op/missing_rhs.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__named_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__named_expression.py.snap index 782763d0da..c7af170528 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__named_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__named_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/bool_op/named_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__starred_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__starred_expression.py.snap index cc1e7edfcc..76db7d093a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__starred_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__bool_op__starred_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/bool_op/starred_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__invalid_order.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__invalid_order.py.snap index 964cd9c9e8..bb9cf68340 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__invalid_order.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__invalid_order.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/compare/invalid_order.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__invalid_rhs_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__invalid_rhs_expression.py.snap index 415395193d..90b9b4d764 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__invalid_rhs_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__invalid_rhs_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/compare/invalid_rhs_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_lhs.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_lhs.py.snap index d726803994..8eb0e29ee0 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_lhs.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_lhs.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/compare/missing_lhs.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_rhs_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_rhs_0.py.snap index d704cd736d..ddee94eb32 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_rhs_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_rhs_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/compare/missing_rhs_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_rhs_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_rhs_1.py.snap index cce5b0d788..fe3c56661c 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_rhs_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_rhs_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/compare/missing_rhs_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_rhs_2.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_rhs_2.py.snap index cf0cae2ef6..267e8dfd39 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_rhs_2.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__missing_rhs_2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/compare/missing_rhs_2.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__multiple_equals.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__multiple_equals.py.snap index 9a5bab9af8..d3879e17a8 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__multiple_equals.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__multiple_equals.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/compare/multiple_equals.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__named_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__named_expression.py.snap index 2d3c0dbb8c..27be524dd3 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__named_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__named_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/compare/named_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__starred_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__starred_expression.py.snap index 0988005a77..ac715fc3eb 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__starred_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__compare__starred_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/compare/starred_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__comprehension.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__comprehension.py.snap index aca3cd963c..5316288d28 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__comprehension.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__comprehension.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/dict/comprehension.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__double_star.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__double_star.py.snap index 98af41e0dd..51c5017b80 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__double_star.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__double_star.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/dict/double_star.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__double_star_comprehension.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__double_star_comprehension.py.snap index d6aae33ea7..a64d76004a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__double_star_comprehension.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__double_star_comprehension.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/dict/double_star_comprehension.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__missing_closing_brace_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__missing_closing_brace_0.py.snap index 4d8b3e3e6c..1772420cc3 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__missing_closing_brace_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__missing_closing_brace_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/dict/missing_closing_brace_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__missing_closing_brace_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__missing_closing_brace_1.py.snap index 6705246116..32c099e2d8 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__missing_closing_brace_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__missing_closing_brace_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/dict/missing_closing_brace_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__missing_closing_brace_2.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__missing_closing_brace_2.py.snap index 00cc3d110c..52219b3d37 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__missing_closing_brace_2.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__missing_closing_brace_2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/dict/missing_closing_brace_2.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__named_expression_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__named_expression_0.py.snap index 81078747c8..37dbfd7312 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__named_expression_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__named_expression_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/dict/named_expression_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__named_expression_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__named_expression_1.py.snap index 4776fda92b..8bdfa594b8 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__named_expression_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__named_expression_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/dict/named_expression_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__recover.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__recover.py.snap index bbb7c91204..33a294396e 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__recover.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__dict__recover.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/dict/recover.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__emoji_identifiers.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__emoji_identifiers.py.snap index c3bf1599c0..70cedec830 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__emoji_identifiers.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__emoji_identifiers.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/emoji_identifiers.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__emoji_statement.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__emoji_statement.py.snap index 7956a34adb..8738dedd6d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__emoji_statement.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__emoji_statement.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/emoji_statement.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_orelse_expr_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_orelse_expr_0.py.snap index d1405f41f7..53bcf17493 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_orelse_expr_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_orelse_expr_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/if/missing_orelse_expr_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_orelse_expr_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_orelse_expr_1.py.snap index 218a36f34c..b3bdceb24d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_orelse_expr_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_orelse_expr_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/if/missing_orelse_expr_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_test_expr_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_test_expr_0.py.snap index fe3c7bc22a..1ce6c350c0 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_test_expr_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_test_expr_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/if/missing_test_expr_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_test_expr_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_test_expr_1.py.snap index 7efd57df11..493eb3ff34 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_test_expr_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__missing_test_expr_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/if/missing_test_expr_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__recover.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__recover.py.snap index c610719116..544681b1dd 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__recover.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__if__recover.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/if/recover.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__lambda_default_parameters.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__lambda_default_parameters.py.snap index e0ae6e6e4a..3d9df97c46 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__lambda_default_parameters.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__lambda_default_parameters.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/lambda_default_parameters.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__lambda_duplicate_parameters.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__lambda_duplicate_parameters.py.snap index 3d017d058b..7d90bb96bc 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__lambda_duplicate_parameters.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__lambda_duplicate_parameters.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/lambda_duplicate_parameters.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__comprehension.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__comprehension.py.snap index be422050d7..55cc0ad09c 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__comprehension.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__comprehension.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/list/comprehension.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_0.py.snap index e7ec874488..5e81f96ceb 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/list/missing_closing_bracket_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_1.py.snap index 1c59c84935..da3aa39c67 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/list/missing_closing_bracket_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_2.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_2.py.snap index 529c718a50..f4e434adf9 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_2.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/list/missing_closing_bracket_2.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_3.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_3.py.snap index 604af52d20..31e09c2ac2 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_3.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__missing_closing_bracket_3.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/list/missing_closing_bracket_3.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__recover.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__recover.py.snap index 7b981e1dd4..ff1876c1cc 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__recover.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__recover.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/list/recover.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__star_expression_precedence.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__star_expression_precedence.py.snap index edc30e1d71..2f6b32a6ae 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__star_expression_precedence.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__list__star_expression_precedence.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/list/star_expression_precedence.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__invalid_target.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__invalid_target.py.snap index 6d494f709c..038635fa8d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__invalid_target.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__invalid_target.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/named/invalid_target.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_0.py.snap index 242e26e5f6..12ee7676da 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/named/missing_expression_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_1.py.snap index 253880c410..16d52ec731 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/named/missing_expression_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_2.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_2.py.snap index 30608f4b8a..56f90d1fe0 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_2.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/named/missing_expression_2.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_3.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_3.py.snap index 53e9b2fba0..1ed8f87cb8 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_3.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_3.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/named/missing_expression_3.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_4.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_4.py.snap index 7a1537006a..3bb178d843 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_4.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__named__missing_expression_4.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/named/missing_expression_4.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__generator.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__generator.py.snap index 3fa1fc2f2e..b68f04591e 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__generator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__generator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/parenthesized/generator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_0.py.snap index c2acf808fa..30683ad380 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/parenthesized/missing_closing_paren_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_1.py.snap index 2cac700558..64ffde419b 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/parenthesized/missing_closing_paren_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_2.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_2.py.snap index e10df7aafa..e268257d97 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_2.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/parenthesized/missing_closing_paren_2.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_3.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_3.py.snap index ad99ccea89..091cd8c26a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_3.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__missing_closing_paren_3.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/parenthesized/missing_closing_paren_3.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__parenthesized.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__parenthesized.py.snap index b8fd6f0455..e4ede8da48 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__parenthesized.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__parenthesized.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/parenthesized/parenthesized.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__tuple.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__tuple.py.snap index eac91f1998..225d5bf70c 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__tuple.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__tuple.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/parenthesized/tuple.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__tuple_starred_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__tuple_starred_expr.py.snap index 5133374b14..24fada07a6 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__tuple_starred_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__parenthesized__tuple_starred_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/parenthesized/tuple_starred_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__comprehension.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__comprehension.py.snap index 576ede44ac..85ce25515b 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__comprehension.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__comprehension.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/set/comprehension.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_0.py.snap index 5dfdee3909..cdab57cf20 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/set/missing_closing_curly_brace_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_1.py.snap index 4d1c8c9301..b447c3cbd2 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/set/missing_closing_curly_brace_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_2.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_2.py.snap index e428dc35ac..b85e57ae47 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_2.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/set/missing_closing_curly_brace_2.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_3.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_3.py.snap index 51c9034fc9..77cac8b028 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_3.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__missing_closing_curly_brace_3.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/set/missing_closing_curly_brace_3.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__recover.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__recover.py.snap index 90a625582e..641af13e09 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__recover.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__recover.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/set/recover.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__star_expression_precedence.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__star_expression_precedence.py.snap index d8b2fc7837..1b82f1b470 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__star_expression_precedence.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__set__star_expression_precedence.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/set/star_expression_precedence.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__subscript__invalid_slice_element.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__subscript__invalid_slice_element.py.snap index 26b2d038ff..40b23ecf3f 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__subscript__invalid_slice_element.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__subscript__invalid_slice_element.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/subscript/invalid_slice_element.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__subscript__unclosed_slice_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__subscript__unclosed_slice_0.py.snap index 3d89a70be4..2480021a91 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__subscript__unclosed_slice_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__subscript__unclosed_slice_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/subscript/unclosed_slice_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__subscript__unclosed_slice_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__subscript__unclosed_slice_1.py.snap index e7173c5ea1..bd258eb055 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__subscript__unclosed_slice_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__subscript__unclosed_slice_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/subscript/unclosed_slice_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary.py.snap index b5f566d249..379c262e15 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/unary.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary__named_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary__named_expression.py.snap index be7d7154c7..feeb3a56e8 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary__named_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary__named_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/unary/named_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary__no_expression_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary__no_expression_0.py.snap index 835f04ff2e..b742a1c320 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary__no_expression_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary__no_expression_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/unary/no_expression_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary__no_expression_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary__no_expression_1.py.snap index a6ff514626..6a4778efd2 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary__no_expression_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__unary__no_expression_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/unary/no_expression_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield__named_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield__named_expression.py.snap index 1d6a889540..41b3250f97 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield__named_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield__named_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/yield/named_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield__star_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield__star_expression.py.snap index 119f774e10..f6bf002f56 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield__star_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield__star_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/yield/star_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield_from__starred_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield_from__starred_expression.py.snap index d222e225b6..507caa1e49 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield_from__starred_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield_from__starred_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/yield_from/starred_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield_from__unparenthesized.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield_from__unparenthesized.py.snap index 2423b97736..6a482405dc 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield_from__unparenthesized.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@expressions__yield_from__unparenthesized.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/expressions/yield_from/unparenthesized.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_empty_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_empty_expression.py.snap index 5a731cc345..76a48f2197 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_empty_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_empty_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/f_string_empty_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_invalid_conversion_flag_name_tok.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_invalid_conversion_flag_name_tok.py.snap index 91e43094e0..4a635ad345 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_invalid_conversion_flag_name_tok.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_invalid_conversion_flag_name_tok.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/f_string_invalid_conversion_flag_name_tok.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_invalid_conversion_flag_other_tok.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_invalid_conversion_flag_other_tok.py.snap index 97b365a8dd..2f36142537 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_invalid_conversion_flag_other_tok.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_invalid_conversion_flag_other_tok.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/f_string_invalid_conversion_flag_other_tok.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_invalid_starred_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_invalid_starred_expr.py.snap index 95e958e547..e02a5c22b8 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_invalid_starred_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_invalid_starred_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/f_string_invalid_starred_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_lambda_without_parentheses.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_lambda_without_parentheses.py.snap index 254276e978..05f1e2e3ff 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_lambda_without_parentheses.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_lambda_without_parentheses.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/f_string_lambda_without_parentheses.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_unclosed_lbrace.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_unclosed_lbrace.py.snap index 1ea72f6401..939fc90c87 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_unclosed_lbrace.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_unclosed_lbrace.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/f_string_unclosed_lbrace.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_unclosed_lbrace_in_format_spec.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_unclosed_lbrace_in_format_spec.py.snap index 0ee92326b2..c72b2029e9 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_unclosed_lbrace_in_format_spec.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@f_string_unclosed_lbrace_in_format_spec.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/f_string_unclosed_lbrace_in_format_spec.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_iter_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_iter_expr.py.snap index 4561e00279..aca47e4ace 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_iter_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_iter_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/for_stmt_invalid_iter_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_target.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_target.py.snap index a3907addee..846d7f45ac 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_target.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_target.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/for_stmt_invalid_target.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_target_binary_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_target_binary_expr.py.snap index d6f322b122..0a6052ee9d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_target_binary_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_target_binary_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/for_stmt_invalid_target_binary_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_target_in_keyword.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_target_in_keyword.py.snap index c8c43ae82c..6e47652cc1 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_target_in_keyword.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_invalid_target_in_keyword.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/for_stmt_invalid_target_in_keyword.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_missing_in_keyword.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_missing_in_keyword.py.snap index f90a68d9d6..3390046c35 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_missing_in_keyword.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_missing_in_keyword.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/for_stmt_missing_in_keyword.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_missing_iter.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_missing_iter.py.snap index e130d85caa..240f900f06 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_missing_iter.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_missing_iter.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/for_stmt_missing_iter.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_missing_target.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_missing_target.py.snap index f72bfdd6ab..3c819fc472 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_missing_target.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@for_stmt_missing_target.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/for_stmt_missing_target.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_dotted_names.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_dotted_names.py.snap index 2e9373eb81..36a0203b9b 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_dotted_names.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_dotted_names.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/from_import_dotted_names.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_empty_names.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_empty_names.py.snap index 02849ea1d4..fcc56371ed 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_empty_names.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_empty_names.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/from_import_empty_names.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_missing_module.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_missing_module.py.snap index 71b24a22c4..fcf455d6ba 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_missing_module.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_missing_module.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/from_import_missing_module.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_missing_rpar.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_missing_rpar.py.snap index 3b6968126a..582bd2f14e 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_missing_rpar.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_missing_rpar.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/from_import_missing_rpar.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_star_with_other_names.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_star_with_other_names.py.snap index ca8f658ba1..93824bef84 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_star_with_other_names.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_star_with_other_names.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/from_import_star_with_other_names.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_unparenthesized_trailing_comma.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_unparenthesized_trailing_comma.py.snap index 02ff0ff974..6dbfd32f09 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_unparenthesized_trailing_comma.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@from_import_unparenthesized_trailing_comma.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/from_import_unparenthesized_trailing_comma.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_empty_body.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_empty_body.py.snap index 9a132ab9f5..1fa49e573c 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_empty_body.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_empty_body.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/function_def_empty_body.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_invalid_return_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_invalid_return_expr.py.snap index 0d1731ead8..9b30fe8ef2 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_invalid_return_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_invalid_return_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/function_def_invalid_return_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_missing_identifier.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_missing_identifier.py.snap index d8ee81f34b..12a4a4625a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_missing_identifier.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_missing_identifier.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/function_def_missing_identifier.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_missing_return_type.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_missing_return_type.py.snap index 994e34c5ce..3552186e7a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_missing_return_type.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_missing_return_type.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/function_def_missing_return_type.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_unclosed_parameter_list.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_unclosed_parameter_list.py.snap index 1b2fef4c05..c7d55eaf79 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_unclosed_parameter_list.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_unclosed_parameter_list.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/function_def_unclosed_parameter_list.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_unclosed_type_param_list.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_unclosed_type_param_list.py.snap index c7bf44d05c..8cc11d43fc 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_unclosed_type_param_list.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_unclosed_type_param_list.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/function_def_unclosed_type_param_list.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_unparenthesized_return_types.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_unparenthesized_return_types.py.snap index 0cfd37fb16..ef7baf9f91 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_unparenthesized_return_types.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@function_def_unparenthesized_return_types.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/function_def_unparenthesized_return_types.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@global_stmt_empty.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@global_stmt_empty.py.snap index 687d4df198..6a89da1d79 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@global_stmt_empty.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@global_stmt_empty.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/global_stmt_empty.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@global_stmt_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@global_stmt_expression.py.snap index a9271abcd3..b2305e0df7 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@global_stmt_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@global_stmt_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/global_stmt_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@global_stmt_trailing_comma.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@global_stmt_trailing_comma.py.snap index 008d13eb1a..b6c872e399 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@global_stmt_trailing_comma.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@global_stmt_trailing_comma.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/global_stmt_trailing_comma.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_elif_missing_colon.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_elif_missing_colon.py.snap index 5353c7589b..d891db30ae 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_elif_missing_colon.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_elif_missing_colon.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/if_stmt_elif_missing_colon.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_empty_body.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_empty_body.py.snap index 4e11284a27..9b30c83a9f 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_empty_body.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_empty_body.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/if_stmt_empty_body.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_invalid_elif_test_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_invalid_elif_test_expr.py.snap index f83040060e..dbc135744a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_invalid_elif_test_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_invalid_elif_test_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/if_stmt_invalid_elif_test_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_invalid_test_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_invalid_test_expr.py.snap index d5c0dfe0e1..558aa9bdbc 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_invalid_test_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_invalid_test_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/if_stmt_invalid_test_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_missing_colon.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_missing_colon.py.snap index 0038d2d015..b97e20e9bc 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_missing_colon.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_missing_colon.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/if_stmt_missing_colon.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_missing_test.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_missing_test.py.snap index 790cf6f41a..bc2a35ae1d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_missing_test.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_missing_test.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/if_stmt_missing_test.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_misspelled_elif.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_misspelled_elif.py.snap index f67bc96ce7..8be2a8ac49 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_misspelled_elif.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@if_stmt_misspelled_elif.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/if_stmt_misspelled_elif.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@implicitly_concatenated_unterminated_string.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@implicitly_concatenated_unterminated_string.py.snap index 2f6c6423e1..590262df43 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@implicitly_concatenated_unterminated_string.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@implicitly_concatenated_unterminated_string.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/implicitly_concatenated_unterminated_string.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@implicitly_concatenated_unterminated_string_multiline.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@implicitly_concatenated_unterminated_string_multiline.py.snap index 9479f93165..65d715c89f 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@implicitly_concatenated_unterminated_string_multiline.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@implicitly_concatenated_unterminated_string_multiline.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/implicitly_concatenated_unterminated_string_multiline.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_alias_missing_asname.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_alias_missing_asname.py.snap index 6a88db4d7b..230ad97b22 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_alias_missing_asname.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_alias_missing_asname.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/import_alias_missing_asname.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_empty.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_empty.py.snap index f63fa83d70..ad8888e518 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_empty.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_empty.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/import_stmt_empty.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_parenthesized_names.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_parenthesized_names.py.snap index 3b8a41be09..a9509f3d16 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_parenthesized_names.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_parenthesized_names.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/import_stmt_parenthesized_names.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_star_import.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_star_import.py.snap index 3cd6de4d7e..70f4c3c140 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_star_import.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_star_import.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/import_stmt_star_import.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_trailing_comma.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_trailing_comma.py.snap index aeccfea75a..f5ab95692d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_trailing_comma.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@import_stmt_trailing_comma.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/import_stmt_trailing_comma.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_byte_literal.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_byte_literal.py.snap index e8cbf9ac5d..0cb2a556d7 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_byte_literal.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_byte_literal.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/invalid_byte_literal.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_del_target.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_del_target.py.snap index 28880171aa..c3731e868d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_del_target.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_del_target.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/invalid_del_target.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_fstring_literal_element.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_fstring_literal_element.py.snap index 58211f349b..790a2e91ca 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_fstring_literal_element.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_fstring_literal_element.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/invalid_fstring_literal_element.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_string_literal.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_string_literal.py.snap index 4847bbe2ef..f459755d73 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_string_literal.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@invalid_string_literal.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/invalid_string_literal.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@lambda_body_with_starred_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@lambda_body_with_starred_expr.py.snap index bbea803b8d..98b0ef84a3 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@lambda_body_with_starred_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@lambda_body_with_starred_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/lambda_body_with_starred_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@lambda_body_with_yield_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@lambda_body_with_yield_expr.py.snap index 072a112e0c..fe4a4b01ab 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@lambda_body_with_yield_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@lambda_body_with_yield_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/lambda_body_with_yield_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_classify_as_keyword.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_classify_as_keyword.py.snap index 309fb36a80..81e020fe54 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_classify_as_keyword.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_classify_as_keyword.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/match_classify_as_keyword.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_classify_as_keyword_or_identifier.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_classify_as_keyword_or_identifier.py.snap index 7d49c6ad3c..9681e681bb 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_classify_as_keyword_or_identifier.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_classify_as_keyword_or_identifier.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/match_classify_as_keyword_or_identifier.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_expected_colon.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_expected_colon.py.snap index 4b4f623995..42e2347dd2 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_expected_colon.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_expected_colon.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/match_expected_colon.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_expect_indented_block.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_expect_indented_block.py.snap index 8964f5715f..211828f6fa 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_expect_indented_block.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_expect_indented_block.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/match_stmt_expect_indented_block.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_expected_case_block.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_expected_case_block.py.snap index aacdafae78..ec0d060459 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_expected_case_block.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_expected_case_block.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/match_stmt_expected_case_block.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_invalid_guard_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_invalid_guard_expr.py.snap index d6414cd198..5028df2a0d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_invalid_guard_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_invalid_guard_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/match_stmt_invalid_guard_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_invalid_subject_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_invalid_subject_expr.py.snap index b66638023e..e7e2359f83 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_invalid_subject_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_invalid_subject_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/match_stmt_invalid_subject_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_missing_guard_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_missing_guard_expr.py.snap index 2b4abbd637..2dbcec05b1 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_missing_guard_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_missing_guard_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/match_stmt_missing_guard_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_missing_pattern.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_missing_pattern.py.snap index da43e7947c..81183473ca 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_missing_pattern.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_missing_pattern.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/match_stmt_missing_pattern.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_no_newline_before_case.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_no_newline_before_case.py.snap index ca54385407..777094c7dc 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_no_newline_before_case.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_no_newline_before_case.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/match_stmt_no_newline_before_case.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_single_starred_subject.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_single_starred_subject.py.snap index 6926b0bda0..affa89318a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_single_starred_subject.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_stmt_single_starred_subject.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/match_stmt_single_starred_subject.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@mixed_bytes_and_non_bytes_literals.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@mixed_bytes_and_non_bytes_literals.py.snap index 0a8782484f..07d4518fcc 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@mixed_bytes_and_non_bytes_literals.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@mixed_bytes_and_non_bytes_literals.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/mixed_bytes_and_non_bytes_literals.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@multiple_clauses_on_same_line.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@multiple_clauses_on_same_line.py.snap index 652815a142..f67856c23f 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@multiple_clauses_on_same_line.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@multiple_clauses_on_same_line.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/multiple_clauses_on_same_line.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@node_range_with_gaps.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@node_range_with_gaps.py.snap index 7326c3c1a8..3d3d5bba27 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@node_range_with_gaps.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@node_range_with_gaps.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/node_range_with_gaps.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@nonlocal_stmt_empty.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@nonlocal_stmt_empty.py.snap index 63bb39d57c..08015c08ab 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@nonlocal_stmt_empty.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@nonlocal_stmt_empty.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/nonlocal_stmt_empty.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@nonlocal_stmt_expression.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@nonlocal_stmt_expression.py.snap index 1f46cd034f..7903a99470 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@nonlocal_stmt_expression.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@nonlocal_stmt_expression.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/nonlocal_stmt_expression.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@nonlocal_stmt_trailing_comma.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@nonlocal_stmt_trailing_comma.py.snap index 67e6ac6f78..4a901178b0 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@nonlocal_stmt_trailing_comma.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@nonlocal_stmt_trailing_comma.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/nonlocal_stmt_trailing_comma.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_missing_annotation.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_missing_annotation.py.snap index 215fbe03dc..b0d2dec14a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_missing_annotation.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_missing_annotation.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/param_missing_annotation.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_missing_default.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_missing_default.py.snap index 0ed6b9d9ba..f263e09822 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_missing_default.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_missing_default.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/param_missing_default.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_with_invalid_annotation.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_with_invalid_annotation.py.snap index c63c0fdb25..7315a10a91 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_with_invalid_annotation.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_with_invalid_annotation.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/param_with_invalid_annotation.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_with_invalid_default.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_with_invalid_default.py.snap index b26f96cb7a..6bbc3b41f5 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_with_invalid_default.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_with_invalid_default.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/param_with_invalid_default.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_with_invalid_star_annotation.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_with_invalid_star_annotation.py.snap index f036adb4b7..ab62d648e7 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_with_invalid_star_annotation.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@param_with_invalid_star_annotation.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/param_with_invalid_star_annotation.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_duplicate_names.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_duplicate_names.py.snap index 2ae962eaaa..f7bfc72044 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_duplicate_names.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_duplicate_names.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/params_duplicate_names.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_expected_after_star_separator.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_expected_after_star_separator.py.snap index 4e068b2b64..9a1f540021 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_expected_after_star_separator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_expected_after_star_separator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/params_expected_after_star_separator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_kwarg_after_star_separator.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_kwarg_after_star_separator.py.snap index 947b84535b..3decf036cf 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_kwarg_after_star_separator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_kwarg_after_star_separator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/params_kwarg_after_star_separator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_kwargs.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_kwargs.py.snap index dae60bc186..6fa8e4a41d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_kwargs.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_kwargs.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/params_multiple_kwargs.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_slash_separator.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_slash_separator.py.snap index 4c16a418be..5c081e0e49 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_slash_separator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_slash_separator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/params_multiple_slash_separator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_star_separator.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_star_separator.py.snap index 3b3be63cf6..68c9459f96 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_star_separator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_star_separator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/params_multiple_star_separator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_varargs.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_varargs.py.snap index eb15f21b12..4e350369bf 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_varargs.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_multiple_varargs.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/params_multiple_varargs.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_no_arg_before_slash.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_no_arg_before_slash.py.snap index 1e21ad9cff..0a3233a0be 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_no_arg_before_slash.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_no_arg_before_slash.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/params_no_arg_before_slash.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_non_default_after_default.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_non_default_after_default.py.snap index 7a8bfb0266..b8ce121d93 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_non_default_after_default.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_non_default_after_default.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/params_non_default_after_default.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_star_after_slash.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_star_after_slash.py.snap index 3537459b48..e1bb0c58b9 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_star_after_slash.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_star_after_slash.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/params_star_after_slash.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_star_separator_after_star_param.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_star_separator_after_star_param.py.snap index 4bf045bfe2..0521d51896 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_star_separator_after_star_param.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_star_separator_after_star_param.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/params_star_separator_after_star_param.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_var_keyword_with_default.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_var_keyword_with_default.py.snap index 592ed1aee9..9bde14d963 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_var_keyword_with_default.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_var_keyword_with_default.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/params_var_keyword_with_default.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_var_positional_with_default.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_var_positional_with_default.py.snap index 6d7e25d0ed..cafb4857d2 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_var_positional_with_default.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@params_var_positional_with_default.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/params_var_positional_with_default.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_invalid_cause.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_invalid_cause.py.snap index 9791d1587c..5d6d3eef90 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_invalid_cause.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_invalid_cause.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/raise_stmt_invalid_cause.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_invalid_exc.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_invalid_exc.py.snap index 1bc1f4ae38..3bb6f03074 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_invalid_exc.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_invalid_exc.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/raise_stmt_invalid_exc.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_unparenthesized_tuple_cause.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_unparenthesized_tuple_cause.py.snap index 812e245d45..c000ffe470 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_unparenthesized_tuple_cause.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_unparenthesized_tuple_cause.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/raise_stmt_unparenthesized_tuple_cause.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_unparenthesized_tuple_exc.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_unparenthesized_tuple_exc.py.snap index 529daca484..a5bd41c66e 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_unparenthesized_tuple_exc.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@raise_stmt_unparenthesized_tuple_exc.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/raise_stmt_unparenthesized_tuple_exc.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lex_logical_token.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lex_logical_token.py.snap index 3fab1c73c4..dcb1577f3e 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lex_logical_token.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lex_logical_token.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/re_lex_logical_token.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lex_logical_token_mac_eol.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lex_logical_token_mac_eol.py.snap index ae531a84c9..99399eceaa 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lex_logical_token_mac_eol.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lex_logical_token_mac_eol.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/re_lex_logical_token_mac_eol.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lex_logical_token_windows_eol.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lex_logical_token_windows_eol.py.snap index a0bb006446..912c68cf07 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lex_logical_token_windows_eol.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lex_logical_token_windows_eol.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/re_lex_logical_token_windows_eol.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__fstring_format_spec_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__fstring_format_spec_1.py.snap index 19a53beeb7..8cb0b79749 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__fstring_format_spec_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__fstring_format_spec_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/re_lexing/fstring_format_spec_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__line_continuation_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__line_continuation_1.py.snap index c0853fa67c..e2bfe5cd60 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__line_continuation_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__line_continuation_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/re_lexing/line_continuation_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__line_continuation_windows_eol.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__line_continuation_windows_eol.py.snap index 618e14d613..b7679b43b9 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__line_continuation_windows_eol.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__line_continuation_windows_eol.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/re_lexing/line_continuation_windows_eol.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__triple_quoted_fstring_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__triple_quoted_fstring_1.py.snap index 92b3156f98..93c7e8dfcc 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__triple_quoted_fstring_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__triple_quoted_fstring_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/re_lexing/triple_quoted_fstring_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__triple_quoted_fstring_2.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__triple_quoted_fstring_2.py.snap index e41ff84162..ccf98eb430 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__triple_quoted_fstring_2.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__triple_quoted_fstring_2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/re_lexing/triple_quoted_fstring_2.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__triple_quoted_fstring_3.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__triple_quoted_fstring_3.py.snap index 04335263b3..4e4ba407ee 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__triple_quoted_fstring_3.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@re_lexing__triple_quoted_fstring_3.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/re_lexing/triple_quoted_fstring_3.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@return_stmt_invalid_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@return_stmt_invalid_expr.py.snap index 855ddd3692..6653f50777 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@return_stmt_invalid_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@return_stmt_invalid_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/return_stmt_invalid_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_and_compound_stmt_on_same_line.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_and_compound_stmt_on_same_line.py.snap index 9f142a7f30..b1abaaa513 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_and_compound_stmt_on_same_line.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_and_compound_stmt_on_same_line.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/simple_and_compound_stmt_on_same_line.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_and_compound_stmt_on_same_line_in_block.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_and_compound_stmt_on_same_line_in_block.py.snap index da202a0eee..2973bbb41c 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_and_compound_stmt_on_same_line_in_block.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_and_compound_stmt_on_same_line_in_block.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/simple_and_compound_stmt_on_same_line_in_block.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_stmts_on_same_line.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_stmts_on_same_line.py.snap index 249e3eeaf2..9bfaeb67a2 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_stmts_on_same_line.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_stmts_on_same_line.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/simple_stmts_on_same_line.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_stmts_on_same_line_in_block.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_stmts_on_same_line_in_block.py.snap index 36445719b4..9f66a28749 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_stmts_on_same_line_in_block.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@simple_stmts_on_same_line_in_block.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/simple_stmts_on_same_line_in_block.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__function_type_parameters.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__function_type_parameters.py.snap index 74c0737192..b1ed4a65c4 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__function_type_parameters.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__function_type_parameters.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/function_type_parameters.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__if_extra_closing_parentheses.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__if_extra_closing_parentheses.py.snap index 7170e28dbe..a792f464f4 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__if_extra_closing_parentheses.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__if_extra_closing_parentheses.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/if_extra_closing_parentheses.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__if_extra_indent.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__if_extra_indent.py.snap index b5aee39941..4c589dda56 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__if_extra_indent.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__if_extra_indent.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/if_extra_indent.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__invalid_assignment_targets.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__invalid_assignment_targets.py.snap index 93d999de17..c5e9b195e3 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__invalid_assignment_targets.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__invalid_assignment_targets.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/invalid_assignment_targets.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__invalid_augmented_assignment_target.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__invalid_augmented_assignment_target.py.snap index c2a5904fdd..6602a88e64 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__invalid_augmented_assignment_target.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__invalid_augmented_assignment_target.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/invalid_augmented_assignment_target.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_0.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_0.py.snap index dc4b2f014a..45f7c9abf7 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_0.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_0.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/match/as_pattern_0.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_1.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_1.py.snap index 33420817cf..a2e2631cab 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/match/as_pattern_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_2.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_2.py.snap index 876b3f9e02..d44881f3fb 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_2.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/match/as_pattern_2.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_3.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_3.py.snap index b85e698131..ef627ceb55 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_3.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_3.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/match/as_pattern_3.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_4.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_4.py.snap index 8504acd1c4..a05914e033 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_4.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__as_pattern_4.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/match/as_pattern_4.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__invalid_class_pattern.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__invalid_class_pattern.py.snap index 516051a1fd..9bbae6b780 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__invalid_class_pattern.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__invalid_class_pattern.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/match/invalid_class_pattern.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__invalid_lhs_or_rhs_pattern.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__invalid_lhs_or_rhs_pattern.py.snap index 36411e6e8a..4ff9810638 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__invalid_lhs_or_rhs_pattern.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__invalid_lhs_or_rhs_pattern.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/match/invalid_lhs_or_rhs_pattern.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__invalid_mapping_pattern.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__invalid_mapping_pattern.py.snap index 9140a01656..dddbd65f4a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__invalid_mapping_pattern.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__invalid_mapping_pattern.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/match/invalid_mapping_pattern.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__star_pattern_usage.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__star_pattern_usage.py.snap index 229fca0ccd..fa73b40cf6 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__star_pattern_usage.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__star_pattern_usage.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/match/star_pattern_usage.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__unary_add_usage.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__unary_add_usage.py.snap index 5aef2aa00c..f4dfce5b70 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__unary_add_usage.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__match__unary_add_usage.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/match/unary_add_usage.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__ambiguous_lpar_with_items.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__ambiguous_lpar_with_items.py.snap index fc798e5a57..78edca9d8e 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__ambiguous_lpar_with_items.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__ambiguous_lpar_with_items.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/with/ambiguous_lpar_with_items.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__empty_with_items.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__empty_with_items.py.snap index 4020ae4c6f..4a2405c4ff 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__empty_with_items.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__empty_with_items.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/with/empty_with_items.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__unclosed_ambiguous_lpar.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__unclosed_ambiguous_lpar.py.snap index d57dd4fa53..3e9448c829 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__unclosed_ambiguous_lpar.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__unclosed_ambiguous_lpar.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/with/unclosed_ambiguous_lpar.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__unclosed_ambiguous_lpar_eof.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__unclosed_ambiguous_lpar_eof.py.snap index d6bbc87fdf..9c6ad99b9d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__unclosed_ambiguous_lpar_eof.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__unclosed_ambiguous_lpar_eof.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/with/unclosed_ambiguous_lpar_eof.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__unparenthesized_with_items.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__unparenthesized_with_items.py.snap index 49acdd3d36..f0c47e8310 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__unparenthesized_with_items.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@statements__with__unparenthesized_with_items.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/invalid/statements/with/unparenthesized_with_items.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@try_stmt_invalid_order.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@try_stmt_invalid_order.py.snap index 76f082556d..2eb034703d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@try_stmt_invalid_order.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@try_stmt_invalid_order.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/try_stmt_invalid_order.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@try_stmt_missing_except_finally.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@try_stmt_missing_except_finally.py.snap index 7ed9614848..500164d52d 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@try_stmt_missing_except_finally.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@try_stmt_missing_except_finally.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/try_stmt_missing_except_finally.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@try_stmt_misspelled_except.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@try_stmt_misspelled_except.py.snap index 3e669c93b2..4180af0311 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@try_stmt_misspelled_except.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@try_stmt_misspelled_except.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/try_stmt_misspelled_except.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_alias_incomplete_stmt.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_alias_incomplete_stmt.py.snap index 6d0087f391..8878c1663a 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_alias_incomplete_stmt.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_alias_incomplete_stmt.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/type_alias_incomplete_stmt.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_alias_invalid_value_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_alias_invalid_value_expr.py.snap index 18d1aa88e9..e039b7cae9 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_alias_invalid_value_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_alias_invalid_value_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/type_alias_invalid_value_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_invalid_bound_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_invalid_bound_expr.py.snap index 0189a0298a..ccd38751b7 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_invalid_bound_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_invalid_bound_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/type_param_invalid_bound_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_missing_bound.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_missing_bound.py.snap index a862c5c00f..0e9672fd1c 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_missing_bound.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_missing_bound.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/type_param_missing_bound.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_param_spec_bound.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_param_spec_bound.py.snap index 0a397668bf..79c0ae7689 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_param_spec_bound.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_param_spec_bound.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/type_param_param_spec_bound.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_param_spec_invalid_default_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_param_spec_invalid_default_expr.py.snap index 2b72b38ec4..8b86b5ee84 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_param_spec_invalid_default_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_param_spec_invalid_default_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/type_param_param_spec_invalid_default_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_param_spec_missing_default.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_param_spec_missing_default.py.snap index 8f0e5d21d6..8ed2eb4c05 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_param_spec_missing_default.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_param_spec_missing_default.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/type_param_param_spec_missing_default.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_invalid_default_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_invalid_default_expr.py.snap index cd92900925..a7d70ddda2 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_invalid_default_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_invalid_default_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/type_param_type_var_invalid_default_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_missing_default.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_missing_default.py.snap index 520d990513..1547b5dd00 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_missing_default.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_missing_default.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/type_param_type_var_missing_default.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_tuple_bound.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_tuple_bound.py.snap index 7eef158c8e..3e6e16fa6f 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_tuple_bound.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_tuple_bound.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/type_param_type_var_tuple_bound.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_tuple_invalid_default_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_tuple_invalid_default_expr.py.snap index 93a91038fe..c509a0e5ef 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_tuple_invalid_default_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_tuple_invalid_default_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/type_param_type_var_tuple_invalid_default_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_tuple_missing_default.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_tuple_missing_default.py.snap index 289b8bb50c..17303b6687 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_tuple_missing_default.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_type_var_tuple_missing_default.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/type_param_type_var_tuple_missing_default.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_params_empty.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_params_empty.py.snap index 7bd405e6cb..fff0c28aa0 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_params_empty.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_params_empty.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/type_params_empty.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@unterminated_fstring_newline_recovery.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@unterminated_fstring_newline_recovery.py.snap index 671610d094..dafe6ce39c 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@unterminated_fstring_newline_recovery.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@unterminated_fstring_newline_recovery.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/unterminated_fstring_newline_recovery.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@while_stmt_invalid_test_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@while_stmt_invalid_test_expr.py.snap index 0db4304449..0e8d49ac75 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@while_stmt_invalid_test_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@while_stmt_invalid_test_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/while_stmt_invalid_test_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@while_stmt_missing_colon.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@while_stmt_missing_colon.py.snap index 4f0bdeffb3..39dfbec62b 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@while_stmt_missing_colon.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@while_stmt_missing_colon.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/while_stmt_missing_colon.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@while_stmt_missing_test.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@while_stmt_missing_test.py.snap index 87534e7c81..59871538d3 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@while_stmt_missing_test.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@while_stmt_missing_test.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/while_stmt_missing_test.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@with_items_parenthesized_missing_colon.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@with_items_parenthesized_missing_colon.py.snap index e7b4961489..c73b00b2b3 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@with_items_parenthesized_missing_colon.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@with_items_parenthesized_missing_colon.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/with_items_parenthesized_missing_colon.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@with_items_parenthesized_missing_comma.py.snap b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@with_items_parenthesized_missing_comma.py.snap index 5fb688d627..817874cdbe 100644 --- a/crates/ruff_python_parser/tests/snapshots/invalid_syntax@with_items_parenthesized_missing_comma.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/invalid_syntax@with_items_parenthesized_missing_comma.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/err/with_items_parenthesized_missing_comma.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@ambiguous_lpar_with_items_binary_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@ambiguous_lpar_with_items_binary_expr.py.snap index 3f93607ce7..bfcd7c88d8 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@ambiguous_lpar_with_items_binary_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@ambiguous_lpar_with_items_binary_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/ambiguous_lpar_with_items_binary_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@ambiguous_lpar_with_items_if_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@ambiguous_lpar_with_items_if_expr.py.snap index 97bf4a9334..22de70bfc8 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@ambiguous_lpar_with_items_if_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@ambiguous_lpar_with_items_if_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/ambiguous_lpar_with_items_if_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@ann_assign_stmt_simple_target.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@ann_assign_stmt_simple_target.py.snap index ec8255148e..8dbc86f993 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@ann_assign_stmt_simple_target.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@ann_assign_stmt_simple_target.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/ann_assign_stmt_simple_target.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@args_unparenthesized_generator.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@args_unparenthesized_generator.py.snap index 1be3f89dd1..961e761f30 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@args_unparenthesized_generator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@args_unparenthesized_generator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/args_unparenthesized_generator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@assign_targets_terminator.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@assign_targets_terminator.py.snap index d74795461d..f188573e18 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@assign_targets_terminator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@assign_targets_terminator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/assign_targets_terminator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@async_for_statement.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@async_for_statement.py.snap index 0a355ffeed..dc88085678 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@async_for_statement.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@async_for_statement.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/async_for_statement.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@async_function_definition.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@async_function_definition.py.snap index e5e1e9a8ea..1ec8e02a7c 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@async_function_definition.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@async_function_definition.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/async_function_definition.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@async_with_statement.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@async_with_statement.py.snap index e1886955dd..2e7e68961e 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@async_with_statement.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@async_with_statement.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/async_with_statement.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@class_def_arguments.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@class_def_arguments.py.snap index 32b37cdae5..37e765799f 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@class_def_arguments.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@class_def_arguments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/class_def_arguments.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@comma_separated_regular_list_terminator.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@comma_separated_regular_list_terminator.py.snap index 9561ce301b..78f64ab6bd 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@comma_separated_regular_list_terminator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@comma_separated_regular_list_terminator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/comma_separated_regular_list_terminator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@decorator_async_function.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@decorator_async_function.py.snap index 7f9dac2758..53f7aff8e8 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@decorator_async_function.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@decorator_async_function.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/decorator_async_function.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@del_targets_terminator.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@del_targets_terminator.py.snap index ee24dd07e7..8c0830ab6e 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@del_targets_terminator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@del_targets_terminator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/del_targets_terminator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@dotted_name_normalized_spaces.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@dotted_name_normalized_spaces.py.snap index 356e379285..2d63a9baf1 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@dotted_name_normalized_spaces.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@dotted_name_normalized_spaces.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/dotted_name_normalized_spaces.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@except_stmt_as_name_soft_keyword.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@except_stmt_as_name_soft_keyword.py.snap index f94b60ff29..c27aa0a2e9 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@except_stmt_as_name_soft_keyword.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@except_stmt_as_name_soft_keyword.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/except_stmt_as_name_soft_keyword.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__arguments.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__arguments.py.snap index be722844ec..bf901c1519 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__arguments.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__arguments.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/arguments.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__attribute.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__attribute.py.snap index 18528873b5..2a37d0a8a9 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__attribute.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__attribute.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/attribute.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__await.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__await.py.snap index 89a451aebb..e5351ffe1e 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__await.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__await.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/await.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__bin_op.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__bin_op.py.snap index a6cc4528a1..70015f4751 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__bin_op.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__bin_op.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/bin_op.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__bool_op.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__bool_op.py.snap index d1cc881f7f..53f4b05b7a 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__bool_op.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__bool_op.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/bool_op.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__call.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__call.py.snap index b65a20feb6..a83f377442 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__call.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__call.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/call.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__compare.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__compare.py.snap index abdf83ff7f..ec86643e38 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__compare.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__compare.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/compare.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__dictionary.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__dictionary.py.snap index 6a3ec4f152..705faf5d2c 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__dictionary.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__dictionary.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/dictionary.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__dictionary_comprehension.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__dictionary_comprehension.py.snap index 6cda239001..ea7d3324bc 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__dictionary_comprehension.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__dictionary_comprehension.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/dictionary_comprehension.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__f_string.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__f_string.py.snap index 011f027e16..2fe8ea2855 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__f_string.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__f_string.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/f_string.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__generator.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__generator.py.snap index b40fccc33a..d93aef523a 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__generator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__generator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/generator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__if.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__if.py.snap index 6bbdd72b0a..5cca4b3a1b 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__if.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__if.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/if.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__lambda.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__lambda.py.snap index 75ce5de1a7..a21cc82b8a 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__lambda.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__lambda.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/lambda.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__list.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__list.py.snap index 82745bd5d6..ae3fc6d22c 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__list.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__list.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/list.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__list_comprehension.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__list_comprehension.py.snap index 8d4bd9f912..b81ae4169e 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__list_comprehension.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__list_comprehension.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/list_comprehension.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__name.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__name.py.snap index cb22e7e03c..dd9d18e848 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__name.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__name.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/name.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__named.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__named.py.snap index 1a8216e067..098a337277 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__named.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__named.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/named.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__number_literal.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__number_literal.py.snap index e5527f4a6d..64d1e63f40 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__number_literal.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__number_literal.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/number_literal.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__parenthesized.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__parenthesized.py.snap index 82afb5a34c..f5a6858f1d 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__parenthesized.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__parenthesized.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/parenthesized.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__set.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__set.py.snap index cff618b029..f8ed36c227 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__set.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__set.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/set.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__set_comprehension.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__set_comprehension.py.snap index 306eb2d153..5365de4ac2 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__set_comprehension.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__set_comprehension.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/set_comprehension.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__slice.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__slice.py.snap index a282c8d2a6..2f33310702 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__slice.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__slice.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/slice.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__starred.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__starred.py.snap index 4cb6dab7b7..3d1f786a8c 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__starred.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__starred.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/starred.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__string.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__string.py.snap index 85db63784d..6cddb01399 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__string.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__string.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/string.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__subscript.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__subscript.py.snap index 23929c13fa..23d49419b2 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__subscript.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__subscript.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/subscript.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__tuple.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__tuple.py.snap index 5b1045b196..e8a88a1b9d 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__tuple.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__tuple.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/tuple.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__unary_op.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__unary_op.py.snap index 32622f70b8..6e164b817f 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__unary_op.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__unary_op.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/unary_op.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__yield.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__yield.py.snap index dc9d2aa3ca..f5fdb07238 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__yield.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__yield.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/yield.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__yield_from.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__yield_from.py.snap index 7bbc2b19c5..d35161d5fc 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__yield_from.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@expressions__yield_from.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/expressions/yield_from.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@for_in_target_valid_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@for_in_target_valid_expr.py.snap index 96cbefeb69..8226141396 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@for_in_target_valid_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@for_in_target_valid_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/for_in_target_valid_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@from_import_no_space.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@from_import_no_space.py.snap index f0ec9ce112..52b37be22a 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@from_import_no_space.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@from_import_no_space.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/from_import_no_space.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@from_import_soft_keyword_module_name.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@from_import_soft_keyword_module_name.py.snap index f492600838..9b5dde8170 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@from_import_soft_keyword_module_name.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@from_import_soft_keyword_module_name.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/from_import_soft_keyword_module_name.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@from_import_stmt_terminator.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@from_import_stmt_terminator.py.snap index bb3a49d768..ec6c1d92dc 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@from_import_stmt_terminator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@from_import_stmt_terminator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/from_import_stmt_terminator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@fstring_format_spec_terminator.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@fstring_format_spec_terminator.py.snap index 754e602e6f..1e672a1ce1 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@fstring_format_spec_terminator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@fstring_format_spec_terminator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/fstring_format_spec_terminator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@function_def_parameter_range.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@function_def_parameter_range.py.snap index 1aac8eadc4..17d571227a 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@function_def_parameter_range.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@function_def_parameter_range.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/function_def_parameter_range.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@function_def_parenthesized_return_types.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@function_def_parenthesized_return_types.py.snap index 1a2e627a0a..7076142333 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@function_def_parenthesized_return_types.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@function_def_parenthesized_return_types.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/function_def_parenthesized_return_types.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@function_def_valid_return_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@function_def_valid_return_expr.py.snap index 4bc923b6ac..791706860e 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@function_def_valid_return_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@function_def_valid_return_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/function_def_valid_return_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@global_stmt.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@global_stmt.py.snap index e7710f07b7..24c5d44be2 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@global_stmt.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@global_stmt.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/global_stmt.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@import_as_name_soft_keyword.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@import_as_name_soft_keyword.py.snap index 782ca0132f..f5e2f2da77 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@import_as_name_soft_keyword.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@import_as_name_soft_keyword.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/import_as_name_soft_keyword.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@import_stmt_terminator.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@import_stmt_terminator.py.snap index d29e3330c7..0d1775d267 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@import_stmt_terminator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@import_stmt_terminator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/import_stmt_terminator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@lambda_with_no_parameters.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@lambda_with_no_parameters.py.snap index 5b8eb039c3..6ecfea43d1 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@lambda_with_no_parameters.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@lambda_with_no_parameters.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/lambda_with_no_parameters.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@lambda_with_valid_body.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@lambda_with_valid_body.py.snap index f8854872e1..61366ad154 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@lambda_with_valid_body.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@lambda_with_valid_body.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/lambda_with_valid_body.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_as_pattern.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_as_pattern.py.snap index 621d2013c0..4d05b7bde4 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_as_pattern.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_as_pattern.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/match_as_pattern.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_as_pattern_soft_keyword.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_as_pattern_soft_keyword.py.snap index 1270f7562b..54aee19a65 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_as_pattern_soft_keyword.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_as_pattern_soft_keyword.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/match_as_pattern_soft_keyword.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_attr_pattern_soft_keyword.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_attr_pattern_soft_keyword.py.snap index 924f3b9f1b..833fa6d042 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_attr_pattern_soft_keyword.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_attr_pattern_soft_keyword.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/match_attr_pattern_soft_keyword.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_identifier_1.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_identifier_1.py.snap index 14eee06124..5e454f2909 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_identifier_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_identifier_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/match_classify_as_identifier_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_identifier_2.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_identifier_2.py.snap index 7dfcfdd389..f80bb85b57 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_identifier_2.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_identifier_2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/match_classify_as_identifier_2.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_keyword_1.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_keyword_1.py.snap index 628936b631..044de1e157 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_keyword_1.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_keyword_1.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/match_classify_as_keyword_1.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_keyword_2.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_keyword_2.py.snap index a467ea1997..d82c8dc0e1 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_keyword_2.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_keyword_2.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/match_classify_as_keyword_2.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_keyword_or_identifier.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_keyword_or_identifier.py.snap index fa466c931a..1c15bbba25 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_keyword_or_identifier.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_classify_as_keyword_or_identifier.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/match_classify_as_keyword_or_identifier.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_sequence_pattern_parentheses_terminator.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_sequence_pattern_parentheses_terminator.py.snap index 582fa2aeb8..965e821ef3 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_sequence_pattern_parentheses_terminator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_sequence_pattern_parentheses_terminator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/match_sequence_pattern_parentheses_terminator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_sequence_pattern_terminator.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_sequence_pattern_terminator.py.snap index e97bfca642..5c78c2a820 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_sequence_pattern_terminator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_sequence_pattern_terminator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/match_sequence_pattern_terminator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_stmt_subject_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_stmt_subject_expr.py.snap index 06a266c5fb..fd8bd905dc 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_stmt_subject_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_stmt_subject_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/match_stmt_subject_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_stmt_valid_guard_expr.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_stmt_valid_guard_expr.py.snap index 2707f21e7a..17ac4a2fa6 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_stmt_valid_guard_expr.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@match_stmt_valid_guard_expr.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/match_stmt_valid_guard_expr.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@nonlocal_stmt.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@nonlocal_stmt.py.snap index e9a65e64de..33287486f8 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@nonlocal_stmt.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@nonlocal_stmt.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/nonlocal_stmt.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@other__atom.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@other__atom.py.snap index 292c50ca52..1fa2f56ed5 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@other__atom.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@other__atom.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/other/atom.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@other__decorator.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@other__decorator.py.snap index 932d2c2acd..fd32829f6c 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@other__decorator.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@other__decorator.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/other/decorator.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@param_with_annotation.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@param_with_annotation.py.snap index 86bba2f1be..c351f8dd32 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@param_with_annotation.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@param_with_annotation.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/param_with_annotation.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@param_with_default.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@param_with_default.py.snap index 672d824c61..62383e6283 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@param_with_default.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@param_with_default.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/param_with_default.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@param_with_star_annotation.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@param_with_star_annotation.py.snap index 2965ea8635..bcf3af426d 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@param_with_star_annotation.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@param_with_star_annotation.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/param_with_star_annotation.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@params_non_default_after_star.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@params_non_default_after_star.py.snap index fc7d497209..4c6a5faaeb 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@params_non_default_after_star.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@params_non_default_after_star.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/params_non_default_after_star.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@params_seen_keyword_only_param_after_star.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@params_seen_keyword_only_param_after_star.py.snap index 2a20137386..a01d1c0665 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@params_seen_keyword_only_param_after_star.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@params_seen_keyword_only_param_after_star.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/params_seen_keyword_only_param_after_star.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@simple_stmts_in_block.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@simple_stmts_in_block.py.snap index 0caee363a4..a819e56517 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@simple_stmts_in_block.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@simple_stmts_in_block.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/simple_stmts_in_block.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@simple_stmts_with_semicolons.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@simple_stmts_with_semicolons.py.snap index 9b2a2f698f..2588cbfe76 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@simple_stmts_with_semicolons.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@simple_stmts_with_semicolons.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/simple_stmts_with_semicolons.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__ambiguous_lpar_with_items.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__ambiguous_lpar_with_items.py.snap index fd059ae0e2..48d299be48 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__ambiguous_lpar_with_items.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__ambiguous_lpar_with_items.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/ambiguous_lpar_with_items.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__annotated_assignment.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__annotated_assignment.py.snap index 52cf9055be..493f3ba3d1 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__annotated_assignment.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__annotated_assignment.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/annotated_assignment.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__assert.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__assert.py.snap index efffa253aa..1dce325d01 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__assert.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__assert.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/assert.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__assignment.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__assignment.py.snap index da466356e5..829edc8c81 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__assignment.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__assignment.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/assignment.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__augmented_assignment.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__augmented_assignment.py.snap index 6b5b9e2582..da75ead75c 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__augmented_assignment.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__augmented_assignment.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/augmented_assignment.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__class.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__class.py.snap index 1bf6e9f03e..8a6c4d8e87 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__class.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__class.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/class.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__delete.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__delete.py.snap index ac37e09701..fbb6d09bf2 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__delete.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__delete.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/delete.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__for.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__for.py.snap index 721da442b2..c193b0477b 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__for.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__for.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/for.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__from_import.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__from_import.py.snap index 1fa1095351..3fa6228749 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__from_import.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__from_import.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/from_import.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__function.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__function.py.snap index 2124ada639..0dbedd8e92 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__function.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__function.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/function.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__if.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__if.py.snap index 3a30796835..592cb88bad 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__if.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__if.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/if.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__import.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__import.py.snap index b1eac233db..37d5ef833a 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__import.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__import.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/import.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__match.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__match.py.snap index 23a67df763..e6971aa00a 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__match.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__match.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/match.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__raise.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__raise.py.snap index 72c23fa3eb..1796953d2a 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__raise.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__raise.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/raise.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__return.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__return.py.snap index 0d95c4a3b9..735a2ce82f 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__return.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__return.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/return.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__simple.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__simple.py.snap index 24b5e0e5e4..31c90f2119 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__simple.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__simple.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/simple.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__try.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__try.py.snap index 52ddc068aa..3f799c4d6b 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__try.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__try.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/try.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__type.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__type.py.snap index 66cb26caef..817ab6399e 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__type.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__type.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/type.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__while.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__while.py.snap index 5ffa7409f8..a70b73cc90 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__while.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__while.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/while.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__with.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__with.py.snap index a47b5f485f..260f39d072 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__with.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@statement__with.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/valid/statement/with.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@type_param_param_spec.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@type_param_param_spec.py.snap index 50f272c73d..ad273b844c 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@type_param_param_spec.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@type_param_param_spec.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/type_param_param_spec.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@type_param_type_var.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@type_param_type_var.py.snap index 79f83f99f8..5f5cf396a8 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@type_param_type_var.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@type_param_type_var.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/type_param_type_var.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_parser/tests/snapshots/valid_syntax@type_param_type_var_tuple.py.snap b/crates/ruff_python_parser/tests/snapshots/valid_syntax@type_param_type_var_tuple.py.snap index 0c3ef6ff94..93e16848e4 100644 --- a/crates/ruff_python_parser/tests/snapshots/valid_syntax@type_param_type_var_tuple.py.snap +++ b/crates/ruff_python_parser/tests/snapshots/valid_syntax@type_param_type_var_tuple.py.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_parser/tests/fixtures.rs input_file: crates/ruff_python_parser/resources/inline/ok/type_param_type_var_tuple.py +snapshot_kind: text --- ## AST diff --git a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_explicit_native_module.snap b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_explicit_native_module.snap index 69186a0145..195c5aa002 100644 --- a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_explicit_native_module.snap +++ b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_explicit_native_module.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_resolver/src/lib.rs expression: result +snapshot_kind: text --- ImportResult { is_relative: false, diff --git a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_first_party.snap b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_first_party.snap index 47e0ef7c88..e171965662 100644 --- a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_first_party.snap +++ b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_first_party.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_resolver/src/lib.rs expression: result +snapshot_kind: text --- ImportResult { is_relative: false, diff --git a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_implicit_native_module.snap b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_implicit_native_module.snap index 262aa50fc1..97a2fb547b 100644 --- a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_implicit_native_module.snap +++ b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_implicit_native_module.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_resolver/src/lib.rs expression: result +snapshot_kind: text --- ImportResult { is_relative: false, diff --git a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_namespace_package.snap b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_namespace_package.snap index 1c9132b9bf..5749d81577 100644 --- a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_namespace_package.snap +++ b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_namespace_package.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_resolver/src/lib.rs expression: result +snapshot_kind: text --- ImportResult { is_relative: false, diff --git a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_standard_library.snap b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_standard_library.snap index 47299f3218..561a79df02 100644 --- a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_standard_library.snap +++ b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_standard_library.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_resolver/src/lib.rs expression: result +snapshot_kind: text --- ImportResult { is_relative: false, diff --git a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_stub_file.snap b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_stub_file.snap index 92d74bcb20..8b5c084c23 100644 --- a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_stub_file.snap +++ b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_stub_file.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_resolver/src/lib.rs expression: result +snapshot_kind: text --- ImportResult { is_relative: false, diff --git a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_third_party.snap b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_third_party.snap index 138f4f71ca..f625b0cce9 100644 --- a/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_third_party.snap +++ b/crates/ruff_python_resolver/src/snapshots/ruff_python_resolver__tests__airflow_third_party.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_resolver/src/lib.rs expression: result +snapshot_kind: text --- ImportResult { is_relative: false, diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__Reverse.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__Reverse.snap index 7763ffb690..f4614ed26f 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__Reverse.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__Reverse.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_single_quoted_string.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_single_quoted_string.snap index 36ea89df61..699e3130c5 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_single_quoted_string.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_single_quoted_string.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_triple_quoted_string.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_triple_quoted_string.snap index a794749cff..8e87897557 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_triple_quoted_string.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_triple_quoted_string.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__empty_string_literal.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__empty_string_literal.snap index 1d420e049f..a933106fb5 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__empty_string_literal.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__empty_string_literal.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_ending_in_non_start_char.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_ending_in_non_start_char.snap index 32e4f33792..8a103b0b32 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_ending_in_non_start_char.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_ending_in_non_start_char.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_starting_with_string_kind.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_starting_with_string_kind.snap index 04086f5524..2f53b7c310 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_starting_with_string_kind.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_starting_with_string_kind.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__ignore_word_with_only_id_continuing_chars.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__ignore_word_with_only_id_continuing_chars.snap index a1248f3b41..cde01b5c92 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__ignore_word_with_only_id_continuing_chars.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__ignore_word_with_only_id_continuing_chars.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_containing_comment.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_containing_comment.snap index 913b789991..9ea71461d7 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_containing_comment.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_containing_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_implicit_concatenation.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_implicit_concatenation.snap index 88771f8ce2..126ec9b8e6 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_implicit_concatenation.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_implicit_concatenation.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_followed_by_multiple_comments.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_followed_by_multiple_comments.snap index 2c623fbaad..94eea3583e 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_followed_by_multiple_comments.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_followed_by_multiple_comments.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_byte_kind.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_byte_kind.snap index 13e26326e6..719d4e66f2 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_byte_kind.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_byte_kind.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_double_escaped_backslash.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_double_escaped_backslash.snap index 84ac21254d..a98f8fe692 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_double_escaped_backslash.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_double_escaped_backslash.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_escaped_quote.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_escaped_quote.snap index 1bf0706e3a..94db4e4192 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_escaped_quote.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_escaped_quote.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_invalid_kind.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_invalid_kind.snap index cdcaad2ccb..1fe760036d 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_invalid_kind.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_invalid_kind.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_kind.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_kind.snap index 4f20942cc6..4a90600501 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_kind.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_kind.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_bogus.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_bogus.snap index ab66aa9c11..a93275d7eb 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_bogus.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_bogus.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_comma.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_comma.snap index be4f7308d7..1696508a86 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_comma.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_comma.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_continuation.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_continuation.snap index 801a7a65dd..841305918a 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_continuation.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_continuation.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_eq.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_eq.snap index 4bab77b681..59556fbcd1 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_eq.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_eq.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_invalid_operators.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_invalid_operators.snap index 78f0374943..9815b84346 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_invalid_operators.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_invalid_operators.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_multichar.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_multichar.snap index 4cc2111b55..38da7f9ddf 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_multichar.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_multichar.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_not_eq.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_not_eq.snap index e2db410347..313f9770d5 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_not_eq.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_not_eq.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_operators.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_operators.snap index e0430a9553..cc60694848 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_operators.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_operators.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_parentheses.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_parentheses.snap index 0e3bedccd5..7eccb8ed6d 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_parentheses.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_parentheses.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_slash.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_slash.snap index 43c5d6d815..74a0a87d3f 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_slash.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_slash.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_substring.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_substring.snap index d3b74a1074..0961dcbc6d 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_substring.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_substring.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_trivia.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_trivia.snap index 4872572e91..f2683c4796 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_trivia.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_trivia.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tricky_unicode.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tricky_unicode.snap index bc8a977653..5ac529b344 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tricky_unicode.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tricky_unicode.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__triple_quoted_multiline_string_containing_comment.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__triple_quoted_multiline_string_containing_comment.snap index e2081323a1..174a2521f9 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__triple_quoted_multiline_string_containing_comment.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__triple_quoted_multiline_string_containing_comment.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() +snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_server/src/session/settings.rs b/crates/ruff_server/src/session/settings.rs index 10616fb2ed..0f6a3806f5 100644 --- a/crates/ruff_server/src/session/settings.rs +++ b/crates/ruff_server/src/session/settings.rs @@ -735,7 +735,7 @@ mod tests { fn test_global_only_init_options_deserialize() { let options: InitializationOptions = deserialize_fixture(GLOBAL_ONLY_INIT_OPTIONS_FIXTURE); - assert_debug_snapshot!(options, @r###" + assert_debug_snapshot!(options, @r#" GlobalOnly { settings: ClientSettings { configuration: None, @@ -789,7 +789,7 @@ mod tests { }, }, } - "###); + "#); } #[test] diff --git a/crates/ruff_server/tests/snapshots/document__delete_lines_pandas_html.snap b/crates/ruff_server/tests/snapshots/document__delete_lines_pandas_html.snap index 2ba81d2007..47cb6406fb 100644 --- a/crates/ruff_server/tests/snapshots/document__delete_lines_pandas_html.snap +++ b/crates/ruff_server/tests/snapshots/document__delete_lines_pandas_html.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_server/tests/document.rs expression: document.contents() +snapshot_kind: text --- # +------------------------------------------------------------+ # | Code adopted from: | @@ -1230,4 +1231,3 @@ def read_html( dtype_backend=dtype_backend, storage_options=storage_options, ) - diff --git a/crates/ruff_server/tests/snapshots/notebook__changed_notebook.snap b/crates/ruff_server/tests/snapshots/notebook__changed_notebook.snap index a90e216678..f13e4a8694 100644 --- a/crates/ruff_server/tests/snapshots/notebook__changed_notebook.snap +++ b/crates/ruff_server/tests/snapshots/notebook__changed_notebook.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_server/tests/notebook.rs expression: notebook_source(snapshot.query().as_notebook().unwrap()) +snapshot_kind: text --- # @title Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/crates/ruff_server/tests/snapshots/notebook__initial_notebook.snap b/crates/ruff_server/tests/snapshots/notebook__initial_notebook.snap index 29a2872058..4e60599cbf 100644 --- a/crates/ruff_server/tests/snapshots/notebook__initial_notebook.snap +++ b/crates/ruff_server/tests/snapshots/notebook__initial_notebook.snap @@ -1,6 +1,7 @@ --- source: crates/ruff_server/tests/notebook.rs expression: notebook_source(¬ebook) +snapshot_kind: text --- #@title Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.