Core utilities for Virtool and associated packages.
pip install virtool-core
pip install git+https://github.com/virtool/virtool-core.git
tox
is used to run the tests in a fresh virtual environment with all of the test dependencies. To install it use;
pip install tox tox-poetry
tox
Any arguments given to tox after a --
token will be supplied to pytest.
tox -- --log-cli-level=DEBUG
For docstrings, use the Sphinx docstring format.
The packages sphinx_rtd_theme
and sphinx_autoapi
are used in rendering the documentation.
pip install sphinx_rtd_theme sphinx_autoapi
recommonmark is used so that Sphinx can
render documentation from markdown files as well as rst files. It will need to
be installed before running sphinx-build
:
pip install recommonmark
To use sphinx rst directives in a markdown file use the
eval_rst
code block
cd sphinx && make html
The rendered HTML files are found under sphinx/build/html