Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9123732
D5313.id19062.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
753 B
Subscribers
None
D5313.id19062.diff
View Options
diff --git a/mypy.ini b/mypy.ini
--- a/mypy.ini
+++ b/mypy.ini
@@ -2,6 +2,11 @@
namespace_packages = True
warn_unused_ignores = True
+# support for django magic: https://github.com/typeddjango/django-stubs
+plugins = mypy_django_plugin.main, mypy_drf_plugin.main
+
+[mypy.plugins.django-stubs]
+django_settings_module = swh.auth.tests.app.apptest.settings
# 3rd party libraries without stubs (yet)
@@ -13,6 +18,3 @@
[mypy-keycloak.*]
ignore_missing_imports = True
-
-[mypy-django.*]
-ignore_missing_imports = True
diff --git a/requirements-test.txt b/requirements-test.txt
--- a/requirements-test.txt
+++ b/requirements-test.txt
@@ -1,3 +1,5 @@
+django-stubs
+djangorestframework-stubs
pytest
-requests_mock
pytest-django
+requests_mock
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 20, 6:01 PM (2 w, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3231122
Attached To
D5313: mypy: Fix django related error by using stubs
Event Timeline
Log In to Comment