From 2373858b330ff530b09f14a102eb947776413d58 Mon Sep 17 00:00:00 2001 From: Arnaud Gelas Date: Tue, 12 Jan 2021 09:31:51 +0100 Subject: [PATCH] Fix pre-commit isort failure on tests/checkpointing/*.py (#5427) * Remove tests.checkpointing from skipped module in pyproject.toml * Fix pre-commit isort failure on tests/checkpointing/*.py --- pyproject.toml | 1 - tests/checkpointing/test_trainer_checkpoint.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6908f47250..aaa6c3c166 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,6 @@ skip_glob = [ "tests/backends/*", "tests/base/*", "tests/callbacks/*", - "tests/checkpointing/*", "tests/core/*", "tests/loggers/*", "tests/metrics/*", diff --git a/tests/checkpointing/test_trainer_checkpoint.py b/tests/checkpointing/test_trainer_checkpoint.py index 286ae00502..f3ce1c588e 100644 --- a/tests/checkpointing/test_trainer_checkpoint.py +++ b/tests/checkpointing/test_trainer_checkpoint.py @@ -11,8 +11,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from copy import deepcopy import os +from copy import deepcopy import torch