-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
ciContinuous IntegrationContinuous IntegrationfeatureIs an improvement or enhancementIs an improvement or enhancementgood first issueGood for newcomersGood for newcomershelp wantedOpen to be worked onOpen to be worked onpriority: 2Low priority taskLow priority taskrefactor
Milestone
Description
🚀 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:
- choose one submodule from below list and apply
isortto it - remove the corresponding line in
pyproject.toml - make sure
isort --checkpasses
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.
-
tests/*.py>> Apply import formatting to files in the 2nd top level #4717 -
tests/backends/>> Fix pre-commit isort failure on tests/backends/*.py #5430 -
tests/base/>> Fix pre-commit isort failure on tests/base/*.py #5429 -
tests/callbacks/>> Fix pre-commit isort failure on tests/callbacks/*.py #5428 -
tests/checkpointing/>> Fix pre-commit isort failure on tests/checkpointing/*.py #5427 -
tests/core/>> Fix pre-commit isort failure on tests/core/*.py #5426 -
tests/loggers/>> Fix pre-commit isort failure on tests/loggers/*.py #5425 -
tests/plugins/>> Fix pre-commit isort failure on tests/plugins/*.py #5422 -
tests/metrics/>> Fix pre-commit isort failure on tests/metrics/*.py #5424 -
tests/models/>> Fix pre-commit isort failure on tests/models/*.py #5423 -
tests/trainer/>> Fix pre-commit isort failure on tests/trainer/*.py #5421 -
tests/tuner/ -
tests/utilities/>> Fix pre-commit isort failure on tests/utilities/*.py #5420
The followings are other python files.
-
*.py(CI: Added isort import check for the code on pull-request #4242) -
docs/(CI: Added isort import check for the code on pull-request #4242) -
pl_examples/(Apply isort topl_examples/#5291)
Borda and awaelchliBorda
Metadata
Metadata
Assignees
Labels
ciContinuous IntegrationContinuous IntegrationfeatureIs an improvement or enhancementIs an improvement or enhancementgood first issueGood for newcomersGood for newcomershelp wantedOpen to be worked onOpen to be worked onpriority: 2Low priority taskLow priority taskrefactor