summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijayakumar A <36878324+kumvijaya@users.noreply.github.com>2024-08-26 23:40:29 +0530
committerGitHub <noreply@github.com>2024-08-26 23:40:29 +0530
commit4d212324792fc66d90103db0c635aae4743f3425 (patch)
treed97418cf15d72014468aaca63f1cc783a91cdb39
parent36e79d360e74ff298c768482b058ea8986cd23a8 (diff)
downloadvyos-workflow-test-temp-feature/test-darker.tar.gz
vyos-workflow-test-temp-feature/test-darker.zip
-rw-r--r--.github/workflows/darker-lint.yml35
1 files changed, 3 insertions, 32 deletions
diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml
index c8a20c9..5db2e83 100644
--- a/.github/workflows/darker-lint.yml
+++ b/.github/workflows/darker-lint.yml
@@ -1,5 +1,5 @@
---
-name: Darker Lint
+name: Darker-Ruff Lint
on:
pull_request:
@@ -28,35 +28,6 @@ jobs:
run: |
git fetch origin ${base_ref}:${base_ref}
- - name: Analyze Code with Darker
+ - name: Analyze Code
run: |
- darker -r ${base_ref}... --check --diff --lint "ruff check" --isort --color ./src
-
-
- # - name: analyze
- # run: |
- # darker -r current .
-
- # - 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"
-
- # - 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: "--revision current...HEAD --check --diff --isort --color"
- # src: "."
- # version: "~=2.1.1"
- # lint: "flake8,pylint==2.13.1"
+ darker -r ${base_ref}... --check --diff --lint "ruff check" --isort --color ./src \ No newline at end of file