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

Remove the behavior of removing the double line breaks in python files #12

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

dmontagu
Copy link
Contributor

I see the benefits of removing double line breaks in the docstrings, but this has caused a bunch of pain getting ruff and black to both format and check without errors, @adriangb and I both feel this would make things simpler enough to be worth the change.

In particular, right now in pydantic if you run the formatting code, you get double line breaks that need to be removed, but I struggled to make it work where it would remove those and also not fail black/ruff checks.

Definitely open to a fix on the pydantic side, I just don't know that it's worth the brain power given the only benefit is removing (currently in pydantic) a single newline from one docstring each in three files.

If there was broader usage of this library I'd be more concerned but my understanding is that we are probably the only ones using it very deeply for this purpose, and I suspect no one would mind the change.

@adriangb adriangb merged commit 4b1634a into main Jul 11, 2023
@adriangb adriangb deleted the remove-double-line-break-elimination branch July 11, 2023 13:32
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.

2 participants