Files @ 1383dabf3ba8
Branch filter:

Location: NPO-Accounting/conservancy_beancount/tox.ini

Brett Smith
beancount_types: Make Error.source a Mapping rather than a Dict.

The Beancount code just needs a mapping, and this lets us use
Metadata or PostingMeta objects for Error sources.
[tox]
envlist = py36,py37

[testenv]
# Beancount includes type declarations but not the `py.typed` flag file mypy
# is looking for to know that. Create it ourselves.
commands_pre = python -c 'import beancount, pathlib; pathlib.Path(beancount.__file__).with_name("py.typed").touch()'

commands =
  ./setup.py test
  ./setup.py typecheck