Use Ruff for linting (#5630)

This commit is contained in:
Sebastián Ramírez
2022-11-13 19:19:04 +01:00
committed by GitHub
parent bcd9ab95e1
commit fa74093440
13 changed files with 51 additions and 37 deletions

View File

@@ -107,7 +107,7 @@ async def get_current_user(
if security_scopes.scopes:
authenticate_value = f'Bearer scope="{security_scopes.scope_str}"'
else:
authenticate_value = f"Bearer"
authenticate_value = "Bearer"
credentials_exception = HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Could not validate credentials",