diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__semicolons.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__semicolons.py.snap index dc3f228698..019bf49dda 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__semicolons.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__semicolons.py.snap @@ -114,16 +114,13 @@ class Simple: class Semicolon: x = 1 - x = 2 - x=3 # fmt: skip + x=2;x=3 # fmt: skip x = 4 class ManySemicolonOneLine: x = 1 - x = 2 - x = 3 - x=4 # fmt: skip + x=2;x=3;x=4 # fmt: skip x = 5 @@ -155,10 +152,9 @@ class MultiLineSkip: class MultiLineSemicolon: x = 1 x = [ - "1", - "2", - ] - x=2 # fmt: skip + '1', + '2', + ]; x=2 # fmt: skip class LineBreakSemicolon: @@ -170,12 +166,11 @@ class LineBreakSemicolon: class MultiLineSemicolonComments: x = 1 # 1 - x = [ # 2 - "1", # 3 - "2", - # 4 - ] - x=2 # 5 # fmt: skip # 6 + x = [ # 2 + '1', # 3 + '2', + # 4 + ]; x=2 # 5 # fmt: skip # 6 class DocstringSkipped: @@ -202,20 +197,20 @@ class ChainingSemicolons: "3", ] x = 1 - x = ["1", "2", "3"] - x = 1 - x=1 # fmt: skip + x=[ + '1', + '2', + '3' + ];x=1;x=1 # fmt: skip class LotsOfComments: # 1 - x = [ # 2 - "1", # 3 - "2", - "3", - ] - x = 2 - x=3 # 4 # fmt: skip # 5 + x=[ # 2 + '1', # 3 + '2', + '3' + ] ;x=2;x=3 # 4 # fmt: skip # 5 # 6 @@ -225,12 +220,9 @@ class MixingCompound: # https://github.com/astral-sh/ruff/issues/17331 def main() -> None: - import ipdb - - ipdb.set_trace() # noqa: E402,E702,I001 # fmt: skip + import ipdb; ipdb.set_trace() # noqa: E402,E702,I001 # fmt: skip # https://github.com/astral-sh/ruff/issues/11430 -print() -print() # noqa # fmt: skip +print(); print() # noqa # fmt: skip ``` diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__top_level_semicolon.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__top_level_semicolon.py.snap index 75b21c2c93..67878a98f6 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__top_level_semicolon.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__top_level_semicolon.py.snap @@ -35,29 +35,24 @@ multiple lines''' # 1 # fmt: skip # 2 import a import b -from c import x, y, z -import f # fmt: skip +from c import ( + x,y,z + ); import f # fmt: skip -x = 1 -x = 2 -x = 3 -x=4 # fmt: skip +x=1;x=2;x=3;x=4 # fmt: skip # 1 -x = [ # 2 - "1", # 3 - "2", - "3", -] -x = 1 -x=1 # 4 # fmt: skip # 5 +x=[ # 2 + '1', # 3 + '2', + '3' +];x=1;x=1 # 4 # fmt: skip # 5 # 6 def foo(): - x = [ - "1", - "2", - ] - x=1 # fmt: skip + x=[ + '1', + '2', +];x=1 # fmt: skip ```