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

Function docstring newlines #1

Open
wants to merge 8 commits into
base: module_docstring_newlines
Choose a base branch
from

Conversation

jpy-git
Copy link
Owner

@jpy-git jpy-git commented Apr 5, 2022

Description

Closes psf#2370. Remove newlines after function docstring.
e.g.

def foo():
    """hello"""

    a = 1

becomes

def foo():
    """hello"""
    a = 1

Builds on psf#2996

This should help automatically fix D202 from darglint as well:

D202 No blank lines allowed after function docstring

Checklist - did you ...

  • Add a CHANGELOG entry if necessary?
  • Add / update tests if necessary?
  • Add new / update outdated documentation?

@github-actions
Copy link

github-actions bot commented Apr 5, 2022

diff-shades results comparing this PR (faf6500) to main (421383d). The full diff is available in the logs under the "Generate HTML diff report" step.

╭────────────────────────── Summary ──────────────────────────╮
│ 22 projects & 769 files changed / 2245 changes [+115/-2130] │
│                                                             │
│ ... out of 2 177 706 lines, 10 484 files & 23 projects      │
╰─────────────────────────────────────────────────────────────╯

Differences found.

What is this? | Workflow run | diff-shades documentation

@jpy-git jpy-git force-pushed the function_docstring_newlines branch from 941b452 to faf6500 Compare April 5, 2022 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant