This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/ci/tasks/style.yaml

16 lines
470 B
YAML
Raw Normal View History

2017-02-16 16:30:52 +00:00
---
platform: linux
inputs:
- name: quay-pull-request
run:
path: /bin/bash
2017-02-16 16:30:52 +00:00
args:
- -c
- |
set -eux
pip install --quiet -r quay-pull-request/requirements-dev.txt
cd quay-pull-request
export GIT_MERGE_BASED=`git merge-base origin/master HEAD`
export MODIFIED_FILES=`git diff --name-only $(GIT_MERGE_BASED) | grep -E .+\.py$ | paste -sd ' '`
if [ `yapf -d -p $(MODIFIED_FILES) | wc -l` -gt 0 ] ; then false ; else true ;fi