Debian Codegraph @

tests/data/cases/line_ranges_fmt_off.py

raw
1 # flags: --line-ranges=7-7 --line-ranges=17-23
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 # fmt: off
6 import os
7 def myfunc( ): # Intentionally unformatted.
8 pass
9 # fmt: on
10
11
12 def myfunc( ): # This will not be reformatted.
13 print( {"also won't be reformatted"} )
14 # fmt: off
15 def myfunc( ): # This will not be reformatted.
16 print( {"also won't be reformatted"} )
17 def myfunc( ): # This will not be reformatted.
18 print( {"also won't be reformatted"} )
19 # fmt: on
20
21
22 def myfunc( ): # This will be reformatted.
23 print( {"this will be reformatted"} )
24
25 # output
26
27 # flags: --line-ranges=7-7 --line-ranges=17-23
28 # NOTE: If you need to modify this file, pay special attention to the --line-ranges=
29 # flag above as it's formatting specifically these lines.
30
31 # fmt: off
32 import os
33 def myfunc( ): # Intentionally unformatted.
34 pass
35 # fmt: on
36
37
38 def myfunc( ): # This will not be reformatted.
39 print( {"also won't be reformatted"} )
40 # fmt: off
41 def myfunc( ): # This will not be reformatted.
42 print( {"also won't be reformatted"} )
43 def myfunc( ): # This will not be reformatted.
44 print( {"also won't be reformatted"} )
45 # fmt: on
46
47
48 def myfunc(): # This will be reformatted.
49 print({"this will be reformatted"})