File tree Expand file tree Collapse file tree 4 files changed +43
-27
lines changed
Expand file tree Collapse file tree 4 files changed +43
-27
lines changed Original file line number Diff line number Diff line change 77 branches : [ "main" ]
88
99jobs :
10- lint-and- typecheck :
10+ lint-typecheck :
1111 runs-on : ubuntu-latest
1212
1313 steps :
14- - name : Check out code
14+ - name : Checkout code
1515 uses : actions/checkout@v4
1616
17- - name : Set up Python
18- uses : actions/setup-python@v5
17+ - name : Install uv
18+ uses : astral-sh/setup-uv@v3
19+
20+ - name : Cache uv environments
21+ uses : actions/cache@v3
1922 with :
20- python-version : " 3.14"
23+ path : ~/.cache/uv
24+ key : uv-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
25+ restore-keys : |
26+ uv-${{ runner.os }}-
2127
22- - name : Install tools
23- run : |
24- python -m pip install --upgrade pip
25- pip install ruff mypy
28+ - name : Install tools with uv
29+ run : uv tool install ruff mypy
2630
27- - name : Run ruff
31+ - name : Ruff lint
2832 run : ruff check .
2933
30- - name : Run mypy
34+ - name : Ruff format check
35+ run : ruff format --check .
36+
37+ - name : Mypy type checking
3138 run : mypy .
39+
40+ - name : Markdown lint
41+ uses : DavidAnson/markdownlint-cli2-action@v15
42+ with :
43+ globs : |
44+ **/*.md
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,3 +5,22 @@ description = "Add your description here"
55readme = " README.md"
66requires-python = " >=3.14"
77dependencies = []
8+
9+ [tool .ruff ]
10+ line-length = 88
11+ target-version = " py314"
12+
13+ [tool .ruff .lint ]
14+ select = [" E" , " F" , " W" ]
15+ ignore = []
16+
17+ [tool .mypy ]
18+ python_version = " 3.14"
19+ ignore_missing_imports = true
20+ pretty = true
21+
22+ # stricter mypy rules for utils
23+ [mypy-utils .* ]
24+ disallow_untyped_defs = true
25+ disallow_incomplete_defs = true
26+ warn_unused_ignores = true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments