Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,23 @@ jobs:
# grab the history of the PR, so we can run prek on a commit range
fetch-depth: 0

- name: Install Python
uses: actions/setup-python@v7
with:
python-version-file: .python-version

- name: Install uv
uses: astral-sh/setup-uv@v7

# prek comes from PyPI: the GitHub release download used by prek-action
# returns HTTP 504 on the runners. For the same reason Python comes from
# setup-python instead of being downloaded by uv-lock.
- name: Run prek for linting
uses: j178/prek-action@v3.1.0
env:
RUFF_OUTPUT_FORMAT: github
with:
extra-args: --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}
UV_PYTHON_PREFERENCE: only-system
UV_PYTHON_DOWNLOADS: never
run: >
uvx prek run --show-diff-on-failure --color=always
--from-ref ${{ github.event.pull_request.base.sha }}
--to-ref ${{ github.event.pull_request.head.sha }}
12 changes: 6 additions & 6 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading