Add a gitlab-ci yapf check

This commit is contained in:
mathieui 2018-01-13 15:44:00 +01:00
parent 12ede4d301
commit 675e016a78
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -46,3 +46,10 @@ test-ubuntu:
- python3 setup.py install
- py.test -v test/
- pylint -E poezio
formatting-check:
stage: test
image: poezio/test-base:latest
script:
- pip3 install yapf
- [ -n "$(yapf -dpr poezio)" ] && echo "yapf check failure" && exit 1