Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
refactor: use uv to install prek for latest version
- Replace curl script with 'uv tool install prek' in CI workflow
- Update documentation to use uv installation method
- Update ai-rulez.yaml with uv installation step
- Ensures we always get the latest prek version automatically
  • Loading branch information
kh3rld committed Sep 22, 2025
commit c474e4e9b50541ca736c434e78cf08206e10f040
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ jobs:

- name: Install prek
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.1/prek-installer.sh | sh
# Install prek using uv (recommended method)
uv tool install prek
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Load Cached Prek Dependencies
Expand Down
1 change: 1 addition & 0 deletions ai-rulez.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ rules:
- Type check: `mypy`

### Prek
- Install prek: `uv tool install prek`
- Install hooks: `prek install && prek install --hook-type commit-msg`
- Run manually: `prek run --all-files`

Expand Down
6 changes: 5 additions & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ Thank you for contributing to Kreuzberg!
uv sync --all-extras --dev
```

1. **Install prek hooks**:
1. **Install prek and hooks**:

```bash
# Install prek using uv (recommended)
uv tool install prek

# Install git hooks
prek install && prek install --hook-type commit-msg
```

Expand Down