From 63200fd4296212b6cf51ce032d0e35120faa1669 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Tue, 10 Mar 2026 10:50:28 +0300 Subject: [PATCH] migrate to ty --- .gitignore | 1 - Justfile | 4 ++-- README.md | 1 - pyproject.toml | 6 +----- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 068012f..8cf31db 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,6 @@ __pycache__/* .idea .DS_Store .env -.mypy_cache .pytest_cache .ruff_cache .coverage diff --git a/Justfile b/Justfile index fabf8c0..0853917 100644 --- a/Justfile +++ b/Justfile @@ -8,13 +8,13 @@ lint: uv run eof-fixer . uv run ruff format uv run ruff check --fix - uv run mypy . + uv run ty check lint-ci: uv run eof-fixer . --check uv run ruff format --check uv run ruff check --no-fix - uv run mypy . + uv run ty check test *args: uv run --no-sync pytest {{ args }} diff --git a/README.md b/README.md index 39d0af2..4548a7d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ "Modern-DI-FastAPI" == [![Test Coverage](https://codecov.io/gh/modern-python/modern-di-fastapi/branch/main/graph/badge.svg)](https://codecov.io/gh/modern-python/modern-di-fastapi) -[![MyPy Strict](https://img.shields.io/badge/mypy-strict-blue)](https://mypy.readthedocs.io/en/stable/getting_started.html#strict-mode-and-configuration) [![Supported versions](https://img.shields.io/pypi/pyversions/modern-di-fastapi.svg)](https://pypi.python.org/pypi/modern-di-fastapi) [![downloads](https://img.shields.io/pypi/dm/modern-di-fastapi.svg)](https://pypistats.org/packages/modern-di-fastapi) [![GitHub stars](https://img.shields.io/github/stars/modern-python/modern-di-fastapi)](https://github.com/modern-python/modern-di-fastapi/stargazers) diff --git a/pyproject.toml b/pyproject.toml index 8eb41d9..9e743a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ dev = [ "httpx", ] lint = [ - "mypy", + "ty", "ruff", "eof-fixer", "typing-extensions", @@ -43,10 +43,6 @@ build-backend = "hatchling.build" [tool.hatch.build] include = ["modern_di_fastapi"] -[tool.mypy] -python_version = "3.10" -strict = true - [tool.ruff] fix = false unsafe-fixes = true