diff --git a/crates/ruff/tests/.format.rs.pending-snap b/crates/ruff/tests/.format.rs.pending-snap deleted file mode 100644 index 411a8b1fb6d52..0000000000000 --- a/crates/ruff/tests/.format.rs.pending-snap +++ /dev/null @@ -1,38 +0,0 @@ -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":807,"new":{"module_name":"format","snapshot_name":"deprecated_options","metadata":{"source":"crates/ruff/tests/format.rs","assertion_line":807,"info":{"program":"ruff","args":["format","--config","/tmp/.tmps9Wq7B/ruff.toml","-"],"stdin":"\nif True:\n pass\n "}},"snapshot":"success: false\nexit_code: 2\n----- stdout -----\n\n----- stderr -----\nruff failed\n Cause: Failed to parse [RUFF-TOML-PATH]\n Cause: TOML parse error at line 1, column 1\n |\n1 | \n | ^\nunknown field `tab-size`\n\n"},"old":{"module_name":"format","metadata":{},"snapshot":"success: false\nexit_code: 2\n----- stdout -----\n\n----- stderr -----\nruff failed\n Cause: The `tab-size` option has been renamed to `indent-width` to emphasize that it configures the indentation used by the formatter as well as the tab width. Please update `[RUFF-TOML-PATH]` to use `indent-width = ` instead."}} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":906,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":668,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":67,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":760,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":842,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":292,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":336,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":708,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":84,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":100,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":486,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":634,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1747,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1766,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1941,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":546,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":424,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1791,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":2034,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1873,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1966,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1851,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1833,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1895,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1920,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":559,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1254,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1230,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1196,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":517,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1269,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":158,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1988,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":571,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1133,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1026,"new":null,"old":null} -{"run_id":"949f64ef-a81e-401f-b165-44374ccea107","line":1068,"new":null,"old":null} diff --git a/crates/ruff/tests/format.rs b/crates/ruff/tests/format.rs index a70142da54937..e756b03596e63 100644 --- a/crates/ruff/tests/format.rs +++ b/crates/ruff/tests/format.rs @@ -818,7 +818,13 @@ if True: ----- stderr ----- ruff failed - Cause: The `tab-size` option has been renamed to `indent-width` to emphasize that it configures the indentation used by the formatter as well as the tab width. Please update `[RUFF-TOML-PATH]` to use `indent-width = ` instead. + Cause: Failed to parse [RUFF-TOML-PATH] + Cause: TOML parse error at line 1, column 1 + | + 1 | + | ^ + unknown field `tab-size` + "###); }); Ok(())