2020-03-05 14:33:23 +00:00
|
|
|
[aliases]
|
|
|
|
test=pytest
|
2020-03-18 12:14:36 +00:00
|
|
|
typecheck=pytest --addopts="--mypy conservancy_beancount"
|
|
|
|
|
|
|
|
[mypy]
|
2020-06-03 23:03:02 +00:00
|
|
|
disallow_any_unimported = False
|
2020-04-27 20:53:22 +00:00
|
|
|
disallow_untyped_calls = False
|
2020-03-30 03:18:40 +00:00
|
|
|
disallow_untyped_defs = True
|
2020-03-18 12:14:36 +00:00
|
|
|
show_error_codes = True
|
2020-03-29 23:39:09 +00:00
|
|
|
strict_equality = True
|
|
|
|
warn_redundant_casts = True
|
|
|
|
warn_return_any = True
|
|
|
|
warn_unreachable = True
|
2020-03-18 12:14:36 +00:00
|
|
|
warn_unused_configs = True
|
2020-06-04 02:27:49 +00:00
|
|
|
|
2020-07-07 13:25:25 +00:00
|
|
|
[tool:pytest]
|
|
|
|
filterwarnings =
|
|
|
|
ignore::DeprecationWarning:^socks$
|
|
|
|
|
2020-06-04 02:27:49 +00:00
|
|
|
[tox: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
|