Fix pre-commit isort failure on tests/callbacks/*.py (#5428)

* Remove tests.callbacks from skipped module in pyproject.toml

* Fix pre-commit isort failure on tests/callbacks/*.py
This commit is contained in:
Arnaud Gelas 2021-01-14 19:15:34 +01:00 committed by GitHub
parent 16224781ed
commit 6d83d4457d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 9 deletions

View File

@ -85,16 +85,13 @@ skip_glob = [
"tests/base/*",
# todo
"tests/callbacks/*",
# todo
"tests/loggers/*",
# todo
"tests/tuner/*",
"tests/utilities/*",
]
profile = "black"
line_length = 120

View File

@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import numpy as np
import pytest
import torch
import numpy as np
from pytorch_lightning import Trainer
from pytorch_lightning.callbacks import GPUStatsMonitor

View File

@ -12,15 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import os
from unittest.mock import Mock, call
from unittest import mock
from unittest.mock import call, Mock
import pytest
from unittest import mock
from pytorch_lightning import Trainer
from pytorch_lightning.callbacks import ProgressBarBase, ProgressBar, ModelCheckpoint
from pytorch_lightning.callbacks import ModelCheckpoint, ProgressBar, ProgressBarBase
from pytorch_lightning.utilities.exceptions import MisconfigurationException
from tests.base import EvalModelTemplate, BoringModel
from tests.base import BoringModel, EvalModelTemplate
@pytest.mark.parametrize('callbacks,refresh_rate', [