summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ruff-lint.yml20
1 files 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