diff --git a/mypy.ini b/mypy.ini
index 059b636adb404a1e5936947ddcf6e4935910049d..5fb4be64252ec6cdc92ce6130e7ba298f739c300 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -1,11 +1,11 @@
 [mypy]
 namespace_packages = True
 warn_unused_ignores = True
-
+install_types = True
+non_interactive = True
 
 # 3rd party libraries without stubs (yet)
 
-
 [mypy-dulwich.*]
 ignore_missing_imports = True
 
diff --git a/requirements-test.txt b/requirements-test.txt
index c4cb9158b5f9458ff053ebcf7f515e902b3c65a9..4cd2c050fbfcb304c1c1b602932b7d337a433e5c 100644
--- a/requirements-test.txt
+++ b/requirements-test.txt
@@ -4,4 +4,3 @@ pytest-mock
 pyyaml
 swh.core[testing]
 swh.graph
-types-pyyaml