Skip to content

Enable isort --sort-reexports option - #47

Merged
MajorTanya merged 2 commits into
mainfrom
add-isort-sort-reexports
Sep 30, 2026
Merged

MajorTanya merged 2 commits into
mainfrom
add-isort-sort-reexports

Conversation

@MajorTanya

@MajorTanya MajorTanya commented Jul 12, 2026 •

Copy link
Copy Markdown
Owner

Can't currently enable this on the v1 branch because isort does not respect the trailing commas of short __all__ exports and I'd quite like to keep those.

See PyCQA/isort#2578

Uses the 9.0.0b1 release for some black-related fixes but the option itself has existed for a long time.

Edit: The unkept trailing commas can be see in the pre-commit.ci fixes to this PR in 9d58fd2.

@github-actions

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

@MajorTanya

Copy link
Copy Markdown
Owner Author

The linked issue and another one have been resolved, now just waiting for a stable isort release.

This version includes the --sort-reexports fixes.
@MajorTanya
MajorTanya force-pushed the add-isort-sort-reexports branch from 9d58fd2 to 5c0d8a9 Compare September 30, 2026 10:24
@MajorTanya
MajorTanya marked this pull request as ready for review September 30, 2026 10:25
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 ya_tagscript | 🛠️ Build #34849546 | 📁 Comparing 5c0d8a9 against latest (d056480)

  🔍 Preview build  

12 files changed · ± 12 modified

± Modified

@MajorTanya
MajorTanya merged commit d1dea7c into main Sep 30, 2026
10 checks passed
@MajorTanya
MajorTanya deleted the add-isort-sort-reexports branch September 30, 2026 10:28
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.

1 participant