Skip to content

Apply import formatter isort #4805

@akihironitta

Description

@akihironitta

🚀 Refactoring

As isort has been added to ci in #4242, we now need to apply the formatter step by step i.e. a submodule per PR (recommended in #4242 (comment) by @Borda)

Steps

For each PR:

  1. choose one submodule from below list and apply isort to it
  2. remove the corresponding line in pyproject.toml
  3. make sure isort --check passes
Progress The rest of the submodules should be done by @arnaudgelas.

The followings are PL submodules.

  • pytorch_lightning/*.py >> Apply import formatting to files in the 2nd top level #4717
  • pytorch_lightning/accelerators/
  • pytorch_lightning/callbacks/
  • pytorch_lightning/cluster_environments/
  • pytorch_lightning/core/
  • pytorch_lightning/distributed/
  • pytorch_lightning/loggers/
  • pytorch_lightning/metrics/
  • pytorch_lightning/overrides/
  • pytorch_lightning/plugins/
  • pytorch_lightning/profiler/
  • pytorch_lightning/trainer/
  • pytorch_lightning/tuner/
  • pytorch_lightning/utilities/

The followings are tests.

The followings are other python files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions