-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (42 loc) · 985 Bytes
/
linting.yaml
File metadata and controls
48 lines (42 loc) · 985 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
40
41
42
43
44
45
46
47
48
name: Linting
on:
push:
branches:
- main
paths-ignore:
- docs/**
pull_request:
branches:
- main
paths-ignore:
- docs/**
env:
PY_VERSION: 3.14
jobs:
pre-commit:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
with:
python-version: ${{ env.PY_VERSION }}
- name: Install project
run: uv sync --locked --no-dev
- name: Run pre-commit
run: uv run --with pre-commit pre-commit run -a
ty:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
with:
python-version: ${{ env.PY_VERSION }}
- name: Install project
run: uv sync --locked --no-dev
- name: Run ty
run: uv run --with ty ty check perdoo --ignore unresolved-import
continue-on-error: true