chore: bump ruff to 0.11.0 and fix linting violations (#15953)

This commit is contained in:
Bowen Liang 2025-03-17 16:13:11 +08:00 • committed by GitHub
commit 9e782d4c1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 155 additions and 454 deletions

View file

@ -99,7 +99,7 @@ def enable_segments_to_index_task(segment_ids: list, dataset_id: str, document_i
{
"error": str(e),
"status": "error",
"disabled_at": datetime.datetime.now(datetime.timezone.utc).replace(tzinfo=None),
"disabled_at": datetime.datetime.now(datetime.UTC).replace(tzinfo=None),
"enabled": False,
}
)