File tree Expand file tree Collapse file tree 3 files changed +91
-0
lines changed
Expand file tree Collapse file tree 3 files changed +91
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lint and Type Check
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ lint-and-typecheck :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ python-version : ["3.13"]
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Set up Python ${{ matrix.python-version }}
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : ${{ matrix.python-version }}
23+
24+ - name : Install uv
25+ uses : astral-sh/setup-uv@v3
26+ with :
27+ version : " latest"
28+
29+ - name : Install dependencies
30+ run : |
31+ uv sync --extra 'dev'
32+
33+ - name : Run ruff check
34+ run : |
35+ uv run ruff check .
36+
37+ - name : Run ruff format check
38+ run : |
39+ uv run ruff format --check .
40+
41+ - name : Run mypy
42+ run : |
43+ uv run mypy .
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ dependencies = [
1212[project .optional-dependencies ]
1313dev = [
1414 " httpx>=0.28.1" ,
15+ " mypy>=1.14.0" ,
1516 " pyright>=1.1.401" ,
1617 " pytest>=8.3.5" ,
1718 " pytest-asyncio>=1.0.0" ,
You can’t perform that action at this time.
0 commit comments