Skip to content

Commit

Permalink
Only check files changed
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Aug 2, 2024
1 parent 62426dc commit 65f0a57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ jobs:
cache-downloads: true

- name: Show statistics
run: ruff check --statistics --show-fixes . | tee ruff_stats.txt
run: ruff check --statistics --show-fixes $($(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} -- '*.py')) | tee ruff_stats.txt

- name: Show entire output
run: ruff check . --output-format=concise | tee ruff_full.txt
run: ruff check --output-format=concise $($(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} -- '*.py')) | tee ruff_full.txt

- name: Statistics output read
id: ruff_stats
Expand Down

0 comments on commit 65f0a57

Please sign in to comment.