flake8: check F408 about unused imports, manual fixes only

This commit is contained in:
Erik Sundell
2022-11-16 11:01:07 +01:00
parent 957fd9cc20
commit 7a9491c323
6 changed files with 6 additions and 8 deletions

View File

@@ -4,9 +4,8 @@
# W: style warnings # W: style warnings
# C: complexity # C: complexity
# D: docstring warnings (unused pydocstyle extension) # D: docstring warnings (unused pydocstyle extension)
# F401: module imported but unused
# F841: local variable assigned but never used # F841: local variable assigned but never used
ignore = E, C, W, D, F401, F841 ignore = E, C, W, D, F841
builtins = c, get_config builtins = c, get_config
exclude = exclude =
.cache, .cache,

View File

@@ -250,7 +250,7 @@ if on_rtd:
# -- Spell checking ------------------------------------------------------- # -- Spell checking -------------------------------------------------------
try: try:
import sphinxcontrib.spelling import sphinxcontrib.spelling # noqa
except ImportError: except ImportError:
pass pass
else: else:

View File

@@ -1 +1 @@
from .app import app from .app import app # noqa

View File

@@ -1 +1 @@
from ._version import __version__, version_info from ._version import __version__, version_info # noqa

View File

@@ -14,7 +14,6 @@ depends_on = None
import sqlalchemy as sa import sqlalchemy as sa
from alembic import op from alembic import op
def upgrade(): def upgrade():
pass pass

View File

@@ -2,8 +2,8 @@
Contains default notebook-app subclass and mixins Contains default notebook-app subclass and mixins
""" """
from .app import SingleUserNotebookApp, main from .app import SingleUserNotebookApp, main # noqa
from .mixins import HubAuthenticatedHandler, make_singleuser_app from .mixins import HubAuthenticatedHandler, make_singleuser_app # noqa
# backward-compatibility # backward-compatibility
JupyterHubLoginHandler = SingleUserNotebookApp.login_handler_class JupyterHubLoginHandler = SingleUserNotebookApp.login_handler_class