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

PEP 257 Not respected #1138

Open
charlie-rivos opened this issue Feb 3, 2025 · 0 comments · May be fixed by #1136
Open

PEP 257 Not respected #1138

charlie-rivos opened this issue Feb 3, 2025 · 0 comments · May be fixed by #1136

Comments

@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, a space should not be added between the license and the docstring.

@charlie-rivos charlie-rivos linked a pull request Feb 3, 2025 that will close this issue
7 tasks
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 a pull request may close this issue.

1 participant