Skip to content

Commit

Permalink
CLeanup some of the imports, to remove unused, and convert wildcards …
Browse files Browse the repository at this point in the history
…into explict.
  • Loading branch information
bramp committed Jul 1, 2024
1 parent ee4d632 commit 676f327
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/test_classification.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from unit_parse.classification import *
from unit_parse import Q, U
from unit_parse.classification import ClassificationObj, QuantClass, quantity_classifier


example_quantity_classifier = [
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from unit_parse import parser, Quantity, config
from unit_parse import parser, Quantity


examples = [
Expand Down
6 changes: 5 additions & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import pytest

from unit_parse.core import *
from unit_parse.core import Quantity, Unit
from unit_parse.core import frame_shift
from unit_parse.core import get_quantity, get_unit, get_value
from unit_parse.core import last_minute_sub, merge_split_text
from unit_parse.core import split_on_division_symbol, split_on_multiplication_symbol, split_on_powers

test_get_value = [ # [Input, Output]
# positive control (works)
Expand Down
2 changes: 0 additions & 2 deletions tests/test_pint.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import pytest

import pint
u = pint.UnitRegistry()
U = Unit = u.Unit
Expand Down
2 changes: 0 additions & 2 deletions tests/test_pint_error.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import pytest

import pint

from unit_parse import parser
Expand Down
3 changes: 2 additions & 1 deletion tests/test_pre_processing_multiple.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest

from unit_parse.pre_processing_multiple import *
from unit_parse.pre_processing_multiple import condition_finder, multiple_quantities, reduce_parenthesis


examples = [ # [Input, Output]
# positive control (works)
Expand Down
5 changes: 4 additions & 1 deletion tests/test_pre_processing_substitution.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import pytest

from unit_parse.pre_processing_substitution import *
from unit_parse import config
from unit_parse.pre_processing_substitution import reduce_ranges, remove_strings, remove_words
from unit_parse.pre_processing_substitution import sub_general, sub_power, sub_sci_notation


remove_strings_examples = [
# complex
Expand Down
4 changes: 3 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import pytest

from unit_parse import Unit, Q
from unit_parse.utils import *
from unit_parse.utils import contains_number, flatten_list, get_list_depth
from unit_parse.utils import quantity_approx_equal, quantity_difference, remove_empty_cells
from unit_parse.utils import sig_figs, split_list

example_split_list = [
# positive control (changes)
Expand Down

0 comments on commit 676f327

Please sign in to comment.