Nils Lindemann
018f8523ff
Update prompts
1 week ago
pre-commit-ci[bot]
3242cd89a5
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
2 weeks ago
Nils Lindemann
2170725397
Prepare translate.py for Batch translation
... making a few fixes/changes:
* Fix a deprecation warning
* Fix a probably not intended hardcoded "es" language identifier when calling `translate_page`
* Fix `iter_en_paths_to_translate` and `non_translated_sections ` to also work on Windows, which uses backslashes in stringified paths
* Add `mode`, `verbose` and `preview` parameters to `translate_lang`, add a helper function to print path infos, and improve its output to show the progress.
* Add documentation to some function parameters
2 weeks ago
Nils Lindemann
c6eec13a2c
Intermezzo: You --> you
Fix a missing space on the way
2 weeks ago
Nils Lindemann
9eb82ee0f0
Update tutorial/dependencies/sub-dependencies.md + general prompt
2 weeks ago
Nils Lindemann
1941c610ee
Intermezzo: Use GPT-5
This commit started as an attempt to handle translation of abbr elements, which I was not able to get to work in a clean way. Shortly before I resigned I had the idea to try `openai:gpt-5` as agent in the translate.py, instead of `openai:gpt-4o` and BAM it worked. A lot of other things also worked much better. Modifications had to be made though because GPT-5 interpreted some rules stricter, so some reformulation and some more examples were needed. Will translate with that agent in the remaining translations to test if these prompts work well.
2 weeks ago
Nils Lindemann
59e4ad79cb
Intermezzo: Tell LLM to not add anchors to links
As it did so once (like in the example). This is actually super smart, the anchor exists (is the LLM caching the Anchors of headings in other documents?!), but I guess this possibly creates confusion, so avoid.
2 weeks ago
Nils Lindemann
bb862baba6
Intermezzo: Add a rule to the general prompt
..., which tells the LLM to fix wrongly translated anchor parts in links.
Back in those days I translated these parts, to link to the correct German heading, which then had a different anchor than the English heading. But now, as we use the same anchors
documentation-wide, this needs to be undone. The LLM missed some of these translated anchors, so I added this rule.
I will check via script, when gone through the whole documentation, if all those anchor parts are in sync and valid.
2 weeks ago
Nils Lindemann
18c698d20d
Update how-to/testing-database.md + general prompt
In this document it added language codes to urls starting with "https://sqlmodel.tiangolo.com/ ", resulting in broken links.
So I changed the instructions in the translate.py, so that it only adds the language code when the URL starts exactly with "https://fastapi.tiangolo.com ".
2 weeks ago
Nils Lindemann
d54497b0a1
Add an example to the translate.py
So that the LLM really does not do that (it sometimes did)
3 weeks ago
Nils Lindemann
70b8058c83
Apply branch `add-permalinks-to-en-docs`
3 weeks ago
Nils Lindemann
298323188c
Apply branch `update-translations-prompt`
3 weeks ago
Motov Yurii
b40acb83c9
⚒️ Update translate script, update prompt to minimize generated diff ( #13947 )
1 month ago
Sebastián Ramírez
9aab3d9e22
⚒️ Tweak translate script and CI ( #13939 )
1 month ago
Sebastián Ramírez
6516a6c4a6
👷 Add CI to translate with LLMs ( #13937 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 month ago
Sebastián Ramírez
273b06adab
⚒️ Update translate script, show and update outdated translations ( #13933 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 month ago
Sebastián Ramírez
adc328e258
🔨 Refactor translate script with extra feedback (prints) ( #13932 )
1 month ago
Sebastián Ramírez
ae02be90b6
🔨 Update translations script to remove old (removed) files ( #13928 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 month ago
Sebastián Ramírez
ce26b8e1ca
🔨 Update FastAPI People sleep interval, use external settings ( #13888 )
2 months ago
Emmanuel Ferdman
7c04182724
🔨 Resolve Pydantic deprecation warnings in internal script ( #13696 )
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
3 months ago
dependabot[bot]
8c94e97c89
⬆ Bump ruff to 0.9.4 ( #13299 )
* ⬆ Bump ruff from 0.6.4 to 0.9.4
Bumps [ruff](https://github.com/astral-sh/ruff ) from 0.6.4 to 0.9.4.
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md )
- [Commits](https://github.com/astral-sh/ruff/compare/0.6.4...0.9.4 )
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* update pre-commit accordingly and make formatting changes
* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alejandra <90076947+alejsdev@users.noreply.github.com>
Co-authored-by: svlandeg <sofie.vanlandeghem@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
6 months ago
Sebastián Ramírez
0a2b24653b
♻️ Fix `notify_translations.py` empty env var handling for PR label events vs workflow_dispatch ( #13272 )
7 months ago
Sebastián Ramírez
326fec16b9
♻️ Refactor and move `scripts/notify_translations.py`, no need for a custom GitHub Action ( #13270 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
7 months ago
Sebastián Ramírez
ff68d0894a
🔨 Update FastAPI People Experts script, refactor and optimize data fetching to handle rate limits ( #13267 )
7 months ago
Sebastián Ramírez
2ee101fb81
👷 Refactor FastAPI People Sponsors to use 2 tokens ( #13228 )
8 months ago
Sebastián Ramírez
9e0d4fa0ef
👷 Add independent CI automation for FastAPI People - Sponsors ( #13221 )
8 months ago
Alejandra
1b8f823a05
👷♀️ Add script for GitHub Topic Repositories and update External Links ( #13135 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
8 months ago
Sebastián Ramírez
b59885c9d5
👷 Add new GitHub Action to update contributors, translators, and translation reviewers ( #13136 )
8 months ago
Sebastián Ramírez
acd9c4e1aa
🔨 Add internal scripts to generate language translations with PydanticAI, include Spanish prompt ( #13123 )
8 months ago
Sebastián Ramírez
8767a31c80
📝 Update `contributing.md` docs, include note to not translate this page ( #12841 )
10 months ago
Sebastián Ramírez
98182d02ce
🔨 Update docs preview script to show previous version and English version ( #12856 )
10 months ago
Sebastián Ramírez
6384f730f7
👷 Refactor label-approved, make it an internal script instead of an external GitHub Action ( #12280 )
11 months ago
Sebastián Ramírez
7daaac2bc3
✨ Add new tutorial for SQL databases with SQLModel ( #12285 )
11 months ago
Sebastián Ramírez
c6dfdb8523
🔨 Add script to generate variants of files ( #12405 )
11 months ago
Sebastián Ramírez
797cad7162
📝 Fix extra mdx-base-path paths ( #12397 )
11 months ago
Sebastián Ramírez
55035f440b
✨ Add support for Pydantic models for parameters using `Query`, `Cookie`, `Header` ( #12199 )
12 months ago
Sebastián Ramírez
2a4351105e
💡 Add comments with instructions for Playwright screenshot scripts ( #12193 )
12 months ago
Sebastián Ramírez
7bad7c0975
✨ Add support for Pydantic models in `Form` parameters ( #12129 )
Revert "⏪ ️ Temporarily revert "✨ Add support for Pydantic models in `Form` pa…"
This reverts commit 8e6cf9ee9c
.
1 year ago
Sebastián Ramírez
8e6cf9ee9c
⏪ ️ Temporarily revert " ✨ Add support for Pydantic models in `Form` parameters" to make a checkpoint release ( #12128 )
Revert "✨ Add support for Pydantic models in `Form` parameters (#12127 )"
This reverts commit 0f3e65b007
.
1 year ago
Sebastián Ramírez
0f3e65b007
✨ Add support for Pydantic models in `Form` parameters ( #12127 )
1 year ago
Sebastián Ramírez
4f1eb0cd9e
🔧 Update coverage config files ( #12035 )
1 year ago
Sebastián Ramírez
9bfc48ad9f
📝 Update FastAPI People, do not translate to have the most recent info ( #12034 )
1 year ago
gitworkflows
4a7f6e0ae6
🔨 Standardize shebang across shell scripts ( #11942 )
1 year ago
Sławomir Ehlert
0aaaed581e
⚙️ Record and show test coverage contexts (what test covers which line) ( #11518 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 year ago
Sebastián Ramírez
85bd4067c2
📝 Add documentation for non-translated pages and scripts to verify them ( #12020 )
1 year ago
Sebastián Ramírez
06fc1c2cc8
🔨 Update docs.py script to enable dirty reload conditionally ( #11986 )
1 year ago
Sebastián Ramírez
8b6d9ba789
🐛 Fix deploy docs previews script to handle mkdocs.yml files ( #11984 )
1 year ago
Sebastián Ramírez
233bab7f41
👷 Update docs-previews to handle no docs changes ( #11975 )
1 year ago
Sebastián Ramírez
58279670b6
🔨 Refactor script `deploy_docs_status.py` to account for deploy URLs with or without trailing slash ( #11965 )
1 year ago
Sebastián Ramírez
f118154576
👷🏻 Add deploy docs status and preview links to PRs ( #11961 )
1 year ago