Skip to content

Commit 67d9b11

Browse files
[pre-commit.ci] pre-commit autoupdate (#107)
updates: - [github.com/astral-sh/uv-pre-commit: 0.7.3 → 0.7.12](astral-sh/uv-pre-commit@0.7.3...0.7.12) - [github.com/astral-sh/ruff-pre-commit: v0.11.11 → v0.11.13](astral-sh/ruff-pre-commit@v0.11.11...v0.11.13) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent c9bb4f3 commit 67d9b11

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

.github/workflows/bot.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,25 @@ permissions:
1010
pull-requests: write
1111

1212
jobs:
13+
uv-lock:
14+
runs-on: ubuntu-latest
15+
if: github.repository == 'mscheltienne/template-python' # prevent running on forks
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
- uses: astral-sh/setup-uv@v6
21+
- run: uv lock --upgrade
22+
- name: Commit changes
23+
run: |
24+
git config --local user.name 'github-actions[bot]'
25+
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
26+
git add uv.lock
27+
git diff --staged --quiet || git commit -m "Update uv.lock"
28+
git push
29+
1330
auto-merge:
31+
needs: uv-lock
1432
runs-on: ubuntu-latest
1533
if: (github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]') && github.repository == 'mscheltienne/template-python'
1634
steps:

.pre-commit-config.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
ci:
2+
skip: [uv-lock]
3+
14
repos:
25
- repo: https://github.com/astral-sh/uv-pre-commit
3-
rev: 0.7.3
6+
rev: 0.7.12
47
hooks:
58
- id: uv-lock
69
args: [--upgrade]
710

811
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.11.11
12+
rev: v0.11.13
1013
hooks:
1114
- id: ruff
1215
name: ruff linter

0 commit comments

Comments
 (0)