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

PyInk formatting issue for multi-line docstrings. #8

Closed
veritas9872 opened this issue Apr 2, 2023 · 0 comments
Closed

PyInk formatting issue for multi-line docstrings. #8

veritas9872 opened this issue Apr 2, 2023 · 0 comments

Comments

@veritas9872
Copy link

veritas9872 commented Apr 2, 2023

Hello, I have tried out the new PyInk pre-commit, and I have found a difference with the behavior in Black.
For multiline docstrings in file definitions, PyInk appears to move the last triple double quotes to the end of the last line instead of giving them their own line.
For example,

"""This is my file.
It works like this.
"""
import something

becomes as follows.

"""This is my file.
It works like this."""
import something
yilei added a commit that referenced this issue Apr 3, 2023
Configure CI, it's currently failing because we have a bug (#8).
@yilei yilei closed this as completed in 6371280 Apr 4, 2023
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

No branches or pull requests

1 participant