Debian Codegraph @

tests/data/cases/line_ranges_fmt_off_overlap.py

raw
1 # flags: --line-ranges=11-17
2 # NOTE: If you need to modify this file, pay special attention to the --line-ranges=
3 # flag above as it's formatting specifically these lines.
4
5
6 def myfunc( ): # This will not be reformatted.
7 print( {"also won't be reformatted"} )
8 # fmt: off
9 def myfunc( ): # This will not be reformatted.
10 print( {"also won't be reformatted"} )
11 def myfunc( ): # This will not be reformatted.
12 print( {"also won't be reformatted"} )
13 # fmt: on
14
15
16 def myfunc( ): # This will be reformatted.
17 print( {"this will be reformatted"} )
18
19 # output
20
21 # flags: --line-ranges=11-17
22 # NOTE: If you need to modify this file, pay special attention to the --line-ranges=
23 # flag above as it's formatting specifically these lines.
24
25
26 def myfunc( ): # This will not be reformatted.
27 print( {"also won't be reformatted"} )
28 # fmt: off
29 def myfunc( ): # This will not be reformatted.
30 print( {"also won't be reformatted"} )
31 def myfunc( ): # This will not be reformatted.
32 print( {"also won't be reformatted"} )
33 # fmt: on
34
35
36 def myfunc(): # This will be reformatted.
37 print({"this will be reformatted"})