conservancy_beancount/setup.cfg

31 lines
739 B
INI
Raw Normal View History

[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
disallow_untyped_calls = False
disallow_untyped_defs = True
2020-03-18 12:14:36 +00:00
show_error_codes = True
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