diff --git a/tox.ini b/tox.ini
index f1becc236831649372fedf5affca19a9335a1d41..294e65bc96d4e06262b67e3e6b8a987307b226e4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -46,7 +46,7 @@ commands = poetry build
 
 [testenv:docs]
 commands_pre =
-    poetry install
+    poetry install --with docs
 commands = poetry run make -C docs/ html {posargs}
 
 [testenv:reformat]