Skip to content

Commit 3f55162

Browse files
committed
update dependency group, add frozen, remove uv-lock precommit, v6 uv, revert precommit
Signed-off-by: leohoare <[email protected]>
1 parent fad89de commit 3f55162

File tree

6 files changed

+29
-33
lines changed

6 files changed

+29
-33
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ jobs:
2929
submodules: recursive
3030

3131
- name: Install uv and set the python version
32-
uses: astral-sh/setup-uv@v5
32+
uses: astral-sh/setup-uv@v6
3333
with:
3434
python-version: ${{ matrix.python-version }}
3535

3636
- name: Install dependencies
37-
run: uv sync --extra dev
37+
run: uv sync --frozen
3838

3939
- name: Test with pytest
40-
run: uv run cov
40+
run: uv run cov --frozen
4141

4242
- name: Run E2E tests with behave
43-
run: uv run e2e
43+
run: uv run e2e --frozen
4444

4545
- if: matrix.python-version == '3.13'
4646
name: Upload coverage to Codecov
@@ -58,15 +58,15 @@ jobs:
5858
steps:
5959
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
6060
- name: Install uv and set the python version
61-
uses: astral-sh/setup-uv@v5
61+
uses: astral-sh/setup-uv@v6
6262
with:
6363
python-version: "3.13"
6464

6565
- name: Install dependencies
66-
run: uv sync --extra dev
66+
run: uv sync --frozen
6767

6868
- name: Run pre-commit
69-
run: uv run precommit
69+
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
7070

7171
sast:
7272
runs-on: ubuntu-latest
@@ -77,7 +77,7 @@ jobs:
7777
steps:
7878
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
7979
- name: Install uv and set the python version
80-
uses: astral-sh/setup-uv@v5
80+
uses: astral-sh/setup-uv@v6
8181
with:
8282
python-version: "3.13"
8383
ignore-nothing-to-cache: true

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ jobs:
4545
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
4646

4747
- name: Install uv and set the python version
48-
uses: astral-sh/setup-uv@v5
48+
uses: astral-sh/setup-uv@v6
4949
with:
50-
python-version: '3.13'
50+
python-version: "3.13"
5151

5252
- name: Install dependencies
53-
run: uv sync
53+
run: uv sync --frozen
5454

5555
- name: Build a binary wheel and a source tarball
5656
run: uv build

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,3 @@ repos:
2020
hooks:
2121
- id: mypy
2222
files: openfeature
23-
24-
- repo: https://github.com/astral-sh/uv-pre-commit
25-
rev: 0.7.13
26-
hooks:
27-
- id: uv-lock

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,35 +26,35 @@ To install uv, follow the [installation guide](https://docs.astral.sh/uv/getting
2626

2727
2. **Install dependencies:**
2828
```bash
29-
uv sync --extra dev
29+
uv sync
3030
```
3131

3232
### Testing
3333

3434
Run tests:
3535
```bash
36-
uv run test
36+
uv run test --frozen
3737
```
3838

3939
### Coverage
4040

4141
Run tests with a coverage report:
4242
```bash
43-
uv run cov
43+
uv run cov --frozen
4444
```
4545

4646
### End-to-End Tests
4747

4848
Run e2e tests with behave:
4949
```bash
50-
uv run e2e
50+
uv run e2e --frozen
5151
```
5252

5353
### Pre-commit
5454

5555
Run pre-commit hooks
5656
```bash
57-
uv run precommit
57+
uv run precommit --frozen
5858
```
5959

6060

@@ -91,7 +91,7 @@ git remote add fork https://github.com/YOUR_GITHUB_USERNAME/python-sdk.git
9191
Ensure your development environment is all set up by building and testing
9292

9393
```bash
94-
uv run test
94+
uv run test --frozen
9595
```
9696

9797
To start working on a new feature or bugfix, create a new branch and start working on it.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ requires-python = ">=3.9"
2727
[project.urls]
2828
Homepage = "https://github.com/open-feature/python-sdk"
2929

30-
[project.optional-dependencies]
30+
[dependency-groups]
3131
dev = [
3232
"behave",
3333
"coverage[toml]>=6.5",

uv.lock

Lines changed: 11 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)