From 1b81bd4c8496e8187f2643c95c070747bd64adde Mon Sep 17 00:00:00 2001 From: Robert Rosca <robert.rosca@xfel.eu> Date: Thu, 4 Mar 2021 21:33:07 +0100 Subject: [PATCH] Adjust whitespace --- .gitlab-ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3b96a19a4..5beb52763 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,14 +8,14 @@ checks: allow_failure: true script: - export PATH=/home/gitlab-runner/.local/bin:$PATH - # We'd like to run the pre-commit hooks only on files that are being - # modified by this merge request, however - # `CI_MERGE_REQUEST_TARGET_BRANCH_SHA` is a 'premium' feature according to - # GitLab... so this is a workaround for extracting the hash + # We'd like to run the pre-commit hooks only on files that are being + # modified by this merge request, however + # `CI_MERGE_REQUEST_TARGET_BRANCH_SHA` is a 'premium' feature according to + # GitLab... so this is a workaround for extracting the hash - export CI_MERGE_REQUEST_TARGET_BRANCH_SHA=$(git ls-remote origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME | cut -d$'\t' -f1) - - export FILES=$(git diff $CI_COMMIT_SHA $CI_MERGE_REQUEST_TARGET_BRANCH_SHA --name-only | tr '\n' ' ') + - export FILES=$(git diff $CI_COMMIT_SHA $CI_MERGE_REQUEST_TARGET_BRANCH_SHA --name-only | tr '\n' ' ') - python3 -m pip install ".[test,dev]" - - echo "Running pre-commit on diff from $CI_COMMIT_SHA to $CI_MERGE_REQUEST_TARGET_BRANCH_SHA ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME)" + - echo "Running pre-commit on diff from $CI_COMMIT_SHA to $CI_MERGE_REQUEST_TARGET_BRANCH_SHA ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME)" # Pass list of modified files to pre-commit so that it only checks them - echo $FILES | xargs pre-commit run --color=always --files -- GitLab