Getting Started#
I would recommend using vs code to develop virtue. It has many helpful extensions, including a skill code extension for syntax highlighting.
Make sure you have mambaforge (conda) installed. If not you can install it:
make install-conda-dev
Create a new Conda development environment with all the Virtue dependencies installed
1conda env create -f environment.yml
Install virtue as an editable package.
2conda activate virtue-dev 3pip install --no-deps -e .
Initiailize the virtue SKILL environement by following the standard installation instructions.
5virtue env init
Install pre-commit git hooks
7pre-commit install
If you’re using VS Code as your IDE, then install the extensions recommended by the workspace.
Writing Documentation#
The documentation is built using the Sphinx static site generator and the pydata theme.
We use sphinx-autobuild to automatically rebuild the documentation whenever it changes. To start the auto-build, open a new terminal in the project repo root directory and start it by calling the following. If you’re using a vs code integrated terminal then a box will popup asking you to open the auto-built docs in a web browser. Otherwise navigate to the indicated URL.
5make auto-docs
To rebuild the documentation a single time:
5make docs