mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-03 05:25:37 +00:00
Add new packages catagory for mypy typing stubs and configure some mypy settings in setup.cfg
This commit is contained in:
1 parent
4133001c73
commit
16d3041d7a
3 files changed
+547
-3
No files matched your search
@@ -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"
|
||||
Reference in new issue
Block a user