-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (36 loc) · 1.08 KB
/
lint.yaml
File metadata and controls
40 lines (36 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Lint
on:
pull_request:
push:
branches: [master]
permissions:
contents: read
jobs:
lint:
name: Lint & type-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
python-version: "3.13"
- run: uv sync --group dev
- run: uv run ruff check src tests
- run: uv run ruff format --check src tests
- run: uv run mypy
security:
name: Security checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
python-version: "3.13"
- run: uv sync --group dev
- run: uv run bandit -c pyproject.toml -r src
- run: uv run semgrep scan --config auto --error src
- run: uv run zizmor --min-severity high .