diff --git a/litellm/proxy/secure_share/secure_share_endpoints.py b/litellm/proxy/secure_share/secure_share_endpoints.py index 4903bf96604..c693ef54b81 100644 --- a/litellm/proxy/secure_share/secure_share_endpoints.py +++ b/litellm/proxy/secure_share/secure_share_endpoints.py @@ -143,7 +143,7 @@ def _require_read_access(user_api_key_dict: UserAPIKeyAuth) -> None: ) async def create_secure_share( request: SecureShareCreateRequest, - user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), + user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), # noqa: B008 # FastAPI resolves auth from this default ) -> SecureShareCreateResponse: _require_proxy_admin(user_api_key_dict) @@ -171,7 +171,7 @@ async def create_secure_share( ) async def get_secure_share( share_id: str = Path(description="id returned by /secure_share/create"), - user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), + user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), # noqa: B008 # FastAPI resolves auth from this default ) -> SecureShareGetResponse: _require_read_access(user_api_key_dict) @@ -194,7 +194,7 @@ async def get_secure_share( ) async def delete_secure_share( share_id: str = Path(description="id returned by /secure_share/create"), - user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), + user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), # noqa: B008 # FastAPI resolves auth from this default ) -> dict[str, str]: _require_proxy_admin(user_api_key_dict) diff --git a/ruff.toml b/ruff.toml index 2ea9d7260fb..b2ea683879a 100644 --- a/ruff.toml +++ b/ruff.toml @@ -6,7 +6,7 @@ lint.extend-select = ["T20", "PGH004", "RUF008", "RUF009", "RUF100"] # litellm's own ruff config both rely on suppressions this config can't see. lint.external = [ # Enforced by the strict-rule gate (scripts/ruff_strict_gate.py + ruff-strict.toml) - "C901", + "C901", "B008", # Enforced by upstream litellm's ruff config, but not run in this repo's CI "PLC0415", "E402", "BLE001", "ARG002", "S102", "S324", "S606", "D401", "F403", "F405", ]