Skip to content

Import reordering pre-commit hook #4233

@asottile

Description

@asottile

Let's introduce a hook for us that orders imports. Inspired by a recent implicit conflict caused by an import reordering + an import removal. #4028 (comment)

There's basically two options here:

  1. seed-isort-config + isort

there's some configuration that makes black happy that's necessary

  1. reorder-python-imports

no configuration necessary, the only options are compatible with black

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: infrastructureimprovement to development/releases/CI structure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions