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
{{ message }}
Repository navigation
[Proposal] Reconsider isort Import Ordering to Align with Standard Python Conventions #4336
The current isort configuration reorders imports in a way that merges standard library modules with pip-installable dependencies, and applies custom grouping logic across multiple package families.
While this works from a tooling perspective, it diverges from what most Python users expect when reading code.
One possible direction would be to realign the default import structure with the standard three-block convention, while limiting special-case handling to packages that are genuinely runtime-provided (e.g. isaacsim, omni, carb, etc.).
This would keep most imports predictable and familiar, while still allowing flexibility where runtime constraints require it.
Motivation
Reordering imports can be helpful in a limited set of scenarios, most commonly to mitigate circular import issues. In practice, however, frequent reliance on import reordering often points to deeper package design concerns. While reordering can work around symptoms, it does not address underlying structural issues.
Even if circular imports are not a concern in this specific case, the current import grouping introduces cognitive overhead. From a Python user’s perspective, the widely understood and de-facto standard convention is:
Standard library imports
External dependencies (declared in pyproject.toml)
Internal / local modules
This structure makes it easier to:
Reason about dependencies
Spot missing or undeclared dependencies
Quickly understand where a symbol comes from
Onboard new contributors
Build Info
Isaac Lab Version: main
Isaac Sim Version: N/A
Additional context
This issue is intended to start a discussion around balancing:
Activity
Switches to ruff in-built isort ordering (isaac-sim#4377)
Switches to ruff in-built isort ordering (isaac-sim#4377)
Switches to ruff in-built isort ordering (isaac-sim#4377)
Bump Lab to 2.3.2 (#5)