Skip to content

Commit

Permalink
Re-sorting and re-grouping all imports following PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
tpiekarski committed Jul 17, 2020
1 parent 0938e29 commit 3a50da5
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/derl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Copyright 2020 Thomas Piekarski <[email protected]>
#

from pkg_resources import get_distribution, DistributionNotFound
from pkg_resources import DistributionNotFound, get_distribution

try:
DIST_NAME = __name__
Expand Down
2 changes: 1 addition & 1 deletion src/derl/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
#

import sys

from argparse import Namespace
from logging import getLogger
from os import path

from magic import from_file
from validators import url

Expand Down
3 changes: 1 addition & 2 deletions src/derl/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
from aiohttp.client_exceptions import ClientConnectionError, TooManyRedirects
from aiohttp_retry import RetryClient

from derl.tracker import get_tracker
from derl import __version__

from derl.tracker import get_tracker

_logger = logging.getLogger(__name__)
_tracker = get_tracker()
Expand Down
3 changes: 1 addition & 2 deletions src/derl/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@


import sys

from logging import basicConfig, getLogger, ERROR
from logging import ERROR, basicConfig, getLogger

from derl.checker import check_arguments
from derl.collector import collect_context
Expand Down
1 change: 1 addition & 0 deletions src/derl/outputer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#

from logging import getLogger

from derl.tracker import get_tracker

_logger = getLogger(__name__)
Expand Down
3 changes: 2 additions & 1 deletion src/derl/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

from logging import getLogger
from pathlib import Path
from re import compile as rcompile, IGNORECASE
from re import IGNORECASE
from re import compile as rcompile
from typing import TextIO

from derl.checker import is_text_file, is_url
Expand Down
2 changes: 1 addition & 1 deletion tests/test_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# Copyright 2020 Thomas Piekarski <[email protected]>
#

from unittest import TestCase
from pathlib import Path
from unittest import TestCase

from derl.checker import is_directory, is_text_file

Expand Down
3 changes: 2 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@

from pytest import raises

from conftest import (_TEST_DIRECTORY, _TEST_REQUEST_RETRIES,
_TEST_REQUESTS_TIMEOUT)
from derl.checker import _INVALID_DIRECTORY, _INVALID_RETRY, _INVALID_TIMEOUT
from derl.main import main, run
from derl.tracker import get_tracker
from conftest import _TEST_DIRECTORY, _TEST_REQUEST_RETRIES, _TEST_REQUESTS_TIMEOUT

_tracker = get_tracker()

Expand Down
2 changes: 1 addition & 1 deletion tests/test_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

from unittest import TestCase

from derl.processor import process_directory, process_file, process_line
from conftest import _TEST_DIRECTORY
from derl.processor import process_directory, process_file, process_line


class ProcessorTest(TestCase):
Expand Down

0 comments on commit 3a50da5

Please sign in to comment.