Skip to content

Commit c6d343b

Browse files
committed
Add ty
1 parent 68301e7 commit c6d343b

3 files changed

Lines changed: 82 additions & 58 deletions

File tree

.github/workflows/pull_request.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141
run: uv run --frozen -- poe check-code
4242
shell: bash
4343

44+
- name: Check code (ty)
45+
if: false
46+
run: uv run --frozen -- poe check-code-ty
47+
shell: bash
48+
4449
- name: Unit tests
4550
run: uv run --frozen -- pytest --cov=python_template --cov-branch tests/unit
4651
shell: bash

pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@ dependencies = [
66
"aiohttp>=3.13.2",
77
"azure-cosmos>=4.14.2",
88
"azure-monitor-opentelemetry>=1.8.2",
9-
"fastapi[standard-no-fastapi-cloud-cli]>=0.121.3",
10-
"pydantic>=2.12.4",
9+
"fastapi[standard-no-fastapi-cloud-cli]>=0.123.0",
10+
"pydantic>=2.12.5",
1111
"pydantic-settings[azure-key-vault]>=2.12.0",
1212
]
1313

1414
[dependency-groups]
1515
dev = [
1616
"jupyter>=1.1.1",
17-
"poethepoet>=0.37.0",
17+
"poethepoet>=0.38.0",
1818
"pyright[nodejs]>=1.1.407",
1919
"pytest>=9.0.1",
2020
"pytest-asyncio>=1.3.0",
2121
"pytest-cov>=7.0.0",
2222
"pytest-mock>=3.15.1",
23-
"ruff>=0.14.6",
23+
"ruff>=0.14.7",
24+
"ty>=0.0.1a29",
2425
]
2526

2627
[build-system]
@@ -60,3 +61,4 @@ asyncio_default_fixture_loop_scope = "function"
6061

6162
[tool.poe.tasks]
6263
check-code.shell = "ruff check && ruff format --diff && pyright"
64+
check-code-ty.shell = "ruff check && ruff format --diff && ty check"

0 commit comments

Comments
 (0)