You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally speaking, imports in typed projects have a list (or tuple) of __all__ exports that should be made. #1358 introduces a way to do this using comments, but this can look quite messy and cluttered. For such a common use case, I would suggest a command-line flag that can automatically find and sort these __all__ exports.
Ideally this would look something like this:
isort . --sort-reexports
And in a config file (specifically pyproject.toml in this case):
[tool.isort]
sort_reexports = true
The name for the flag is taken from Mypy's "implicit re-exporting is disabled" message, but if there's anything more suitable obviously that should be used instead.
This should also support the notion described in #1815 when that's done.
The text was updated successfully, but these errors were encountered:
Generally speaking, imports in typed projects have a list (or tuple) of __all__ exports that should be made. #1358 introduces a way to do this using comments, but this can look quite messy and cluttered. For such a common use case, I would suggest a command-line flag that can automatically find and sort these __all__ exports.
Ideally this would look something like this:
isort . --sort-reexports
And in a config file (specifically pyproject.toml in this case):
The name for the flag is taken from Mypy's "implicit re-exporting is disabled" message, but if there's anything more suitable obviously that should be used instead.
This should also support the notion described in #1815 when that's done.
The text was updated successfully, but these errors were encountered: