Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9341526
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
902 B
Subscribers
None
View Options
diff --git a/mypy.ini b/mypy.ini
index 4ca3af90..265b730b 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -1,23 +1,30 @@
[mypy]
namespace_packages = True
-warn_unused_ignores = True
+
+# due to the conditional import logic on swh.journal, in some cases a specific
+# type: ignore is neede, in other it isn't...
+warn_unused_ignores = False
# support for sqlalchemy magic: see https://github.com/dropbox/sqlalchemy-stubs
plugins = sqlmypy
# 3rd party libraries without stubs (yet)
+# only shipped indirectly via hypothesis
+[mypy-django.*]
+ignore_missing_imports = True
+
[mypy-pkg_resources.*]
ignore_missing_imports = True
[mypy-psycopg2.*]
ignore_missing_imports = True
[mypy-pytest.*]
ignore_missing_imports = True
# temporary work-around for landing typing support in spite of the current
# journal<->storage dependency loop
[mypy-swh.journal.*]
ignore_missing_imports = True
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Jul 4, 12:06 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3261437
Attached To
rDSTO Storage manager
Event Timeline
Log In to Comment