Skip to content

Commit 2aa144d

Browse files
chore: bump shared workflows to v14 and use uv run in prek
1 parent 50c2898 commit 2aa144d

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212

1313
jobs:
1414
Docs:
15-
uses: tskit-dev/.github/.github/workflows/docs.yml@v12
15+
uses: tskit-dev/.github/.github/workflows/docs.yml@v14
1616
with:
1717
pyproject-directory: python
1818
additional-apt-packages: doxygen

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ on:
55

66
jobs:
77
Lint:
8-
uses: tskit-dev/.github/.github/workflows/lint.yml@v12
8+
uses: tskit-dev/.github/.github/workflows/lint.yml@v14
99
with:
1010
pyproject-directory: python

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ jobs:
1313

1414
packaging:
1515
name: Python packaging
16-
uses: tskit-dev/.github/.github/workflows/python-packaging.yml@v12
16+
uses: tskit-dev/.github/.github/workflows/python-packaging.yml@v14
1717
with:
1818
pyproject-directory: python
1919
cli-test-cmd: tskit --help
2020

2121
test-c:
2222
name: C tests
23-
uses: tskit-dev/.github/.github/workflows/c-tests.yml@v12
23+
uses: tskit-dev/.github/.github/workflows/c-tests.yml@v14
2424
with:
2525
library-directory: c
2626
secrets: inherit
2727

2828
test-python-c:
2929
name: Python-C tests
30-
uses: tskit-dev/.github/.github/workflows/python-c-tests.yml@v12
30+
uses: tskit-dev/.github/.github/workflows/python-c-tests.yml@v14
3131
with:
3232
tests: python/tests/test_python_c.py python/tests/test_dict_encoding.py
3333
pyproject-directory: python
@@ -36,7 +36,7 @@ jobs:
3636

3737
test:
3838
name: Python
39-
uses: tskit-dev/.github/.github/workflows/python-tests.yml@v12
39+
uses: tskit-dev/.github/.github/workflows/python-tests.yml@v14
4040
with:
4141
os: ${{ matrix.os }}
4242
python-version: ${{ matrix.python }}

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build-wheels:
11-
uses: tskit-dev/.github/.github/workflows/build-wheels.yml@v12
11+
uses: tskit-dev/.github/.github/workflows/build-wheels.yml@v14
1212
with:
1313
pyproject-directory: python
1414

prek.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ hooks = [
3535
id = "ruff-check",
3636
name = "ruff check",
3737
language = "system",
38-
entry = "ruff check --fix --force-exclude",
38+
entry = "uv run --project=python --group=lint ruff check --fix --force-exclude",
3939
types = ["python"],
4040
},
4141
]
@@ -47,7 +47,7 @@ hooks = [
4747
id = "ruff-format",
4848
name = "ruff format",
4949
language = "system",
50-
entry = "ruff format --force-exclude",
50+
entry = "uv run --project=python --group=lint ruff format --force-exclude",
5151
types = ["python"],
5252
},
5353
]
@@ -59,7 +59,7 @@ hooks = [
5959
id = "clang-format",
6060
name = "clang-format",
6161
language = "system",
62-
entry = "clang-format -i",
62+
entry = "uv run --project=python --group=lint clang-format -i",
6363
types = ["c"],
6464
verbose = true,
6565
},

0 commit comments

Comments
 (0)