Commit Graph

26 Commits

Author SHA1 Message Date
jaystone776 1f9d5a1db9
🌐 Add Chinese translation for `docs/zh/docs/advanced/advanced-dependencies.md` (#3798) 2024-01-28 13:26:57 -05:00
jaystone776 13c6eb2db0
🌐 Add Chinese translation for `docs/zh/docs/advanced/events.md` (#3815) 2024-01-28 13:23:10 -05:00
jaystone776 fc4606e1d0
🌐 Add Chinese translation for `docs/zh/docs/advanced/behind-a-proxy.md` (#3820) 2024-01-28 13:22:37 -05:00
jaystone776 eaf394d364
🌐 Add Chinese translation for `docs/zh/docs/advanced/testing-events.md` (#3818) 2024-01-28 13:21:02 -05:00
jaystone776 4b7fa89f4e
🌐 Add Chinese translation for `docs/zh/docs/advanced/testing-websockets.md` (#3817) 2024-01-28 13:12:29 -05:00
jaystone776 1e8b44f3e4
🌐 Add Chinese translation for `docs/zh/docs/advanced/testing-database.md` (#3821) 2024-01-28 13:09:26 -05:00
_Shuibei 9f7902925a
🌐 Add Chinese translation for `docs/zh/docs/advanced/additional-responses.md` (#10325)
Co-authored-by: unknown <lemonc2021@foxmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-09 16:53:39 +01:00
Koke 759378d67f
✏️ Update Pydantic links to dotenv support (#10511) 2023-10-30 12:00:16 +04:00
Sebastián Ramírez 2e14c69c31
👷 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
2023-10-25 00:26:06 +04:00
Sebastián Ramírez 2ba7586ff3
⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442)
* 📝 Update docs, require Python 3.8+, drop 3.7

* 🔧 Update pyproject.toml, drop support for Python 3.7, require Python 3.8+

* 👷 Update CI GitHub Actions, drop support for Python 3.7, require 3.8+

* 📝 Update docs' references to Python 3.6 and 3.7, use Python 3.8
2023-10-17 09:59:11 +04:00
PieCat bf952d345c
🌐 Add Chinese translation for `docs/zh/docs/advanced/generate-clients.md` (#9883)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: xzmeng <aumo@foxmail.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2023-09-02 17:18:30 +02:00
Sebastián Ramírez 51d3a8ff12
🔨 Add MkDocs hook that renames sections based on the first index file (#9737) 2023-06-24 16:47:15 +02:00
lordqyxz fa7474b2e8
🌐 Add Chinese translation for `docs/zh/docs/advanced/security/index.md` (#9666)
Co-authored-by: shiyz <shiyz@finchina.com>
2023-06-22 18:19:49 +02:00
雨过初晴 804a0a90cf
🌐 Add Chinese translations for `docs/zh/docs/advanced/settings.md` (#9652) 2023-06-22 18:18:04 +02:00
雨过初晴 4a7b21483b
🌐 Add Chinese translations for `docs/zh/docs/advanced/websockets.md` (#9651) 2023-06-22 18:17:12 +02:00
雨过初晴 57679e8370
🌐 Add Chinese translations for `docs/zh/docs/advanced/response-change-status-code.md` and `docs/zh/docs/advanced/response-headers.md` (#9544) 2023-06-10 22:30:28 +02:00
ASpathfinder a26a3c1cbf
🌐 Add Chinese translation for `docs/zh/docs/advanced/wsgi.md` (#4505)
Co-authored-by: Jeodre <jedore_fight@189.cn>
Co-authored-by: KellyAlsa-massive-win <lhz928441818@gmail.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-31 18:43:39 +01:00
zhangbo fb849ee7ef
🌐 Add translation for `docs/zh/docs/advanced/response-cookies.md` (#4638)
Co-authored-by: zhangbo <zhangbo@zjptmc.com>
2022-08-18 18:09:38 +02:00
Sebastián Ramírez ca437cdfab
📝 Add docs recommending `Union` over `Optional` and migrate source examples (#4908)
* 📝 Add docs recommending Union over Optional

* 📝 Update docs recommending Union over Optional

* 📝 Update source examples for docs, recommend Union over Optional

* 📝 Update highlighted lines with updated source examples

* 📝 Update highlighted lines in Markdown with recent code changes

* 📝 Update docs, use Union instead of Optional

* ♻️ Update source examples to recommend Union over Optional

* 🎨 Update highlighted code in Markdown after moving from Optional to Union
2022-05-14 06:59:59 -05:00
Sebastián Ramírez 3d0f130ff3
🔧 Add pre-commit with first config and first formatting pass (#4888)
* 🔧 Add first pre-commit config

* 🎨 Format YAML files with pre-commit

* 🎨 Format Markdown with pre-commit

* 🎨 Format SVGs, drawio, JS, HTML with pre-commit

*  Add pre-commit to dev dependencies

* ⬇️ Extend pre-commit range to support Python 3.6
2022-05-12 00:06:16 +00:00
Thomas Grainger 2d296c5d07
🔧 Configure strict pytest options and update/refactor tests (#2790)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2021-07-19 21:14:58 +02:00
Ikkyu 8af0b136b1
🌐 Add Chinese translation for Advanced - Custom Response (#1459)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2020-11-25 18:27:34 +01:00
Ikkyu 94fe5495fa
🌐 Add Chinese translation for Advanced - Return a Response Directly (#1452)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2020-11-25 18:22:34 +01:00
Ikkyu 6b49f67d11
🌐 Add Chinese translation for Advanced - Additional Status Codes (#1451)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2020-11-25 18:16:20 +01:00
Ikkyu 410da16a14
🌐 Add Chinese translation for Advanced - Path Operation Advanced Configuration (#1447)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2020-11-25 18:11:59 +01:00
Ikkyu b8331b13d7
🌐 Add Chinese translation for Advanced User Guide - Intro (#1445)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2020-11-25 18:07:17 +01:00