google / google/yapf

Remove the blank line between docstring and function head

Open
#1,193 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.