diff --git a/tox.ini b/tox.ini
index e1261457c47bd550d236e3a137a681bbe5f5fa0d..60dacd5d8cb027b2ac68a0d0ab70abc837d315c0 100644
--- a/tox.ini
+++ b/tox.ini
@@ -49,8 +49,8 @@ deps =
      -r{toxinidir}/requirements_test.txt
 commands =
          python script/gen_requirements_all.py validate
-         flake8
-         pydocstyle homeassistant tests
+         flake8 {posargs}
+         pydocstyle {posargs:homeassistant tests}
 
 [testenv:typing]
 basepython = {env:PYTHON3_PATH:python3}