
... in the middle of an expression or code block by adding a missing return. Co-authored-by: Richard Si <63936253+ichard26@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
37 lines
663 B
Python
37 lines
663 B
Python
# Regression test for https://github.com/psf/black/issues/3129.
|
|
setup(
|
|
entry_points={
|
|
# fmt: off
|
|
"console_scripts": [
|
|
"foo-bar"
|
|
"=foo.bar.:main",
|
|
# fmt: on
|
|
] # Includes an formatted indentation.
|
|
},
|
|
)
|
|
|
|
|
|
# Regression test for https://github.com/psf/black/issues/2015.
|
|
run(
|
|
# fmt: off
|
|
[
|
|
"ls",
|
|
"-la",
|
|
]
|
|
# fmt: on
|
|
+ path,
|
|
check=True,
|
|
)
|
|
|
|
|
|
# Regression test for https://github.com/psf/black/issues/3026.
|
|
def test_func():
|
|
# yapf: disable
|
|
if unformatted( args ):
|
|
return True
|
|
# yapf: enable
|
|
elif b:
|
|
return True
|
|
|
|
return False
|