👷 Adopt Ruff format (#10517)

* 🔧 Update pre-commit, use ruff format

* ⬆️ Upgrade dependencies, use Ruff for formatting

* 🔧 Update Ruff config

* 🔨 Update lint and format scripts, use Ruff

* 🎨 Format internals with Ruff

* 🎨 Format docs scripts

* 🎨 Format tests

* 🎨 Format extra commas in src for docs

* 📝 Update docs mentioning `@lru_cache()`, use `@lru_cache` instead to keep consistency with the format

* 🎨 Update src for docs, use plain `@lru_cache`

* 🎨 Update src for docs format and docs references
This commit is contained in:
Sebastián Ramírez
2023-10-25 00:26:06 +04:00
committed by GitHub
parent 4ef7a40eae
commit 2e14c69c31
46 changed files with 94 additions and 89 deletions

View File

@@ -12,7 +12,7 @@ async def read_items(
title="Query string",
description="Query string for the items to search in the database that have a good match",
min_length=3,
)
),
):
results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
if q: