Fix tox.ini lint target (#23359)

tox fails due to being unable to reference the `script` module when
trying to run `script/gen_requirements_all.py`. Instead it needs to be
run as a module.
This commit is contained in:
Ian 2019-04-24 21:30:46 -07:00 committed by Paulus Schoutsen
parent 24766df179
commit 6fb5b8467b

View File

@ -32,7 +32,7 @@ commands =
deps = deps =
-r{toxinidir}/requirements_test.txt -r{toxinidir}/requirements_test.txt
commands = commands =
python script/gen_requirements_all.py validate python -m script.gen_requirements_all validate
flake8 {posargs} flake8 {posargs}
pydocstyle {posargs:homeassistant tests} pydocstyle {posargs:homeassistant tests}