-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.02 KB
/
_lint.yml
File metadata and controls
42 lines (34 loc) · 1.02 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
name: Lint
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
run-linter:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v5
- name: Install the latest version of uv and set the python version to 3.13
uses: astral-sh/setup-uv@v7
with:
python-version: 3.13
activate-environment: true
- name: Install dependencies
run: uv sync --group dev --group lint
- uses: actions/cache@v4
with:
path: .mypy_cache
key: ${{ runner.os }}-mypy-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-mypy-
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: |
${{ runner.os }}-pre-commit-
- name: pre-commit
run: uv run pre-commit run --all-files --verbose