From d375e1b87ded38cabce46bdcefb87612c667c30a Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Sat, 24 Aug 2024 17:30:06 +0530 Subject: T0000: test --- .github/workflows/darker-lint.yml | 48 +++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml index 16f57bd..9a0e6d0 100644 --- a/.github/workflows/darker-lint.yml +++ b/.github/workflows/darker-lint.yml @@ -15,27 +15,35 @@ jobs: fetch-depth: 0 - uses: actions/setup-python@v5 - - name: Get head commit ID - id: get-head-commit + - name: darker install run: | - HEAD_COMMIT=$(jq -r .pull_request.head.sha "$GITHUB_EVENT_PATH") - echo "head_commit=$HEAD_COMMIT" >> "$GITHUB_OUTPUT" - - - name: Get base commit ID - id: get-base-commit + pip install --upgrade darker~=2.1.1 + + - name: analyze run: | - BASE_COMMIT=$(jq -r .pull_request.base.sha "$GITHUB_EVENT_PATH") - echo "base_commit=$BASE_COMMIT" >> "$GITHUB_OUTPUT" + darker --revision current . - - name: Use commit IDs - run: | - echo "Head commit ID: ${{ steps.get-head-commit.outputs.head_commit }}" - echo "Base commit ID: ${{ steps.get-base-commit.outputs.base_commit }}" + # - name: Get head commit ID + # id: get-head-commit + # run: | + # HEAD_COMMIT=$(jq -r .pull_request.head.sha "$GITHUB_EVENT_PATH") + # echo "head_commit=$HEAD_COMMIT" >> "$GITHUB_OUTPUT" - - uses: akaihola/darker@v2.1.1 - with: - options: "--check --diff --isort --color" - src: "." - version: "~=2.1.1" - lint: "flake8,pylint==2.13.1" - revision: "current..." + # - name: Get base commit ID + # id: get-base-commit + # run: | + # BASE_COMMIT=$(jq -r .pull_request.base.sha "$GITHUB_EVENT_PATH") + # echo "base_commit=$BASE_COMMIT" >> "$GITHUB_OUTPUT" + + # - name: Use commit IDs + # run: | + # echo "Head commit ID: ${{ steps.get-head-commit.outputs.head_commit }}" + # echo "Base commit ID: ${{ steps.get-base-commit.outputs.base_commit }}" + + # - uses: akaihola/darker@v2.1.1 + # with: + # options: "--check --diff --isort --color" + # src: "." + # version: "~=2.1.1" + # lint: "flake8,pylint==2.13.1" + # revision: "current..." -- cgit v1.2.3