SEBA-566 Add linting and fix errors in simpleexampleservice
Change-Id: I9a7fa83f528e70877a19de6f21e1e41a5812741c
diff --git a/Makefile b/Makefile
index 0451226..888888c 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,7 @@
docker-push:
docker push ${DOCKER_IMAGENAME}
-test: test-unit test-migration
+test: test-unit test-migration test-xproto
test-unit:
tox
@@ -63,7 +63,7 @@
venv-service:
virtualenv $@;\
source ./$@/bin/activate ; set -u ;\
- python venv-service/bin/pip install -r requirements.txt xosmigrate~=3.0.1
+ python venv-service/bin/pip install -r requirements.txt xosmigrate~=3.2.1
create-migration: venv-service
source ./venv-service/bin/activate; set -u;\
@@ -73,6 +73,10 @@
source ./venv-service/bin/activate; set -u;\
cd xos; python ../venv-service/bin/xos-migrate --xos-dir ${XOS_DIR} --services-dir ${SERVICES_DIR} -s ${SERVICE_NAME} --check
+test-xproto: venv-service
+ source ./venv-service/bin/activate; set -u;\
+ python venv-service/bin/xosgenx --lint --strict xos/synchronizer/models/simpleexampleservice.xproto
+
clean:
find . -name '*.pyc' | xargs rm -f
rm -rf \