Files @ aa488effb0f5
Branch filter:

Location: NPO-Accounting/conservancy_beancount/tox.ini

Brett Smith
books.Loader: New loading strategy based on load_file. RT#11034.

Building a string and loading it means Beancount can never cache any
load. It only caches top-level file loads because options in the
top-level file can change the semantics of included entries.

Instead use load_file as much as possible, and filter entries as
needed.
[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