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

Inconsistent formatting with respect to back: comment in import #2358

Open
arnaudsjs opened this issue Feb 10, 2025 · 0 comments
Open

Inconsistent formatting with respect to back: comment in import #2358

arnaudsjs opened this issue Feb 10, 2025 · 0 comments

Comments

@arnaudsjs
Copy link

Version isort: 6.0.0
Version black: 25.1.0

Reproductive example (formatted with isort), but incorrect according to black.

# flake8: noqa: F401
import first
# Some comment
import second

When running black on the above-mentioned snippet, it's changed to the follow:

# flake8: noqa: F401
import first

# Some comment
import second

The above-mentioned snippet is then again considered invalid by isort.

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