-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (59 loc) · 1.47 KB
/
Copy pathlint.yml
File metadata and controls
65 lines (59 loc) · 1.47 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Lint & Security
on:
workflow_dispatch:
push:
paths:
- 'ww/**'
- 'pyproject.toml'
- '.pre-commit-config.yaml'
pull_request:
paths:
- 'ww/**'
- 'pyproject.toml'
- '.pre-commit-config.yaml'
concurrency:
group: 'lint'
cancel-in-progress: true
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- run: uv python install 3.13.2
- run: uv sync
- run: uv pip install ruff
- name: Ruff check
run: uv run ruff check ww/
- name: Ruff format check
run: uv run ruff format --check ww/
pyright:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- run: uv python install 3.13.2
- run: uv sync
- run: uv pip install pyright
- name: Pyright
run: uv run pyright
bandit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- run: uv python install 3.13.2
- run: uv sync
- run: uv pip install bandit[toml]
- name: Bandit security scan
run: uv run bandit -r ww/ -c pyproject.toml
pip-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- run: uv python install 3.13.2
- run: uv sync
- run: uv pip install pip-audit
- name: Dependency audit
run: uv run pip-audit