-
Notifications
You must be signed in to change notification settings - Fork 70
57 lines (45 loc) · 1.24 KB
/
lint.yml
File metadata and controls
57 lines (45 loc) · 1.24 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
name: Lint
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
lint-python:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7.0.0
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --extra lint
- name: Check formatting with ruff
run: uv run ruff format --check .
- name: Lint with ruff
run: uv run ruff check fickling
- name: Type check with mypy
run: uv run mypy fickling
continue-on-error: true # TODO: Remove once type annotations are fixed
all-lints-pass:
if: always()
permissions:
contents: read
needs:
- lint-python
runs-on: ubuntu-latest
steps:
- name: check test jobs
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
jobs: ${{ toJSON(needs) }}