11name : CI
2+ permissions : read-all
23
34on :
45 push :
@@ -10,10 +11,6 @@ concurrency:
1011 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1112 cancel-in-progress : true
1213
13- permissions :
14- contents : read
15- pull-requests : write
16-
1714env :
1815 UV_LOCKED : 1
1916
@@ -23,37 +20,26 @@ jobs:
2320 timeout-minutes : 1
2421
2522 steps :
26- - uses : actions/checkout@v4.2.2
27-
28- - name : typos
29- uses : crate-ci/typos@v1.35.1
23+ - uses : actions/checkout@v4.2.2
3024
31- - name : markdownlint
32- uses : DavidAnson/markdownlint-cli2-action@v20.0.0
33- with :
34- config : " docs/.markdownlint.yaml"
35- globs : " **/*.md"
25+ - name : typos
26+ uses : crate-ci/typos@v1.35.1
3627
37- - uses : uncenter/setup-taplo@v1.0.8
38- with :
39- version : " 0.9.3"
40- - name : taplo
41- run : |
42- taplo validate --colors never --no-schema
43- taplo fmt --colors never --check
28+ - uses : astral-sh/setup-uv@v6.4.3
4429
45- - uses : astral-sh/setup-uv@v6.4.3
30+ - name : dprint
31+ run : uv run dprint check
4632
47- - name : ruff
48- run : |
49- uv run ruff check --output-format=github
50- uv run ruff format --check
33+ - name : ruff
34+ run : |
35+ uv run ruff check --output-format=github
36+ uv run ruff format --check
5137
52- - name : pytest
53- run : uv run pytest
38+ - name : format-ignores
39+ run : uv run tool/format_ignores.py --check
5440
55- - name : format-ignores
56- run : uv run tool/format_ignores.py --check
41+ - name : pytest
42+ run : uv run pytest
5743
5844 # NOTE: Static typing only differs between `python<3.12` and otherwise,
5945 # so there's no need to run the type-checkers on all Python versions.
@@ -66,14 +52,14 @@ jobs:
6652 matrix :
6753 py : ["3.11", "3.13"]
6854 steps :
69- - uses : actions/checkout@v4.2.2
55+ - uses : actions/checkout@v4.2.2
7056
71- - uses : astral-sh/setup-uv@v6.4.3
72- with :
73- python-version : ${{ matrix.py }}
57+ - uses : astral-sh/setup-uv@v6.4.3
58+ with :
59+ python-version : ${{ matrix.py }}
7460
75- - name : basedpyright
76- run : uv run basedpyright
61+ - name : basedpyright
62+ run : uv run basedpyright
7763
7864 mypy :
7965 runs-on : ubuntu-latest
@@ -83,14 +69,14 @@ jobs:
8369 matrix :
8470 py : ["3.11", "3.13"]
8571 steps :
86- - uses : actions/checkout@v4.2.2
72+ - uses : actions/checkout@v4.2.2
8773
88- - uses : astral-sh/setup-uv@v6.4.3
89- with :
90- python-version : ${{ matrix.py }}
74+ - uses : astral-sh/setup-uv@v6.4.3
75+ with :
76+ python-version : ${{ matrix.py }}
9177
92- - name : mypy
93- run : uv run --no-editable mypy --no-incremental --cache-dir=/dev/null .
78+ - name : mypy
79+ run : uv run --no-editable mypy --no-incremental --cache-dir=/dev/null .
9480
9581 # NOTE: Stubtest does runtime inspections, so we consider all Python versions.
9682
@@ -103,11 +89,11 @@ jobs:
10389 os : [ubuntu-latest, macos-latest, windows-latest]
10490 py : ["3.11", "3.12", "3.13", "3.14"]
10591 steps :
106- - uses : actions/checkout@v4.2.2
92+ - uses : actions/checkout@v4.2.2
10793
108- - uses : astral-sh/setup-uv@v6.4.3
109- with :
110- python-version : ${{ matrix.py }}
94+ - uses : astral-sh/setup-uv@v6.4.3
95+ with :
96+ python-version : ${{ matrix.py }}
11197
112- - name : stubtest
113- run : uv run --active tool/stubtest.py
98+ - name : stubtest
99+ run : uv run --active tool/stubtest.py
0 commit comments