Skip to content

Conversation

@danparizher
Copy link
Contributor

Summary

Fixes #19815

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@ntBre ntBre self-requested a review August 8, 2025 20:07
@ntBre ntBre added bug Something isn't working fixes Related to suggested fixes for violations labels Aug 14, 2025
Copy link
Contributor

@ntBre ntBre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks right to me. I think a snapshot test would be helpful like in the last PR, though.

@danparizher danparizher requested a review from ntBre August 15, 2025 20:26
Copy link
Contributor

@ntBre ntBre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ntBre ntBre changed the title [isort] Fix I002: handle multiple continuation backslashes after module docstring in start_of_file to avoid syntax errors [isort] Handle multiple continuation lines after module docstring (I002) Aug 15, 2025
@ntBre ntBre merged commit f0e9c1d into astral-sh:main Aug 15, 2025
35 checks passed
@danparizher danparizher deleted the fix-19815 branch August 15, 2025 21:41
dcreager added a commit that referenced this pull request Aug 16, 2025
* main:
  [`isort`] Handle multiple continuation lines after module docstring (`I002`) (#19818)
  [`flake8-simplify`] Implement fix for `maxsplit` without separator (`SIM905`) (#19851)
  [`pycodestyle`] Make `E731` fix unsafe instead of display-only for class assignments (#19700)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fixes Related to suggested fixes for violations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

start_of_file handles at most one backslash, making I002 introduce a syntax error

2 participants