Skip to content

Commit

Permalink
T0000: check
Browse files Browse the repository at this point in the history
  • Loading branch information
kumvijaya authored Aug 26, 2024
1 parent 36e79d3 commit 4d21232
Showing 1 changed file with 3 additions and 32 deletions.
35 changes: 3 additions & 32 deletions .github/workflows/darker-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Darker Lint
name: Darker-Ruff Lint

on:
pull_request:
Expand Down Expand Up @@ -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/[email protected]
# 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

0 comments on commit 4d21232

Please sign in to comment.