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
Currently, Typstyle does not have any functionality for sorting imports. This can lead to inconsistent and disorganized import statements in code, reducing readability and maintainability. This proposal suggests adding import sorting to Typstyle, similar to tools like Python’s isort, to automatically organize imports in a consistent and logical manner.
Groups Imports (Optional): Allows imports to be grouped logically (e.g., standard library, third-party, local modules) with empty lines separating groups.
Implementation Considerations
Basic Sorting:
Sort all imports alphabetically by default.
Handle both import and from ... import statements.
Grouping (Optional):
Detect and group imports by type (e.g., standard library, third-party, local modules).
generated by genai from unstructured chat logs
Issue Description
Currently, Typstyle does not have any functionality for sorting imports. This can lead to inconsistent and disorganized import statements in code, reducing readability and maintainability. This proposal suggests adding import sorting to Typstyle, similar to tools like Python’s
isort
, to automatically organize imports in a consistent and logical manner.Proposed Feature
Implement an import sorting feature that:
import
statements alphabetically.Implementation Considerations
import
andfrom ... import
statements.cc @QuadnucYard
The text was updated successfully, but these errors were encountered: