From 2dd73ddef5a8f19d7176140dd079e769d2914280 Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Fri, 6 Sep 2024 14:13:11 +0530 Subject: Test --- .github/workflows/ruff-lint.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ruff-lint.yml b/.github/workflows/ruff-lint.yml index 8909621..5122334 100644 --- a/.github/workflows/ruff-lint.yml +++ b/.github/workflows/ruff-lint.yml @@ -20,21 +20,15 @@ jobs: - name: Setup python uses: actions/setup-python@v5 with: - python-version: '3.11' - - - name: Fetch base ruff config - run: | - git fetch https://github.com/${{ github.event.pull_request.base.repo.full_name }} ${{ github.event.pull_request.base.ref }}:refs/remotes/origin/base - if git ls-tree -r origin/base --name-only | grep -q '^ruff.toml$'; then - git checkout origin/base -- ruff.toml - echo "Using ruff.toml from base repo" - cat ruff.toml - else - echo "No ruff.toml found in base repo" - fi + python-version: '3.11' - name: Lint uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b with: args: check - changed-files: 'true' \ No newline at end of file + changed-files: 'true' + + - uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b + with: + args: format --diff + changed-files: true \ No newline at end of file -- cgit v1.2.3