Skip to content

chore(isort): Enable sorting __all__ using isort#890

Merged
lord-haffi merged 9 commits into
mainfrom
isort_all
Jul 13, 2026
Merged

chore(isort): Enable sorting __all__ using isort#890
lord-haffi merged 9 commits into
mainfrom
isort_all

Conversation

@lord-haffi

Copy link
Copy Markdown
Collaborator

Resolves this question: #884 (comment)

@lord-haffi lord-haffi self-assigned this Sep 10, 2024
@lord-haffi

lord-haffi commented Sep 10, 2024

Copy link
Copy Markdown
Collaborator Author

Unfortunately, this feature is not compatible with black as isort does weird things if the list is too long for a line.
Related issue in isort repository: PyCQA/isort#2280
Until fixed I will convert this PR to draft.

@lord-haffi lord-haffi marked this pull request as draft September 10, 2024 13:55
@Helveg

Helveg commented Mar 21, 2025

Copy link
Copy Markdown

Hi! This was merged and released in isort version 6! Can you see if upgrading your isort version fixes the problem for you?

Resolve the src/bo4e/__init__.py conflict by taking main's generated model
index (authoritative on the current model set) and re-running isort with
sort_reexports to format __all__.

The pre-commit isort hook is pinned to isort 6.0.1, which predates the
sort_reexports/black fix this change relies on and would re-mangle __all__;
it is skipped here (SKIP=isort). All other hooks run.
@lord-haffi

Copy link
Copy Markdown
Collaborator Author

Tracking PR on isort: PyCQA/isort#2576

@lord-haffi lord-haffi marked this pull request as ready for review July 13, 2026 09:07
@lord-haffi lord-haffi changed the title chore(__all__): Enable sorting __all__ using isort chore(isort): Enable sorting __all__ using isort Jul 13, 2026
@lord-haffi lord-haffi merged commit 63cf32a into main Jul 13, 2026
29 checks passed
@lord-haffi lord-haffi deleted the isort_all branch July 13, 2026 09:08
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