forked from continuwuation/continuwuity
The prefligit project has been renamed to prek due to typosquatting concerns. This updates our CI to use the new name and recommended installation method via uv, which significantly reduces setup time compared to cargo install and includes automatic caching. - Replace outdated static prefligit action with direct prek invocation - Use uv as recommended by upstream: https://github.com/j178/prek - Update check-byte-order-marker to fix-byte-order-marker (deprecated) - Simplify workflow by removing unused ref calculations The same .pre-commit-config.yaml works unchanged. Developers can install locally with 'uvx prek install' or other methods from the repo.
47 lines
1 KiB
YAML
47 lines
1 KiB
YAML
default_install_hook_types:
|
|
- pre-commit
|
|
- commit-msg
|
|
default_stages:
|
|
- pre-commit
|
|
- manual
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: fix-byte-order-marker
|
|
- id: check-case-conflict
|
|
- id: check-symlinks
|
|
- id: destroyed-symlinks
|
|
- id: check-yaml
|
|
- id: check-json
|
|
- id: check-toml
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- id: mixed-line-ending
|
|
- id: check-merge-conflict
|
|
- id: check-added-large-files
|
|
|
|
- repo: https://github.com/crate-ci/typos
|
|
rev: v1.26.0
|
|
hooks:
|
|
- id: typos
|
|
- id: typos
|
|
name: commit-msg-typos
|
|
stages: [commit-msg]
|
|
|
|
- repo: https://github.com/crate-ci/committed
|
|
rev: v1.1.7
|
|
hooks:
|
|
- id: committed
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: cargo-fmt
|
|
name: cargo fmt
|
|
entry: cargo +nightly fmt --
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false
|
|
stages:
|
|
- pre-commit
|