Skip to content

Conversation

@JacobCoffee
Copy link
Member

Description

  • pre-commit -> prek

Closes

Closes #4492

JacobCoffee and others added 7 commits November 26, 2025 15:06
Add header comments recommending prek as a faster alternative to
pre-commit. The configuration file remains fully compatible with both
tools.

Closes #4492

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Update the workflow section to recommend prek as a faster alternative
to pre-commit for running linting hooks. Both tools remain supported
and use the same configuration file.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Update the pre-commit target to automatically use prek if installed,
falling back to pre-commit otherwise. This provides faster linting
for developers who have prek installed while maintaining backwards
compatibility.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Remove pre-commit from linting dependencies since prek is a standalone
binary that doesn't require it. Developers who prefer pre-commit can
still install it via `uvx pre-commit` or `pipx install pre-commit`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Update the upgrade target to use prek autoupdate when available,
falling back to uvx pre-commit autoupdate otherwise.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Replace pre-commit with prek in the CI validate job for faster
linting. Uses taiki-e/install-action for reliable binary installation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Replace the pre-commit devcontainer feature with Rust toolchain and
install prek via cargo in the postCreateCommand.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@github-actions github-actions bot added area/ci This PR involves changes to the CI/Infra area/dependencies This PR involves changes to the dependencies area/docs This PR involves changes to the documentation size: small type/docs pr/internal labels Nov 26, 2025
Simplify prek usage by using uvx everywhere:
- Update config header to show uvx prek command
- Update CONTRIBUTING.rst to use uvx for both tools
- Update Makefile to use uvx prek directly
- Update CI to use uvx prek via astral-sh/setup-uv
- Simplify devcontainer to just run uv sync

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@github-actions
Copy link

Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/4496

@JacobCoffee JacobCoffee changed the title docs: add prek recommendation to pre-commit config ci: migrate to prek from pre-commit Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci This PR involves changes to the CI/Infra area/dependencies This PR involves changes to the dependencies area/docs This PR involves changes to the documentation pr/internal size: small type/docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: Swap to prek

2 participants