mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 06:45:05 +01:00
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:
parent
cfac74319f
commit
b5a17a8d11
2 changed files with 25 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue