Skip to content

Commit 6163f76

Browse files
committed
ci: run ruff via uv and add ty to type-check pipeline
1 parent d3f9f5d commit 6163f76

3 files changed

Lines changed: 193 additions & 8 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ jobs:
2222
python-version: "3.13"
2323
- name: Install uv
2424
uses: astral-sh/setup-uv@v6
25-
- uses: astral-sh/ruff-action@v3
26-
- uses: astral-sh/ruff-action@v3
27-
with:
28-
args: "format --check"
25+
- run: uv sync --group test --no-default-groups
26+
- run: uv run ruff check .
27+
- run: uv run ruff format --check .
2928

3029
type-check:
3130
runs-on: ubuntu-24.04
@@ -37,6 +36,7 @@ jobs:
3736
- name: Install uv
3837
uses: astral-sh/setup-uv@v6
3938
- run: uv sync --group test --no-default-groups
39+
- run: uv run ty check src/pyinfra src/pyinfra_cli --exit-zero
4040
- run: uv run mypy
4141

4242
spell-check:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ test = [
5454
"types-cryptography>=3.3.23.2,<4",
5555
"types-python-dateutil>2,<3",
5656
"types-PyYAML>6,<7",
57+
"ty>=0.0.18",
5758
"ruff>=0.13.1",
5859
"pyinfra-testgen==0.1.1",
5960
]

0 commit comments

Comments
 (0)