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:
parent
16224781ed
commit
6d83d4457d
|
@ -85,16 +85,13 @@ skip_glob = [
|
|||
"tests/base/*",
|
||||
|
||||
|
||||
# todo
|
||||
"tests/callbacks/*",
|
||||
|
||||
|
||||
# todo
|
||||
"tests/loggers/*",
|
||||
|
||||
|
||||
# todo
|
||||
"tests/tuner/*",
|
||||
"tests/utilities/*",
|
||||
]
|
||||
profile = "black"
|
||||
line_length = 120
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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', [
|
||||
|
|
Loading…
Reference in New Issue