Skip to content

Commit 28478f9

Browse files
committed
additional cleanups
1 parent bcd848e commit 28478f9

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
from distutils.core import setup
55
from pathlib import PurePath
66
from platform import python_implementation
7-
from sys import version_info
8-
9-
from os.path import abspath, dirname, join
107
from typing import List
118

129
from setuptools import find_packages

src/pyff/resource.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
from pyff.pipes import PipelineCallback
3939
from pyff.utils import Lambda
4040

41+
# ensure static analysis doesn't flag these as unused
42+
assert PyffParser
43+
assert PipelineCallback
44+
assert Lambda
45+
4146
requests.packages.urllib3.disable_warnings()
4247

4348
log = get_log(__name__)

src/pyff/samlmd.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ def parse_saml_metadata(
8989
:param opts: ResourceOpts instance
9090
:param base_url: use this base url to resolve relative URLs for XInclude processing
9191
:param validation_errors: A dict that will be used to return validation errors to the caller
92-
:param cleanup: A list of callables that can be used to pre-process parsed metadata before validation. Use as a clue-bat.
9392
9493
:return: Tuple with t (ElementTree), expire_time_offset, exception
9594
"""

src/pyff/test/test_store.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import fakeredis
77

88
from pyff.constants import ATTRS
9-
from pyff.samlmd import iter_entities
109
from pyff.store import MemoryStore, RedisWhooshStore, SAMLStoreBase, entity_attribute_dict
1110
from pyff.utils import parse_xml, resource_filename, root
1211

src/pyff/test/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
url_get,
2525
)
2626

27-
from ..merge_strategies import remove, replace_existing
27+
from pyff.merge_strategies import remove, replace_existing
2828

2929

3030
class TestMetadata(TestCase):

0 commit comments

Comments
 (0)