Skip to content

Commit 48f0329

Browse files
committed
Merge remote-tracking branch 'upstream/master' into migrate-to-@hey-api/openapi-ts-0.97.3
2 parents 3107696 + 5b358ea commit 48f0329

15 files changed

Lines changed: 130 additions & 69 deletions

.github/dependabot.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ updates:
44
- package-ecosystem: github-actions
55
directory: /
66
schedule:
7-
interval: weekly
7+
interval: "monthly"
88
cooldown:
99
default-days: 7
1010
commit-message:
@@ -21,7 +21,7 @@ updates:
2121
- package-ecosystem: uv
2222
directory: /
2323
schedule:
24-
interval: weekly
24+
interval: "monthly"
2525
cooldown:
2626
default-days: 7
2727
commit-message:
@@ -35,7 +35,7 @@ updates:
3535
- package-ecosystem: bun
3636
directory: /
3737
schedule:
38-
interval: weekly
38+
interval: "monthly"
3939
cooldown:
4040
default-days: 7
4141
commit-message:
@@ -53,7 +53,7 @@ updates:
5353
- /backend
5454
- /frontend
5555
schedule:
56-
interval: weekly
56+
interval: "monthly"
5757
cooldown:
5858
default-days: 7
5959
commit-message:
@@ -66,7 +66,7 @@ updates:
6666
- package-ecosystem: docker-compose
6767
directory: /
6868
schedule:
69-
interval: weekly
69+
interval: "monthly"
7070
cooldown:
7171
default-days: 7
7272
commit-message:
@@ -75,20 +75,3 @@ updates:
7575
docker-compose:
7676
patterns:
7777
- "*"
78-
# pre-commit
79-
- package-ecosystem: "pre-commit"
80-
directory: "/"
81-
schedule:
82-
interval: "weekly"
83-
cooldown:
84-
default-days: 7
85-
commit-message:
86-
prefix:
87-
labels:
88-
- "internal"
89-
- "dependencies"
90-
- "pre-commit"
91-
groups:
92-
pre-commit:
93-
patterns:
94-
- "*"
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Bump pre-commit hooks
2+
3+
on:
4+
schedule:
5+
- cron: "0 12 1 * *"
6+
workflow_dispatch:
7+
8+
permissions: {}
9+
10+
jobs:
11+
bump-pre-commit-hooks:
12+
if: github.repository_owner == 'fastapi'
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 10
15+
steps:
16+
- name: Dump GitHub context
17+
env:
18+
GITHUB_CONTEXT: ${{ toJson(github) }}
19+
run: echo "$GITHUB_CONTEXT"
20+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
21+
with:
22+
token: ${{ secrets.LATEST_CHANGES }}
23+
persist-credentials: true
24+
- name: Set up Python
25+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
26+
with:
27+
python-version-file: ".python-version"
28+
- name: Setup uv
29+
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
30+
with:
31+
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
32+
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
33+
version: "0.11.18"
34+
cache-dependency-glob: |
35+
pyproject.toml
36+
uv.lock
37+
- name: Bump pre-commit hooks
38+
run: uv run prek auto-update --freeze --cooldown-days 7
39+
- name: Create pull request
40+
env:
41+
GH_TOKEN: ${{ secrets.LATEST_CHANGES }}
42+
BASE_BRANCH: ${{ github.event.repository.default_branch }}
43+
run: |
44+
set -euo pipefail
45+
if git diff --quiet; then
46+
echo "No pre-commit hook updates available"
47+
exit 0
48+
fi
49+
git config user.name "github-actions[bot]"
50+
git config user.email "github-actions[bot]@users.noreply.github.com"
51+
branch="bump-pre-commit-hooks"
52+
git switch -C "$branch"
53+
git add .pre-commit-config.yaml
54+
git commit -m "⬆ Bump pre-commit hooks"
55+
git push --force origin "$branch"
56+
if [ -z "$(gh pr list --head "$branch" --state open --json number --jq '.[].number')" ]; then
57+
gh pr create \
58+
--base "$BASE_BRANCH" \
59+
--head "$branch" \
60+
--title "⬆ Bump pre-commit hooks" \
61+
--body "Bump pre-commit hook versions via \`prek auto-update --freeze --cooldown-days 7\`." \
62+
--label internal \
63+
--label dependencies \
64+
--label pre-commit
65+
else
66+
echo "PR for \"$branch\" already open; branch updated in place."
67+
fi

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 5
2121
steps:
22-
- uses: actions/labeler@f27b608878404679385c85cfa523b85ccb86e213 # v6.1.0
22+
- uses: actions/labeler@b8dd2d9be0f68b860e7dae5dae7d772984eacd6d # v6.2.0
2323
if: ${{ github.event.action != 'labeled' && github.event.action != 'unlabeled' }}
2424
- run: echo "Done adding labels"
2525
# Run this after labeler applied labels

.github/workflows/playwright.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
persist-credentials: false
2828
# For pull requests it's not necessary to checkout the code but for the main branch it is
29-
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
29+
- uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4.0.2
3030
id: filter
3131
with:
3232
filters: |
@@ -55,7 +55,7 @@ jobs:
5555
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
5656
with:
5757
bun-version: 1.3.12
58-
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
58+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
5959
with:
6060
python-version-file: .python-version
6161
- name: Setup tmate session
@@ -64,7 +64,7 @@ jobs:
6464
with:
6565
limit-access-to-actor: true
6666
- name: Install uv
67-
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
67+
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
6868
with:
6969
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
7070
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ jobs:
4242
with:
4343
bun-version: 1.3.12
4444
- name: Set up Python
45-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
45+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
4646
with:
4747
python-version-file: .python-version
4848
- name: Setup uv
49-
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
49+
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
5050
with:
5151
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
5252
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837

.github/workflows/smokeshow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2020
with:
2121
persist-credentials: false
22-
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
22+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
2323
with:
2424
python-version-file: .python-version
2525
- name: Setup uv
26-
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
26+
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
2727
with:
2828
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
2929
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837

.github/workflows/test-backend.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
with:
1818
persist-credentials: false
1919
- name: Set up Python
20-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
20+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
2121
with:
2222
python-version-file: .python-version
2323
- name: Install uv
24-
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
24+
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
2525
with:
2626
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
2727
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837

.github/workflows/zizmor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
with:
2323
persist-credentials: false
2424
- name: Run zizmor
25-
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
25+
uses: zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa # v0.5.7

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
- id: trailing-whitespace
1919
exclude: ^frontend/src/client/.*
2020
- repo: https://github.com/crate-ci/typos
21-
rev: 37bb98842b0d8c4ffebdb75301a13db0267cef89 # v1.47.2
21+
rev: bee27e3a4fd1ea2111cf90ab89cd076c870fce14 # frozen: v1.48.0
2222
hooks:
2323
- id: typos
2424
args: [--force-exclude]

backend/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
description = ""
55
requires-python = ">=3.14,<4.0"
66
dependencies = [
7-
"fastapi[standard]>=0.138.1,<1.0.0",
7+
"fastapi[standard]>=0.139.0,<1.0.0",
88
"python-multipart<1.0.0,>=0.0.27",
99
"email-validator<3.0.0.0,>=2.1.0.post1",
1010
"tenacity<10.0.0,>=8.2.3",
@@ -16,7 +16,7 @@ dependencies = [
1616
"psycopg[binary]<4.0.0,>=3.1.13",
1717
"sqlmodel>=0.0.39,<1.0.0",
1818
"pydantic-settings<3.0.0,>=2.2.1",
19-
"sentry-sdk[fastapi]>=2.0.0,<3.0.0",
19+
"sentry-sdk[fastapi]>=2.63.0,<3.0.0",
2020
"pyjwt<3.0.0,>=2.13.0",
2121
"pwdlib[argon2,bcrypt]>=0.3.0",
2222
]

0 commit comments

Comments
 (0)