mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 05:53:00 +00:00
flake8: check F811 about redefinition of unused name
This commit is contained in:
3
.flake8
3
.flake8
@@ -5,9 +5,8 @@
|
|||||||
# C: complexity
|
# C: complexity
|
||||||
# D: docstring warnings (unused pydocstyle extension)
|
# D: docstring warnings (unused pydocstyle extension)
|
||||||
# F401: module imported but unused
|
# F401: module imported but unused
|
||||||
# F811: redefinition of unused `name` from line `N`
|
|
||||||
# F841: local variable assigned but never used
|
# F841: local variable assigned but never used
|
||||||
ignore = E, C, W, D, F401, F811, F841
|
ignore = E, C, W, D, F401, F841
|
||||||
builtins = c, get_config
|
builtins = c, get_config
|
||||||
exclude =
|
exclude =
|
||||||
.cache,
|
.cache,
|
||||||
|
@@ -51,7 +51,7 @@ async def me(user: User = Depends(get_current_user)):
|
|||||||
|
|
||||||
|
|
||||||
@router.get("/debug")
|
@router.get("/debug")
|
||||||
async def index(request: Request, user: User = Depends(get_current_user)):
|
async def debug(request: Request, user: User = Depends(get_current_user)):
|
||||||
"""
|
"""
|
||||||
Authenticated function that returns a few pieces of debug
|
Authenticated function that returns a few pieces of debug
|
||||||
* Environ of the service process
|
* Environ of the service process
|
||||||
|
Reference in New Issue
Block a user