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:
parent
981be1ca34
commit
7059d8606a
|
|
@ -73,7 +73,7 @@ jobs:
|
|||
run: uv sync --extra dev
|
||||
|
||||
- name: Run pre-commit
|
||||
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
|
||||
run: uv run pre-commit run --all-files
|
||||
|
||||
sast:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -87,6 +87,7 @@ jobs:
|
|||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: "3.13"
|
||||
cache: false
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3
|
||||
|
|
|
|||
|
|
@ -20,3 +20,8 @@ repos:
|
|||
hooks:
|
||||
- id: mypy
|
||||
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
|
||||
|
|
|
|||
|
|
@ -35,7 +35,9 @@ dev = [
|
|||
"behave",
|
||||
"coverage[toml]>=6.5",
|
||||
"pytest",
|
||||
"pytest-asyncio"
|
||||
"pytest-asyncio",
|
||||
"mypy",
|
||||
"pre-commit"
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue