new snapshots

This commit is contained in:
dylwil3 2025-12-22 10:04:03 -06:00
parent 2ff49c3627
commit 43f2d41a29
2 changed files with 35 additions and 48 deletions

View file

@ -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
```

View file

@ -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
```