Skip to content

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

Draft
lord-haffi wants to merge 3 commits into
mainfrom
isort_all
Draft

chore(__all__): Enable sorting __all__ using isort#890
lord-haffi wants to merge 3 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

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