CI [Was: moving to GitHub?]

2018-03-31 Thread Stefano Zacchiroli
On Thu, Mar 29, 2018 at 08:30:30PM -0400, Martin Blais wrote: > You speak as if a little bit of untested code is worth anything. It's > not. Let me explain. Oh, no, I agree it's not worth it. And it's great that you, as Beancount maintainer, have high standards for code acceptance that encompass:

Re: CI [Was: moving to GitHub?]

2018-03-31 Thread 'Patrick Ruckstuhl' via Beancount
Did some searching and came up with https://semaphoreci.com As an option. It supports bitbucket and is free for open source. Regards, Patrick On March 31, 2018 11:02:48 AM GMT+02:00, Stefano Zacchiroli wrote: >On Thu, Mar 29, 2018 at 08:30:30PM -0400, Martin Blais wrote: >> You speak as if

Issue #260: CURRENCY_META undocumented (blais/beancount)

2018-03-31 Thread Martin Michlmayr
New issue 260: CURRENCY_META undocumented https://bitbucket.org/blais/beancount/issues/260/currency_meta-undocumented Martin Michlmayr: I don't know if this is a documentation issue or a bug but I cannot figure out how to use CURRENCY_META(). "help from" says it returns a dict. How do I query a

Re: ledger2beancount: ledger to beancount converter

2018-03-31 Thread Saša Janiška
Martin Blais writes: > I think I would implement this differently than it does it. > It seems to me the "envelope" method could be implemented with > regular transaction (i.e., without resorting to "virtual" ones) by > doing a few things: > - automatically generating most of the transactions spen

Re: Bean-report to use FX conversion on date of transaction instead of latest FX rate

2018-03-31 Thread Hoong-Shen Wong
On Sat, Mar 31, 2018 at 10:58 AM, Martin Blais wrote: > You should confirm whether using "date" uses the date prior to that day, > or on that date if set. > I think it's the latter, but I can't quite remember exactly. > > I checked the query behaviour - it takes the rate on the date itself . e.g.

Issue #261: Make it possible (via metadata?) to report context around transactions with errors. (blais/beancount)

2018-03-31 Thread Martin Blais
New issue 261: Make it possible (via metadata?) to report context around transactions with errors. https://bitbucket.org/blais/beancount/issues/261/make-it-possible-via-metadata-to-report Martin Blais: When you skip Postings due to errors, store the account names somewhere so you can provide be

Re: Illustrated ledger -> beancount example

2018-03-31 Thread Martin Michlmayr
* Martin Blais [2018-03-30 23:56]: > - Found a bug in the example file: > > bergamot [hg|]:~/src/ledger2beancount$ ./bin/ledger2beancount > examples/illustrated.ledger > Can't parse date 03/28 at ./bin/ledger2beancount line 161. You have to use --config examples/illustrated.yml because o

Re: beancount with day+time

2018-03-31 Thread Justus Pendleton
On Saturday, March 31, 2018 at 10:07:31 AM UTC+7, Martin Blais wrote: > > What about time zone support? This is very useful for frequent >> international travelers. If I fly eastbound trans-pacific flight, for >> example, Tokyo to San Francisco, the date will be the same but the local >> time wi

Re: Issue #257: Create a section classifier for new transactions (blais/beancount)

2018-03-31 Thread Martin Blais
That's probably good enough. So the unique key for a marker would be (year, string). The other design option would be for the non-dated directive to produce some sort of a map, and fail if the markers aren't unique. Finally, there's always the option of creating a markerless method (the classific

Re: CI [Was: moving to GitHub?]

2018-03-31 Thread Martin Blais
CI only makes it easier to run the test, it doesn't write the tests. Running the tests is easy ("make test" locally) On Sat, Mar 31, 2018 at 5:02 AM, Stefano Zacchiroli wrote: > On Thu, Mar 29, 2018 at 08:30:30PM -0400, Martin Blais wrote: > > You speak as if a little bit of untested code is wo

Re: Bean-report to use FX conversion on date of transaction instead of latest FX rate

2018-03-31 Thread Martin Blais
On Sat, Mar 31, 2018 at 8:52 AM, Hoong-Shen Wong wrote: > > > On Sat, Mar 31, 2018 at 10:58 AM, Martin Blais wrote: > >> You should confirm whether using "date" uses the date prior to that day, >> or on that date if set. >> I think it's the latter, but I can't quite remember exactly. >> >> I che

Re: CI [Was: moving to GitHub?]

2018-03-31 Thread Stefano Zacchiroli
On Sat, Mar 31, 2018 at 12:45:12PM -0400, Martin Blais wrote: > CI only makes it easier to run the test, it doesn't write the tests. > Running the tests is easy ("make test" locally) My point was that it gives actionable incentives to write the tests to wannabe contributors. -- Stefano Zacchirol

Re: Illustrated ledger -> beancount example

2018-03-31 Thread Martin Blais
On Sat, Mar 31, 2018 at 9:38 AM, Martin Michlmayr wrote: > * Martin Blais [2018-03-30 23:56]: > > - Found a bug in the example file: > > > > bergamot [hg|]:~/src/ledger2beancount$ ./bin/ledger2beancount > > examples/illustrated.ledger > > Can't parse date 03/28 at ./bin/ledger2beancount

Re: beancount with day+time

2018-03-31 Thread Martin Blais
On Sat, Mar 31, 2018 at 11:38 AM, Justus Pendleton wrote: > On Saturday, March 31, 2018 at 10:07:31 AM UTC+7, Martin Blais wrote: >> >> What about time zone support? This is very useful for frequent >>> international travelers. If I fly eastbound trans-pacific flight, for >>> example, Tokyo to Sa

Reports

2018-03-31 Thread Martin Blais
How many people here use bean-report as their main way to generate data from Beancount? How many use bean-web? Does anybody still care about bean-web now that Fava exists? Also... is it possible to bean-bake Fava (or some equivalent creation of a static version for sharing)? Any input appreciated