Skip to content

About

prek / pre-commit hook for spacify

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

spacify-pre-commit

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: spacify

Pass 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.

About

prek / pre-commit hook for spacify

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors