Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the blank line between docstring and function head #1193

Open
xnuohz opened this issue Dec 20, 2023 · 0 comments
Open

Remove the blank line between docstring and function head #1193

xnuohz opened this issue Dec 20, 2023 · 0 comments

Comments

@xnuohz
Copy link

xnuohz commented Dec 20, 2023

How would I change yapf config to remove the blank line between docstring and function head?
My yapf config

[tool.yapf]
based_on_style = "pep8"
column_limit = 120
split_before_named_assigns = false
blank_line_before_nested_class_or_def = false

Expect

"""
    some comments
    @param xxx
    @return xxx
"""
>>>>  remove this blank line
def func(xxx):
    xxxx

After pre-commit checking, it always keeps the blank line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant