Skip to content

Commit e24c43f

Browse files
author
Mike
committed
Hatch
1 parent 70c4476 commit e24c43f

10 files changed

Lines changed: 17 additions & 24 deletions

File tree

src/hdx/api/locations.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
"""Locations in HDX"""
22
from typing import Dict, List, Optional, Tuple
33

4-
from hdx.utilities.typehint import ListTuple
5-
64
from hdx.api.configuration import Configuration
5+
from hdx.utilities.typehint import ListTuple
76

87

98
class Locations:

src/hdx/data/dataset_title_helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
from typing import List, Match, Optional, Tuple
88

99
from dateutil.parser import ParserError
10+
from quantulum3 import parser
11+
1012
from hdx.utilities.dateparse import parse_date, parse_date_range
1113
from hdx.utilities.text import (
1214
PUNCTUATION_MINUS_BRACKETS,
1315
remove_end_characters,
1416
remove_from_end,
1517
remove_string,
1618
)
17-
from quantulum3 import parser
1819

1920
logger = logging.getLogger(__name__)
2021

src/hdx/facades/infer_arguments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
from typing import Any, Callable, Optional # noqa: F401
66

77
import defopt
8-
from hdx.utilities.easy_logging import setup_logging
9-
from hdx.utilities.useragent import UserAgent
108
from makefun import with_signature
119

1210
from hdx.api import __version__
1311
from hdx.api.configuration import Configuration
12+
from hdx.utilities.easy_logging import setup_logging
13+
from hdx.utilities.useragent import UserAgent
1414

1515
logger = logging.getLogger(__name__)
1616
setup_logging(log_file="errors.log")

src/hdx/facades/keyword_arguments.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
import logging
33
from typing import Any, Callable
44

5-
from hdx.utilities.easy_logging import setup_logging
6-
from hdx.utilities.useragent import UserAgent
7-
85
from hdx.api import __version__
96
from hdx.api.configuration import Configuration
7+
from hdx.utilities.easy_logging import setup_logging
8+
from hdx.utilities.useragent import UserAgent
109

1110
logger = logging.getLogger(__name__)
1211
setup_logging(log_file="errors.log")

src/hdx/facades/simple.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
import logging
33
from typing import Any, Callable
44

5-
from hdx.utilities.easy_logging import setup_logging
6-
from hdx.utilities.useragent import UserAgent
7-
85
from hdx.api import __version__
96
from hdx.api.configuration import Configuration
7+
from hdx.utilities.easy_logging import setup_logging
8+
from hdx.utilities.useragent import UserAgent
109

1110
logger = logging.getLogger(__name__)
1211
setup_logging(log_file="errors.log")

tests/hdx/api/test_locations.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
"""HDX Location Tests"""
2-
from hdx.location.country import Country
3-
42
from hdx.api.configuration import Configuration
53
from hdx.api.locations import Locations
4+
from hdx.location.country import Country
65

76

87
class MyConfiguration:

tests/hdx/facades/test_infer_arguments.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
import sys
33

44
import pytest
5-
from hdx.utilities.useragent import UserAgent
65

6+
from . import my_testfnia, testresult
77
from hdx.api.configuration import ConfigurationError
88
from hdx.facades.infer_arguments import facade
9-
10-
from . import my_testfnia, testresult
9+
from hdx.utilities.useragent import UserAgent
1110

1211

1312
class TestInferArguments:

tests/hdx/facades/test_keyword_arguments.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
"""Simple Facade Tests"""
22
import pytest
3-
from hdx.utilities.useragent import UserAgent, UserAgentError
43

4+
from . import my_testfnkw, testresult
55
from hdx.api import __version__
66
from hdx.facades.keyword_arguments import facade
7-
8-
from . import my_testfnkw, testresult
7+
from hdx.utilities.useragent import UserAgent, UserAgentError
98

109

1110
class TestKeywordArguments:

tests/hdx/facades/test_simple.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
"""Simple Facade Tests"""
22
import pytest
3-
from hdx.utilities.useragent import UserAgent, UserAgentError
43

4+
from . import my_excfn, my_testfn, my_testkeyfn, my_testuafn, testresult
55
from hdx.api import __version__
66
from hdx.facades.simple import facade
7-
8-
from . import my_excfn, my_testfn, my_testkeyfn, my_testuafn, testresult
7+
from hdx.utilities.useragent import UserAgent, UserAgentError
98

109

1110
class TestSimple:

workingexample/run.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
"""
55
import logging
66

7-
from hdx.facades.simple import facade
8-
97
from .my_code import generate_dataset
8+
from hdx.facades.simple import facade
109

1110
logger = logging.getLogger(__name__)
1211

0 commit comments

Comments
 (0)