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

Fix for PEP 257 #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

charlie-rivos
Copy link

Docstrings are defined in PEP 257 as "A docstring is a string literal that occurs as the first statement in a module, function, class, or method definition." When reuse adds a header, it forcibly adds a space before the docstring violating this principle.

When the style is set to Python and the first line in the file is a docstring, do not add a space between the license and the docstring.

Upstream PR fsfe#1136.

@charlie-rivos charlie-rivos force-pushed the dev/charlie/remove_newline_rivos branch 3 times, most recently from 479e48d to 849b601 Compare January 31, 2025 19:01
Docstrings are defined in PEP 257 as "A docstring is a string literal
that occurs as the first statement in a module, function, class, or
method definition." When reuse adds a header, it forcibly adds a
space before the docstring violating this principle.

When the style is set to Python and the first line in the file is a
docstring, do not add a space between the license and the docstring.

Signed-off-by: Charlie Jenkins <[email protected]>
@charlie-rivos charlie-rivos force-pushed the dev/charlie/remove_newline_rivos branch from 849b601 to 0db4279 Compare January 31, 2025 21:08
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

Successfully merging this pull request may close these issues.

1 participant