Skip to content

Commit 5359339

Browse files
committed
Add ty
1 parent c6d343b commit 5359339

6 files changed

Lines changed: 156 additions & 210 deletions

File tree

.github/workflows/pull_request.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ 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-
4944
- name: Unit tests
5045
run: uv run --frozen -- pytest --cov=python_template --cov-branch tests/unit
5146
shell: bash

.vscode/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"editor.defaultFormatter": "charliermarsh.ruff"
1313
},
1414
"python.defaultInterpreterPath": ".venv/bin/python",
15-
"python.languageServer": "Pylance",
16-
"python.analysis.languageServerMode": "full",
15+
"python.languageServer": "None",
1716
"python.testing.pytestEnabled": true,
1817
"notebook.formatOnSave.enabled": true,
1918
"notebook.formatOnCellExecution": true,

compose-dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
cosmosdb:
3-
image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-EN20251118
3+
image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-EN20251205
44
restart: always
55
ports:
66
- "8081:8081"

pyproject.toml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ requires-python = ">=3.14"
55
dependencies = [
66
"aiohttp>=3.13.2",
77
"azure-cosmos>=4.14.2",
8-
"azure-monitor-opentelemetry>=1.8.2",
9-
"fastapi[standard-no-fastapi-cloud-cli]>=0.123.0",
8+
"azure-monitor-opentelemetry>=1.8.3",
9+
"fastapi[standard-no-fastapi-cloud-cli]>=0.124.0",
1010
"pydantic>=2.12.5",
1111
"pydantic-settings[azure-key-vault]>=2.12.0",
1212
]
@@ -15,13 +15,12 @@ dependencies = [
1515
dev = [
1616
"jupyter>=1.1.1",
1717
"poethepoet>=0.38.0",
18-
"pyright[nodejs]>=1.1.407",
19-
"pytest>=9.0.1",
18+
"pytest>=9.0.2",
2019
"pytest-asyncio>=1.3.0",
2120
"pytest-cov>=7.0.0",
2221
"pytest-mock>=3.15.1",
23-
"ruff>=0.14.7",
24-
"ty>=0.0.1a29",
22+
"ruff>=0.14.8",
23+
"ty>=0.0.1a32",
2524
]
2625

2726
[build-system]
@@ -54,11 +53,9 @@ ignore = [
5453
]
5554

5655
[tool.pytest]
57-
pythonpath = ["tests"]
5856
strict = true
5957
asyncio_mode = "auto"
6058
asyncio_default_fixture_loop_scope = "function"
6159

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

tests/integration/api/workflows/products/discontinue_product/test_discontinue_product_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import pytest
2-
from test_utils.builders.domain.entities.product_builder import ProductBuilder
32

43
from python_template.api.dependency_container import DependencyContainer
54
from python_template.api.workflows.products.discontinue_product.discontinue_product_request import (
@@ -10,6 +9,7 @@
109
)
1110
from python_template.common.business_error import ProductAlreadyDiscontinuedError
1211
from python_template.domain.entities.product import Product
12+
from tests.test_utils.builders.domain.entities.product_builder import ProductBuilder
1313

1414

1515
class TestDiscontinueProductWorkflow:

0 commit comments

Comments
 (0)