Skip to content

Commit c599b84

Browse files
authored
Merge pull request #10 from ewjoachim/add-pyproject
2 parents 87a9da3 + 31080e7 commit c599b84

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- "*"
1010

1111
jobs:
12-
build:
12+
tests:
1313
strategy:
1414
matrix:
1515
python-version:
@@ -58,10 +58,21 @@ jobs:
5858
with:
5959
version: PATH
6060

61+
self-check:
62+
name: Run sync-pre-commit-with-uv on the repo itself
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
66+
67+
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6
68+
69+
- name: Install dependencies
70+
run: uvx pre-commit try-repo . --all-files --show-diff-on-failure
71+
6172
coverage:
6273
name: Coverage
6374
runs-on: ubuntu-latest
64-
needs: [build]
75+
needs: [tests]
6576
permissions:
6677
pull-requests: write
6778
contents: write

.pre-commit-config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,3 @@ repos:
5858
- id: ruff
5959
args: [--fix, --unsafe-fixes]
6060
- id: ruff-format
61-
62-
- repo: https://github.com/ewjoachim/sync-pre-commit-with-uv
63-
rev: 1.0.1
64-
hooks:
65-
# Use this hook to ensure that the versions of the repos are synced
66-
- id: sync

0 commit comments

Comments
 (0)