Skip to content

[Proposal] Reconsider isort Import Ordering to Align with Standard Python Conventions #4336

Description

@Mayankm96

Proposal

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:

  • Tooling consistency
  • Runtime constraints
  • Readability and developer expectations

Original discussion started here: #3619

Checklist

  • I have checked that there is no similar issue in the repo (required)

Acceptance Criteria

  • Import grouping follows a clearly documented and predictable structure
  • Standard library and external dependencies are not merged by default
  • Any special-case handling is limited and well-justified

Activity

  1. added theissue type on Jan 5, 2026
  2. added
    enhancement
    isaac-lab
    on Jan 5, 2026
  3. added a commit that references this issue on Jan 14, 2026
    3adc668
  4. added a commit that references this issue on Feb 5, 2026
    20129b8
  5. added a commit that references this issue on Jul 8, 2026
    be03ee7
  6. added a commit that references this issue on Jul 9, 2026
    934f1ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementinfrastructureisaac-lab

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions