X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/80bd2b3134b4f01da4e279d040a224326b3577e5..385e3a10493c88dc2b71dc11d9d9799d7fcb3b27:/tests/fmtonoff.py diff --git a/tests/fmtonoff.py b/tests/fmtonoff.py index 4bacfcf..0ff6672 100644 --- a/tests/fmtonoff.py +++ b/tests/fmtonoff.py @@ -71,6 +71,18 @@ def long_lines(): $ """, re.MULTILINE | re.VERBOSE ) +def single_literal_yapf_disable(): + """Black does not support this.""" + BAZ = { + (1, 2, 3, 4), + (5, 6, 7, 8), + (9, 10, 11, 12), + } # yapf: disable +# fmt: off +# No formatting to the end of the file +l=[1,2,3] +d={'a':1, + 'b':2} # output @@ -107,11 +119,9 @@ many_args=[1,2,3] def function_signature_stress_test(number:int,no_annotation=None,text:str='default',* ,debug:bool=False,**kwargs) -> str: return text[number:-1] # fmt: on - - def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r""): offset = attr.ib(default=attr.Factory(lambda: _r.uniform(10000, 200000))) - assert task._cancel_stack[:len(old_stack)] == old_stack + assert task._cancel_stack[: len(old_stack)] == old_stack def spaces_types( @@ -175,3 +185,15 @@ def long_lines(): """, re.MULTILINE | re.VERBOSE, ) + + +def single_literal_yapf_disable(): + """Black does not support this.""" + BAZ = {(1, 2, 3, 4), (5, 6, 7, 8), (9, 10, 11, 12)} # yapf: disable + + +# fmt: off +# No formatting to the end of the file +l=[1,2,3] +d={'a':1, + 'b':2}