File tree Expand file tree Collapse file tree 5 files changed +549
-2
lines changed Expand file tree Collapse file tree 5 files changed +549
-2
lines changed Original file line number Diff line number Diff line change 1+ name : ruff
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+
8+ jobs :
9+ format :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Install uv
16+ uses : astral-sh/setup-uv@v3
17+ with :
18+ enable-cache : true
19+
20+ - name : " Set up Python"
21+ uses : actions/setup-python@v5
22+ with :
23+ python-version-file : " .python-version"
24+
25+ - name : Install the project
26+ run : uv sync --frozen --all-extras --dev
27+
28+ - name : Run ruff format check
29+ run : uv run --frozen ruff check .
Original file line number Diff line number Diff line change 1+ name : typecheck
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+
8+ jobs :
9+ typecheck :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Install uv
16+ uses : astral-sh/setup-uv@v3
17+ with :
18+ enable-cache : true
19+
20+ - name : " Set up Python"
21+ uses : actions/setup-python@v5
22+ with :
23+ python-version-file : " .python-version"
24+
25+ - name : Install the project
26+ run : uv sync --frozen --all-extras --dev
27+
28+ - name : Run pyright
29+ run : uv run --frozen pyright
Original file line number Diff line number Diff line change 1111
1212 steps :
1313 - uses : actions/checkout@v4
14- - uses : actions/setup-python@v5
14+
15+ - name : Install uv
16+ uses : astral-sh/setup-uv@v3
17+ with :
18+ enable-cache : true
19+
20+ - name : " Set up Python"
21+ uses : actions/setup-python@v5
1522 with :
16- python-version : " 3.10 "
23+ python-version-file : " .python-version "
1724
1825 - run : pip install .
1926 - run : pip install -U pytest trio
Original file line number Diff line number Diff line change @@ -38,5 +38,8 @@ target-version = "py38"
3838
3939[tool .uv ]
4040dev-dependencies = [
41+ " pyright>=1.1.384" ,
42+ " pytest>=8.3.3" ,
43+ " ruff>=0.6.9" ,
4144 " trio>=0.26.2" ,
4245]
You can’t perform that action at this time.
0 commit comments