From 675e016a788cba1a329c7c389cfd55114e9bb6aa Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 13 Jan 2018 15:44:00 +0100 Subject: [PATCH] Add a gitlab-ci yapf check --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1987d5e9..7bd23774 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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