Skip to content

Commit 7059d86

Browse files
committed
uv-lock in pre-commit, manually run pre-commit instead of action, add mypy and pre-commit to dev dependencies
Signed-off-by: leohoare <leo@insight.co>
1 parent 981be1c commit 7059d86

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
run: uv sync --extra dev
7474

7575
- name: Run pre-commit
76-
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
76+
run: uv run pre-commit run --all-files
7777

7878
sast:
7979
runs-on: ubuntu-latest
@@ -87,6 +87,7 @@ jobs:
8787
uses: astral-sh/setup-uv@v5
8888
with:
8989
python-version: "3.13"
90+
cache: false
9091

9192
- name: Initialize CodeQL
9293
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@ 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 # Use the latest version as appropriate
26+
hooks:
27+
- id: uv-lock

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ dev = [
3535
"behave",
3636
"coverage[toml]>=6.5",
3737
"pytest",
38-
"pytest-asyncio"
38+
"pytest-asyncio",
39+
"mypy",
40+
"pre-commit"
3941
]
4042

4143

0 commit comments

Comments
 (0)