Skip to content

Fix import formatting using isort #23334

Closed
@alimcmaster1

Description

@alimcmaster1

Following on from #23048. We now need to run isort on all *.py files in the codebase that we are ignoring in CI see here. Information on Isort here

Useful commands:

To sort imports in files in pandas directory ( ignoring those explicitly mentioned in setup.cfg)
isort --recursive pandas

To check imports are formatted correctly:
isort --recursive --check-only pandas

Find a directory you wish to fix from the list below( larger directories by # of files)
And comment on here that you are working on fixing. To avoid duplicated efforts.

Directories we need to cover:

PRs must contain no more than 20 files.

For new contributors please first take a look at our Contributing Guide

Pandas-Dev: Could we please add the following labels "Style", "Good first Issue", Contributions Welcome" and any more you feel appropriate.

Thanks,
Alistair

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions