All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 # Make sure a leading comment is not removed.
2 def some_func( unformatted, args ): # fmt: skip
3 print("I am some_func")
5 # Make sure this comment is not removed.
8 # Make sure a leading comment is not removed.
9 async def some_async_func( unformatted, args): # fmt: skip
10 print("I am some_async_func")
11 await asyncio.sleep(1)
14 # Make sure a leading comment is not removed.
15 class SomeClass( Unformatted, SuperClasses ): # fmt: skip
16 def some_method( self, unformatted, args ): # fmt: skip
17 print("I am some_method")
20 async def some_async_method( self, unformatted, args ): # fmt: skip
21 print("I am some_async_method")
22 await asyncio.sleep(1)
25 # Make sure a leading comment is not removed.
26 if unformatted_call( args ): # fmt: skip
28 # Make sure this is not removed.
29 elif another_unformatted_call( args ): # fmt: skip
30 print("Second branch")
35 while some_condition( unformatted, args ): # fmt: skip
39 for i in some_iter( unformatted, args ): # fmt: skip
43 async def test_async_for():
44 async for i in some_async_iter( unformatted, args ): # fmt: skip
50 except UnformattedError as ex: # fmt: skip
56 with give_me_context( unformatted, args ): # fmt: skip
60 async def test_async_with():
61 async with give_me_async_context( unformatted, args ): # fmt: skip