The prek and pre-commit hook for spacify, the formatter for the vertical rhythm of Python and Rust code. It installs spacify's prebuilt wheel from PyPI, so you don't need a Rust toolchain.
Put it after your formatter's hook (ruff-format, or a cargo fmt hook), so spacify sees its line
wrapping:
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.9
hooks:
- id: ruff-format
- repo: https://github.com/avanserv/spacify-pre-commit
rev: v0.3.0
hooks:
- id: spacifyPass args: [--check] to report files instead of rewriting them. spacify reads its configuration
from pyproject.toml or spacify.toml, including which languages to format; see its README.
This repository holds no code. Each spacify release updates the pinned version here and tags this
repository with the same version, so prek autoupdate picks it up.