Revision 6da524cb2bd8b870eaa0be477837694617cfff1b authored by Valentin Lorentz on 20 February 2020, 15:50:23 UTC, committed by Valentin Lorentz on 24 February 2020, 15:06:24 UTC
They will be used by loaders, so they can deal only with model objects, instead of having to do the same conversion themselves. This removes the `data` and `save_path` arguments of `from_file` and `from_disk`, as data loading is always deferred from now on. To access it, users are now expected to either open the data files themselves, or us `.to_model().with_data()`.
1 parent ad6a030
tox.ini
[tox]
envlist=flake8,mypy,py3
[testenv]
extras =
testing
deps =
pytest-cov
commands =
pytest --cov={envsitepackagesdir}/swh/model \
{envsitepackagesdir}/swh/model \
--cov-branch {posargs}
[testenv:flake8]
skip_install = true
deps =
flake8
commands =
{envpython} -m flake8
[testenv:mypy]
extras =
testing
deps =
mypy
commands =
mypy swh
Computing file changes ...