mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix(proxy): keep secure_share within B008 strict-budget via justified noqa
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
b1806abfba
commit
333b453634
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue