diff --git a/Makefile b/Makefile index 62060b7e..7fdbec64 100644 --- a/Makefile +++ b/Makefile @@ -10,12 +10,12 @@ clean: find . -name '*.pyi' -delete make --directory=frontend clean; -test: +test: gen-protos tox tox -e codechecks tox -e mypy -codeformat: +codeformat: gen-protos tox -e autoflake tox -e autopep8 tox -e isort @@ -27,10 +27,13 @@ itest: coverage: tox -e coverage -mypy: +mypy: gen-protos tox -e mypy -run: +run: gen-protos tox -e run +gen-protos: + tox -e setup + .PHONY: all clean test itest coverage mypy run diff --git a/tox.ini b/tox.ini index aab9cb72..4cfc448c 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,6 @@ deps = -rrequirements.txt passenv = MY_APP_CONFIG_FILE commands = - {envbindir}/python setup.py build_proto_modules py.test {posargs:tests} [testenv:coverage] @@ -79,5 +78,10 @@ deps = commands = isort . +[testenv:setup] +basepython = python3.8 +commands = + {envbindir}/python setup.py build_proto_modules + [flake8] ignore = E501