mirror of
https://github.com/sprockets/sprockets.mixins.mediatype.git
synced 2024-12-27 11:17:30 +00:00
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:
parent
e26a94778b
commit
7472c399fb
3 changed files with 4 additions and 4 deletions
|
@ -1 +1 @@
|
|||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover
|
||||
|
|
|
@ -1 +1 @@
|
|||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue