mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 10:04:07 +00:00
flake8: check F408 about unused imports, manual fixes only
This commit is contained in:
3
.flake8
3
.flake8
@@ -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,
|
||||||
|
@@ -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:
|
||||||
|
@@ -1 +1 @@
|
|||||||
from .app import app
|
from .app import app # noqa
|
||||||
|
@@ -1 +1 @@
|
|||||||
from ._version import __version__, version_info
|
from ._version import __version__, version_info # noqa
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user