Fix: Make mypy work with uv (#10783)

* Add option to run mypy on the project via `uv run mypy .`

* Remove deprecated mypy plugin

* Add missing typing dependencies
This commit is contained in:
Sebastian Steinbeißer
2025-09-05 20:49:09 +02:00
committed by GitHub
parent cfac74319f
commit b5a17a8d11
2 changed files with 25 additions and 1 deletions

View File

@@ -124,6 +124,7 @@ typing = [
"django-filter-stubs",
"django-stubs[compatible-mypy]",
"djangorestframework-stubs[compatible-mypy]",
"lxml-stubs",
"mypy",
"types-bleach",
"types-colorama",
@@ -131,6 +132,7 @@ typing = [
"types-markdown",
"types-pygments",
"types-python-dateutil",
"types-pytz",
"types-redis",
"types-setuptools",
"types-tqdm",
@@ -270,10 +272,10 @@ exclude_also = [
]
[tool.mypy]
mypy_path = "src"
plugins = [
"mypy_django_plugin.main",
"mypy_drf_plugin.main",
"numpy.typing.mypy_plugin",
]
check_untyped_defs = true
disallow_any_generics = true