Skip to content

Commit 676f327

Browse files
committed
CLeanup some of the imports, to remove unused, and convert wildcards into explict.
1 parent ee4d632 commit 676f327

File tree

8 files changed

+16
-10
lines changed

8 files changed

+16
-10
lines changed

tests/test_classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
22

3-
from unit_parse.classification import *
43
from unit_parse import Q, U
4+
from unit_parse.classification import ClassificationObj, QuantClass, quantity_classifier
55

66

77
example_quantity_classifier = [

tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from unit_parse import parser, Quantity, config
3+
from unit_parse import parser, Quantity
44

55

66
examples = [

tests/test_core.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import pytest
22

3-
from unit_parse.core import *
3+
from unit_parse.core import Quantity, Unit
4+
from unit_parse.core import frame_shift
5+
from unit_parse.core import get_quantity, get_unit, get_value
6+
from unit_parse.core import last_minute_sub, merge_split_text
7+
from unit_parse.core import split_on_division_symbol, split_on_multiplication_symbol, split_on_powers
48

59
test_get_value = [ # [Input, Output]
610
# positive control (works)

tests/test_pint.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import pytest
2-
31
import pint
42
u = pint.UnitRegistry()
53
U = Unit = u.Unit

tests/test_pint_error.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import pytest
2-
31
import pint
42

53
from unit_parse import parser

tests/test_pre_processing_multiple.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import pytest
22

3-
from unit_parse.pre_processing_multiple import *
3+
from unit_parse.pre_processing_multiple import condition_finder, multiple_quantities, reduce_parenthesis
4+
45

56
examples = [ # [Input, Output]
67
# positive control (works)

tests/test_pre_processing_substitution.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import pytest
22

3-
from unit_parse.pre_processing_substitution import *
3+
from unit_parse import config
4+
from unit_parse.pre_processing_substitution import reduce_ranges, remove_strings, remove_words
5+
from unit_parse.pre_processing_substitution import sub_general, sub_power, sub_sci_notation
6+
47

58
remove_strings_examples = [
69
# complex

tests/test_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import pytest
22

33
from unit_parse import Unit, Q
4-
from unit_parse.utils import *
4+
from unit_parse.utils import contains_number, flatten_list, get_list_depth
5+
from unit_parse.utils import quantity_approx_equal, quantity_difference, remove_empty_cells
6+
from unit_parse.utils import sig_figs, split_list
57

68
example_split_list = [
79
# positive control (changes)

0 commit comments

Comments
 (0)