diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a147d503..69632440 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,6 @@ python_formatter: script: - which autopep8 || pip install autopep8 - which git || apt update && apt install -y git - - for i in `git show HEAD | egrep "new file|modified" | grep ".eb" | cut -d ":" -f 2 | cut -d " " -f 4`; do echo $i; autopep8 --in-place --aggressive --aggressive "$i"; done + - for i in `git whatchanged -4 | egrep "new|modified" | grep ".eb" | cut -d ":" -f 2 | cut -d " " -f 4`; do echo $i; autopep8 --in-place --aggressive --aggressive "$i"; done only: - master