Browse Source

Merge branch 'master' into frontend-skill

pull/15805/head
Sebastián Ramírez 1 month ago
committed by GitHub
parent
commit
98befde379
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      .github/workflows/test.yml
  2. 2
      docs/en/docs/release-notes.md
  3. 4
      fastapi/routing.py

3
.github/workflows/test.yml

@ -245,9 +245,10 @@ jobs:
- run: uv run coverage report --fail-under=100
# https://github.com/marketplace/actions/alls-green#why
check: # This job does nothing and is only used for the branch protection
test-alls-green: # This job does nothing and is only used for the branch protection
if: always()
needs:
- test
- coverage-combine
- benchmark
runs-on: ubuntu-latest

2
docs/en/docs/release-notes.md

@ -24,6 +24,8 @@ hide:
### Internal
* 🐛 Fix failing test, update format for raised errors. PR [#15804](https://github.com/fastapi/fastapi/pull/15804) by [@tiangolo](https://github.com/tiangolo).
* 👷 Fix test-alls-green. PR [#15803](https://github.com/fastapi/fastapi/pull/15803) by [@tiangolo](https://github.com/tiangolo).
* 🔧 Enable checking `release-notes.md` for typos. PR [#15796](https://github.com/fastapi/fastapi/pull/15796) by [@YuriiMotov](https://github.com/YuriiMotov).
* 📝 Tweak wording about deploying to FastAPI Cloud. PR [#15793](https://github.com/fastapi/fastapi/pull/15793) by [@tiangolo](https://github.com/tiangolo).
* 🔨 Use `gpt-5.5` model in `translate.py`, specify `-chat` to avoid warnings. PR [#15792](https://github.com/fastapi/fastapi/pull/15792) by [@YuriiMotov](https://github.com/YuriiMotov).

4
fastapi/routing.py

@ -1809,8 +1809,8 @@ class _FrontendStaticFiles(StaticFiles):
self.fallback = fallback
if check_dir and not os.path.isdir(directory):
raise RuntimeError(
f"Frontend directory {directory!r} does not exist. "
f"Resolved absolute path: {_get_resolved_absolute_path(directory)!r}"
f"Frontend directory '{directory}' does not exist. "
f"Resolved absolute path: '{_get_resolved_absolute_path(directory)}'"
)
super().__init__(
directory=directory,

Loading…
Cancel
Save