A pre-commit hook for formatting beancount files

195 views
Skip to first unread message

Haotian Wu

unread,
Apr 28, 2021, 4:24:45 AM4/28/21
to Beancount

Hi all,

I'm using git to manage my beancount ledgers and I love auto formatting. So I made a pre-commit hook for formatting beancount files: https://github.com/whtsky/pre-commit-beancount-format .

I hope that's helpful to you.

redst...@gmail.com

unread,
May 1, 2021, 3:23:16 PM5/1/21
to Beancount
Great, thank you for sharing this!

For others: bean-format only modifies whitespace:
This pure text processing tool will reformat Beancount input to right-align all the numbers at the same, minimal column. It left-aligns all the currencies. It only modifies whitespace.
Reply all
Reply to author
Forward
0 new messages