mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-13 12:33:25 +02:00
Makefile test target works now with protos (#515)
This commit is contained in:
parent
293cbc4db5
commit
0064d8ea48
2 changed files with 12 additions and 5 deletions
11
Makefile
11
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
|
||||
|
|
|
|||
6
tox.ini
6
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue