google / google/yapf

Add option for blank line after module docstring

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

Description

Similar to `BLANK_LINE_BEFORE_MODULE_DOCSTRING` (#208), I would like the ability to force a single blank line between the module docstring and the imports (or other code that follows):

```
"""
An awesome module.
"""

from foo import bar
```

Currently (0.27.0), yapf removes that blank line. The option could be called `BLANK_LINE_AFTER_MODULE_DOCSTRING`.

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.