Skip to content

Commit 3d186d2

Browse files
move uv version constraints to pyproject.toml (#177)
* move uv version constraints to `pyproject.toml` * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5208736 commit 3d186d2

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
release:
55
types: [published]
66

7-
env:
8-
UV_VERSION: "0.5.x"
9-
107
jobs:
118
test:
129
uses: ./.github/workflows/test.yml
@@ -26,7 +23,7 @@ jobs:
2623
uses: astral-sh/setup-uv@v5
2724
with:
2825
enable-cache: true
29-
version: ${{ env.UV_VERSION }}
26+
pyproject-file: pyproject.toml
3027

3128
- name: Build package
3229
run: |

.github/workflows/test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ concurrency:
1313
env:
1414
PYTHONUNBUFFERED: "1"
1515
FORCE_COLOR: "1"
16-
UV_VERSION: "0.5.x"
1716

1817
jobs:
1918
generate-matrix:
@@ -27,7 +26,7 @@ jobs:
2726
uses: astral-sh/setup-uv@v5
2827
with:
2928
enable-cache: true
30-
version: ${{ env.UV_VERSION }}
29+
pyproject-file: pyproject.toml
3130

3231
- id: set-matrix
3332
run: |
@@ -47,7 +46,7 @@ jobs:
4746
uses: astral-sh/setup-uv@v5
4847
with:
4948
enable-cache: true
50-
version: ${{ env.UV_VERSION }}
49+
pyproject-file: pyproject.toml
5150

5251
- name: Run tests
5352
run: |
@@ -74,7 +73,7 @@ jobs:
7473
uses: astral-sh/setup-uv@v5
7574
with:
7675
enable-cache: true
77-
version: ${{ env.UV_VERSION }}
76+
pyproject-file: pyproject.toml
7877

7978
- name: Run type checks
8079
run: |
@@ -89,7 +88,7 @@ jobs:
8988
uses: astral-sh/setup-uv@v5
9089
with:
9190
enable-cache: true
92-
version: ${{ env.UV_VERSION }}
91+
pyproject-file: pyproject.toml
9392

9493
- name: Generate code coverage
9594
run: |

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,6 @@ required-imports = ["from __future__ import annotations"]
237237
[tool.ruff.lint.pyupgrade]
238238
# Preserve types, even if a file imports `from __future__ import annotations`.
239239
keep-runtime-typing = true
240+
241+
[tool.uv]
242+
required-version = "~=0.5.*"

0 commit comments

Comments
 (0)