-
Notifications
You must be signed in to change notification settings - Fork 39
39 lines (31 loc) · 839 Bytes
/
lint.yaml
File metadata and controls
39 lines (31 loc) · 839 Bytes
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
name: Lint (type checking, security, code quality, ruff)
on:
pull_request:
branches:
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: false
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
# Install a specific version of uv.
version: "0.9.4"
- name: Install dependencies
run: |
uv sync --only-group dev
uv tool install pre-commit --with pre-commit-uv --force-reinstall
- name: Linting
run: |
pre-commit run --all-files