Development¶
Environment setup¶
Typically on Ubuntu (but should work on Windows).
1. Install virtual environment¶
Using qgis-venv-creator (see this article) through pipx (sudo apt install pipx
):
pipx run qgis-venv-creator
Old school way:
# create virtual environment linking to system packages (for pyqgis)
python3 -m venv .venv --system-site-packages
source .venv/bin/activate
2. Install development dependencies¶
# bump dependencies inside venv
python -m pip install -U pip
python -m pip install -U -r requirements/development.txt
# install git hooks (pre-commit)
pre-commit install