From 227dbf44d9b1ef72c44e791d8a9a001a4fc83693 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 7 May 2020 00:17:38 +0300 Subject: [PATCH] isort: fix config --- setup.cfg | 3 ++- tests/func/test_plot.py | 2 +- tests/func/test_s3.py | 6 +++--- tests/remotes.py | 3 ++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/setup.cfg b/setup.cfg index 11fb8963c..b993872e2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,6 +11,7 @@ select=B,C,E,F,W,T4,B9 [isort] include_trailing_comma=true -known_first_party=dvc +known_first_party=dvc,tests +known_third_party=git line_length=79 multi_line_output=3 diff --git a/tests/func/test_plot.py b/tests/func/test_plot.py index ccad39f5a..cd1acc6bb 100644 --- a/tests/func/test_plot.py +++ b/tests/func/test_plot.py @@ -6,9 +6,9 @@ from collections import OrderedDict import pytest import yaml +from bs4 import BeautifulSoup from funcy import first -from bs4 import BeautifulSoup from dvc.compat import fspath from dvc.repo.plot import NoDataOrTemplateProvided from dvc.repo.plot.data import ( diff --git a/tests/func/test_s3.py b/tests/func/test_s3.py index e609cc024..b90e7fb93 100644 --- a/tests/func/test_s3.py +++ b/tests/func/test_s3.py @@ -1,11 +1,11 @@ from functools import wraps import boto3 -import pytest - import moto.s3.models as s3model -from dvc.remote.s3 import S3Remote +import pytest from moto import mock_s3 + +from dvc.remote.s3 import S3Remote from tests.remotes import S3 # from https://github.com/spulec/moto/blob/v1.3.5/tests/test_s3/test_s3.py#L40 diff --git a/tests/remotes.py b/tests/remotes.py index e06e62d28..3dd3eace7 100644 --- a/tests/remotes.py +++ b/tests/remotes.py @@ -5,11 +5,12 @@ import uuid from contextlib import contextmanager from subprocess import CalledProcessError, Popen, check_output +from moto.s3 import mock_s3 + from dvc.remote import GDriveRemote from dvc.remote.gs import GSRemote from dvc.remote.s3 import S3Remote from dvc.utils import env2bool -from moto.s3 import mock_s3 from tests.basic_env import TestDvc TEST_REMOTE = "upstream"