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>
This commit is contained in:
leohoare 2025-06-22 12:45:16 +08:00
parent 981be1ca34
commit 7059d8606a
3 changed files with 10 additions and 2 deletions

View File

@ -73,7 +73,7 @@ jobs:
run: uv sync --extra dev run: uv sync --extra dev
- name: Run pre-commit - name: Run pre-commit
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 run: uv run pre-commit run --all-files
sast: sast:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -87,6 +87,7 @@ jobs:
uses: astral-sh/setup-uv@v5 uses: astral-sh/setup-uv@v5
with: with:
python-version: "3.13" python-version: "3.13"
cache: false
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3 uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3

View File

@ -20,3 +20,8 @@ repos:
hooks: hooks:
- id: mypy - id: mypy
files: openfeature files: openfeature
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.7.13 # Use the latest version as appropriate
hooks:
- id: uv-lock

View File

@ -35,7 +35,9 @@ dev = [
"behave", "behave",
"coverage[toml]>=6.5", "coverage[toml]>=6.5",
"pytest", "pytest",
"pytest-asyncio" "pytest-asyncio",
"mypy",
"pre-commit"
] ]