From 0e3bdcbfba3606a606c4c7e40db680aaf8e743c7 Mon Sep 17 00:00:00 2001 From: Robert Queenin <2177841+ecalifornica@users.noreply.github.com> Date: Mon, 11 Sep 2023 11:41:45 -0700 Subject: [PATCH] Remove unused imports Fixes linter error F401. --- src/hgvs/parser.py | 1 - tests/fx-test/test_variant_length.py | 1 - tests/issues/test_02xx.py | 12 +----------- tests/issues/test_03xx.py | 5 ----- tests/issues/test_04xx.py | 12 +----------- tests/issues/test_05xx.py | 11 ----------- tests/support/crosschecker.py | 2 -- tests/support/mock_input_source.py | 1 - tests/test_clinvar.py | 3 --- tests/test_hgvs_alignmentmapper.py | 7 +------ tests/test_hgvs_variantmapper_gcp.py | 3 --- tests/test_hgvs_variantmapper_near_discrepancies.py | 1 - 12 files changed, 3 insertions(+), 56 deletions(-) diff --git a/src/hgvs/parser.py b/src/hgvs/parser.py index c8bfb17d..ddaa1cab 100644 --- a/src/hgvs/parser.py +++ b/src/hgvs/parser.py @@ -13,7 +13,6 @@ import bioutils.sequences import ometa.runtime import parsley -from pkg_resources import resource_filename import hgvs.edit diff --git a/tests/fx-test/test_variant_length.py b/tests/fx-test/test_variant_length.py index c70f1c5f..445e1168 100644 --- a/tests/fx-test/test_variant_length.py +++ b/tests/fx-test/test_variant_length.py @@ -4,7 +4,6 @@ import os import unittest -import pytest from support import CACHE import hgvs.dataproviders.uta diff --git a/tests/issues/test_02xx.py b/tests/issues/test_02xx.py index 41fb1f36..fa2a4f1a 100644 --- a/tests/issues/test_02xx.py +++ b/tests/issues/test_02xx.py @@ -1,11 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals -import logging import os -import pprint -import re -import sys import unittest import pytest @@ -18,13 +14,7 @@ import hgvs.sequencevariant import hgvs.validator import hgvs.variantmapper -from hgvs.enums import Datum -from hgvs.exceptions import ( - HGVSDataNotAvailableError, - HGVSError, - HGVSInvalidVariantError, - HGVSParseError, -) +from hgvs.exceptions import HGVSInvalidVariantError @pytest.mark.issues diff --git a/tests/issues/test_03xx.py b/tests/issues/test_03xx.py index 053089e3..ed07d272 100644 --- a/tests/issues/test_03xx.py +++ b/tests/issues/test_03xx.py @@ -1,11 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals -import logging import os -import pprint -import re -import sys import unittest import pytest @@ -24,7 +20,6 @@ HGVSDataNotAvailableError, HGVSError, HGVSInvalidVariantError, - HGVSParseError, ) diff --git a/tests/issues/test_04xx.py b/tests/issues/test_04xx.py index 59c79979..1efbe36f 100644 --- a/tests/issues/test_04xx.py +++ b/tests/issues/test_04xx.py @@ -1,11 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals -import logging import os -import pprint -import re -import sys import unittest import pytest @@ -18,13 +14,7 @@ import hgvs.sequencevariant import hgvs.validator import hgvs.variantmapper -from hgvs.enums import Datum -from hgvs.exceptions import ( - HGVSDataNotAvailableError, - HGVSError, - HGVSInvalidVariantError, - HGVSParseError, -) +from hgvs.exceptions import HGVSDataNotAvailableError @pytest.mark.issues diff --git a/tests/issues/test_05xx.py b/tests/issues/test_05xx.py index 2c556287..08876e9e 100644 --- a/tests/issues/test_05xx.py +++ b/tests/issues/test_05xx.py @@ -1,11 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals -import logging import os -import pprint -import re -import sys import unittest import pytest @@ -18,13 +14,6 @@ import hgvs.sequencevariant import hgvs.validator import hgvs.variantmapper -from hgvs.enums import Datum -from hgvs.exceptions import ( - HGVSDataNotAvailableError, - HGVSError, - HGVSInvalidVariantError, - HGVSParseError, -) @pytest.mark.issues diff --git a/tests/support/crosschecker.py b/tests/support/crosschecker.py index 755a3313..36c779e1 100644 --- a/tests/support/crosschecker.py +++ b/tests/support/crosschecker.py @@ -1,8 +1,6 @@ from __future__ import absolute_import, division, print_function, unicode_literals import itertools -import re -import unittest from six.moves import map diff --git a/tests/support/mock_input_source.py b/tests/support/mock_input_source.py index 82580dc9..184fbb49 100644 --- a/tests/support/mock_input_source.py +++ b/tests/support/mock_input_source.py @@ -2,7 +2,6 @@ from __future__ import absolute_import, division, print_function, unicode_literals import csv -from sys import version_info # Mock test input source diff --git a/tests/test_clinvar.py b/tests/test_clinvar.py index e83bea3b..d4ad22be 100644 --- a/tests/test_clinvar.py +++ b/tests/test_clinvar.py @@ -2,12 +2,10 @@ from __future__ import absolute_import, division, print_function, unicode_literals import csv -import fileinput import gzip import io import os import sys -import types import unittest import pytest @@ -19,7 +17,6 @@ import hgvs.parser import hgvs.sequencevariant import hgvs.variantmapper -from hgvs.exceptions import HGVSError data_fn = os.path.join(os.path.dirname(__file__), "data", "clinvar.gz") diff --git a/tests/test_hgvs_alignmentmapper.py b/tests/test_hgvs_alignmentmapper.py index 44cf978f..7b6d532b 100644 --- a/tests/test_hgvs_alignmentmapper.py +++ b/tests/test_hgvs_alignmentmapper.py @@ -12,12 +12,7 @@ import hgvs.location import hgvs.parser from hgvs.alignmentmapper import AlignmentMapper -from hgvs.enums import Datum -from hgvs.exceptions import ( - HGVSDataNotAvailableError, - HGVSError, - HGVSInvalidIntervalError, -) +from hgvs.exceptions import HGVSDataNotAvailableError, HGVSInvalidIntervalError @pytest.mark.quick diff --git a/tests/test_hgvs_variantmapper_gcp.py b/tests/test_hgvs_variantmapper_gcp.py index 0a63b0f8..b3695953 100644 --- a/tests/test_hgvs_variantmapper_gcp.py +++ b/tests/test_hgvs_variantmapper_gcp.py @@ -1,9 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals -import logging import os -import pprint import re import sys import unittest @@ -20,7 +18,6 @@ import hgvs.parser import hgvs.sequencevariant import hgvs.variantmapper -from hgvs.exceptions import HGVSError def gxp_file_reader(fn): diff --git a/tests/test_hgvs_variantmapper_near_discrepancies.py b/tests/test_hgvs_variantmapper_near_discrepancies.py index 59e4f7ce..84bed3d8 100644 --- a/tests/test_hgvs_variantmapper_near_discrepancies.py +++ b/tests/test_hgvs_variantmapper_near_discrepancies.py @@ -9,7 +9,6 @@ import hgvs.assemblymapper import hgvs.dataproviders.uta import hgvs.parser -from hgvs.exceptions import HGVSError, HGVSInvalidVariantError tests_fn = "tests/data/proj-near-disc.tsv"