Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
kumvijaya authored Sep 6, 2024
1 parent dc3ffbe commit 2dd73dd
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/ruff-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
changed-files: 'true'

- uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b
with:
args: format --diff
changed-files: true

0 comments on commit 2dd73dd

Please sign in to comment.