← Back to all toys

Pre-commit Beancount Format

Format beancount files using bean-format as a pre-commit hook

The Problem

Beancount plain-text accounting files can become inconsistently formatted, and manually running bean-format before each commit is easy to forget.

Highlights

  • Integrates bean-format as a pre-commit hook
  • Supports both .beancount and .bean file extensions
  • Configurable formatting arguments