Organize Imports
cc_organize_importsOrganize Python imports in a file according to PEP 8: sort, deduplicate, and group into future, stdlib, third-party, and local imports. Supports dry-run preview.
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 |