summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijayakumar A <36878324+kumvijaya@users.noreply.github.com>2024-08-24 17:30:06 +0530
committerGitHub <noreply@github.com>2024-08-24 17:30:06 +0530
commitd375e1b87ded38cabce46bdcefb87612c667c30a (patch)
tree5d6522e39c9749e44fde03170d31fbfa4a0c02bb
parent0b4bc6cd6c5b4d218a0f12ded584cb372ea46468 (diff)
downloadvyos-workflow-test-temp-d375e1b87ded38cabce46bdcefb87612c667c30a.tar.gz
vyos-workflow-test-temp-d375e1b87ded38cabce46bdcefb87612c667c30a.zip
T0000: test
-rw-r--r--.github/workflows/darker-lint.yml48
1 files 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..."