From eaa096152a175bc2cda34c488e13ad241939d91e Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Wed, 16 Nov 2022 10:45:51 +0100 Subject: [PATCH] flake8: check F403 about import * --- .flake8 | 3 +-- jupyterhub/apihandlers/__init__.py | 2 +- jupyterhub/handlers/__init__.py | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.flake8 b/.flake8 index 3c729960..a016c4dc 100644 --- a/.flake8 +++ b/.flake8 @@ -5,10 +5,9 @@ # C: complexity # D: docstring warnings (unused pydocstyle extension) # F401: module imported but unused -# F403: import * # F811: redefinition of unused `name` from line `N` # F841: local variable assigned but never used -ignore = E, C, W, D, F401, F403, F811, F841 +ignore = E, C, W, D, F401, F811, F841 builtins = c, get_config exclude = .cache, diff --git a/jupyterhub/apihandlers/__init__.py b/jupyterhub/apihandlers/__init__.py index 39733829..f72887eb 100644 --- a/jupyterhub/apihandlers/__init__.py +++ b/jupyterhub/apihandlers/__init__.py @@ -1,5 +1,5 @@ from . import auth, groups, hub, proxy, services, users -from .base import * +from .base import * # noqa default_handlers = [] for mod in (auth, hub, proxy, users, groups, services): diff --git a/jupyterhub/handlers/__init__.py b/jupyterhub/handlers/__init__.py index e39e5730..79f3ea87 100644 --- a/jupyterhub/handlers/__init__.py +++ b/jupyterhub/handlers/__init__.py @@ -1,6 +1,6 @@ from . import base, login, metrics, pages -from .base import * -from .login import * +from .base import * # noqa +from .login import * # noqa default_handlers = [] for mod in (base, pages, login, metrics):