Re: Optionally make commodity directive mandatory?

2023-12-28 Thread Martin Blais
You're welcome! On Thu, Dec 28, 2023, 20:11 Lover O'Bean wrote: > Yes; while it doesn't address timing, it should be good enough for now: > > https://beancount.github.io/docs/api_reference/beancount.plugins.html#beancount.plugins.check_commodity.validate_commodity_directives > > (Also, while I

Re: Optionally make commodity directive mandatory?

2023-12-28 Thread Lover O'Bean
Yes; while it doesn't address timing, it should be good enough for now: https://beancount.github.io/docs/api_reference/beancount.plugins.html#beancount.plugins.check_commodity.validate_commodity_directives (Also, while I was "in the neighborhood", I noticed another plugin that addresses another

Re: Optionally make commodity directive mandatory?

2023-12-28 Thread Martin Michlmayr
There's a plugin for this: validate_commodity_directives A plugin that verifies that all seen commodities have a Commodity directive. * Lover O'Bean [2023-12-28 17:16]: > I am new to beancount, but would like the option of requiring that each > commodity / currency be created with a

Optionally make commodity directive mandatory?

2023-12-28 Thread Lover O'Bean
I am new to beancount, but would like the option of requiring that each commodity / currency be created with a commodity directive before being used, in the same way that accounts require an open directive before being used. For example, if I declare AIRMILES.WN (IATA code) today but two years