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

Keep whitespace before imports #370

Closed
wants to merge 3 commits into from
Closed

Keep whitespace before imports #370

wants to merge 3 commits into from

Conversation

Achimh3011
Copy link

Fixes #366

Makes reorder-python-imports compatible again with newer black and ruff versions. I'm quite indifferent to the actual formatting change and I'm not happy with the attitude of the black maintainers . But on the other hand, I don't see a point in fighting windmills and after ruff picked up the formatting change, I don't see a chance to go back.

@asottile
Copy link
Owner

no thanks, this has been consistent since 2014 and I'm not changing it

@asottile asottile closed this Mar 16, 2024
yujinyuz added a commit to yujinyuz/django-as-a-package-layout-template that referenced this pull request Apr 6, 2024
I'm glad that I discovered this issue sooner.

I really liked reorder-python-imports but it was impossible to make it
work with ruff and/or black.

The one small issue I had was ruff was adding a new line below a
docstring. While reorder-python-imports removes the new line.

For context:

- asottile/reorder-python-imports#370
- asottile/reorder-python-imports#366
- psf/black#4175
miguelinux added a commit to miguelinux/reorder-python-imports that referenced this pull request Apr 14, 2024
miguelinux added a commit to miguelinux/reorder-python-imports that referenced this pull request Sep 21, 2024
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.

Clash with black formatter (new line after module docstring)
2 participants