Lint ignore some of the weird stuff in __init__.

Adjusted flake8 & coverage ignores for the namespace package cruft and
the import guards in the __init__ files.
This commit is contained in:
Dave Shawley 2021-09-16 07:58:21 -04:00
parent e26a94778b
commit 7472c399fb
No known key found for this signature in database
GPG key ID: F41A8A99298F8EED
3 changed files with 4 additions and 4 deletions

View file

@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover

View file

@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover

View file

@ -1,9 +1,9 @@
"""sprockets.mixins.mediatype"""
try:
from .content import (ContentMixin, ContentSettings,
from .content import (ContentMixin, ContentSettings, # noqa: F401
add_binary_content_type, add_text_content_type,
set_default_content_type)
except ImportError as error: # noqa: F841 # pragma no cover
except ImportError: # pragma: no cover
import warnings
warnings.warn(
'Missing runtime requirements for sprockets.mixins.mediatype',