diff --git a/mypy.ini b/mypy.ini
index 5f6c72d65eb3d28f996424baf90cc0be2f1f10b8..e1cc453ce2dcfcd29aa4044e81b40b84be12860c 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -1,7 +1,9 @@
 [mypy]
 namespace_packages = True
 warn_unused_ignores = True
-
+explicit_package_bases = True
+# ^ Needed for mypy to detect py.typed from swh packages installed
+# in editable mode
 
 # support for django magic: https://github.com/typeddjango/django-stubs
 plugins = mypy_django_plugin.main
@@ -9,10 +11,6 @@ plugins = mypy_django_plugin.main
 [mypy.plugins.django-stubs]
 django_settings_module = swh.deposit.settings.testing
 
-explicit_package_bases = True
-# ^ Needed for mypy to detect py.typed from swh packages installed
-# in editable mode
-
 # 3rd party libraries without stubs (yet)
 
 [mypy-celery.*]