Skip to content

Commit 153a63f

Browse files
authored
Merge pull request #20 from ewjoachim/upgrade
2 parents c02bf9d + f49dc47 commit 153a63f

3 files changed

Lines changed: 141 additions & 136 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
7070
with:
7171
ref: ${{ env.REF }}
72+
persist-credentials: false
7273

7374
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6
7475

@@ -80,19 +81,22 @@ jobs:
8081
if ! git diff --exit-code; then
8182
if [ "${IS_FORK}" = "true" ]; then
8283
echo "::warning::Changes detected, but this is a fork. Skipping commit and push."
84+
echo "::warning::Please run 'uvx pre-commit try-repo .' locally and commit the changes manually."
8385
8486
else
8587
echo "::notice::Changes detected, committing and pushing changes"
86-
git config user.name "GitHub Actions"
87-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
88+
git config user.name "Joachim Jablon (PAT)"
89+
git config user.email "ewjoachim@gmail.com"
8890
git add .
8991
git commit -m "Sync pre-commit with uv.lock"
92+
git remote set-url origin "https://${PAT}@github.com/${GITHUB_REPOSITORY}.git"
9093
git push
9194
fi
95+
exit 1
9296
fi
9397
94-
exit_code=${exit_code:-0}
9598
env:
99+
PAT: ${{ secrets.PAT }}
96100
IS_FORK: ${{ github.event_name == 'pull_request' && github.repository != github.event.pull_request.head.repo.full_name }}
97101

98102
coverage:

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,28 @@ repos:
3131

3232
- repo: https://github.com/astral-sh/uv-pre-commit
3333
# uv version.
34-
rev: 0.7.12
34+
rev: 0.7.20
3535
hooks:
3636
- id: uv-lock
3737

3838
- repo: https://github.com/RobertCraigie/pyright-python
39-
rev: v1.1.402
39+
rev: v1.1.403
4040
hooks:
4141
- id: pyright
4242
additional_dependencies:
4343
- annotated-types==0.7.0
4444
- eval-type-backport==0.2.2 ; python_full_version < '3.10'
4545
- packaging==25.0
46-
- pydantic==2.11.5
46+
- pydantic==2.11.7
4747
- pydantic-core==2.33.2
4848
- ruamel-yaml==0.18.14
4949
- ruamel-yaml-clib==0.2.12 ; python_full_version < '3.14' and platform_python_implementation == 'CPython'
5050
- tomli==2.2.1 ; python_full_version < '3.11'
51-
- typing-extensions==4.14.0
51+
- typing-extensions==4.14.1
5252
- typing-inspection==0.4.1
53-
- uv==0.7.12
53+
- uv==0.7.20
5454
- repo: https://github.com/astral-sh/ruff-pre-commit
55-
rev: v0.11.13
55+
rev: v0.12.3
5656
hooks:
5757
- id: ruff
5858
args: [--fix, --unsafe-fixes]

0 commit comments

Comments
 (0)