Add new packages catagory for mypy typing stubs and configure some mypy settings in setup.cfg

This commit is contained in:
Trenton H
2023-02-06 17:56:33 -08:00
parent 3b973064d3
commit 9ca7f0c616
3 changed files with 547 additions and 3 deletions

View File

@@ -20,3 +20,15 @@ omit =
paperless/workers.py
paperless/wsgi.py
paperless/auth.py
[mypy]
plugins = mypy_django_plugin.main, mypy_drf_plugin.main, numpy.typing.mypy_plugin
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
[mypy.plugins.django-stubs]
django_settings_module = "paperless.settings"