Organize Imports
cc_organize_importsOrganizes Python imports following PEP 8: sorts, deduplicates, and groups imports into standard library, third-party, and local sections.
Instructions
Organizes Python imports per PEP 8: sorted, deduplicated, grouped.
Args:
path (string): Path to the Python file
dry_run (boolean): Preview only
Groups: 1) future 2) stdlib 3) third-party 4) local
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the Python file | |
| dry_run | No | Preview only |