Skip to content

Commit b4e9b21

Browse files
authored
migrate from mypy to ty (#21)
# Conflicts: # uv.lock
1 parent c076de3 commit b4e9b21

File tree

5 files changed

+205
-259
lines changed

5 files changed

+205
-259
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uv sync --all-extras --all-groups --frozen --no-install-project
2424
uv run ruff format . --check
2525
uv run ruff check . --no-fix
26-
uv run mypy .
26+
uv run ty check
2727
2828
pytest:
2929
runs-on: ubuntu-latest

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ lint:
2626
uv run eof-fixer .
2727
uv run ruff format .
2828
uv run ruff check . --fix
29-
uv run mypy .
29+
uv run ty check

app/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def build_app() -> litestar.Litestar:
2323
bootstrap_config = dataclasses.replace(
2424
settings.api_bootstrapper_config,
2525
application_config=AppConfig(
26-
exception_handlers={
26+
exception_handlers={ # type: ignore[invalid-argument-type]
2727
DuplicateKeyError: exceptions.duplicate_key_error_handler,
2828
},
2929
route_handlers=[ROUTER],
@@ -36,7 +36,7 @@ def build_app() -> litestar.Litestar:
3636
),
3737
opentelemetry_instrumentors=[
3838
SQLAlchemyInstrumentor(),
39-
AsyncPGInstrumentor(capture_parameters=True), # type: ignore[no-untyped-call]
39+
AsyncPGInstrumentor(capture_parameters=True),
4040
],
4141
)
4242
bootstrapper = LitestarBootstrapper(bootstrap_config=bootstrap_config)

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ dev = [
3636
]
3737
lint = [
3838
"ruff",
39-
"mypy",
39+
"ty",
4040
"eof-fixer",
41-
"asyncpg-stubs",
4241
]
4342

4443
[tool.ruff]

0 commit comments

Comments
 (0)