Skip to content

How to get started

Felix Lampe edited this page Oct 21, 2024 · 3 revisions

Software requirements

Install klimaschutzmonitor

git clone https://github.com/GermanZero-de/klimaschutzmonitor.git
cd klimaschutzmonitor # Or `code klimaschutzmonitor` to open it with vscode.
python -m venv .venv
poetry shell
poetry install --sync
pre-commit install

This will

  • clone this repository,
  • create a python virtual environment in the sub-directory .venv of the cloned repository,
  • install all the dependencies of the project as specified in pyproject.toml and poetry.lock into this virtual environment, and
  • install a pre-commit hook in the cloned repository.

Whenever you work with the project, call poetry shell first. (Windows: Do this within the WSL shell. In this shell python points to the python virtual environment in .venv.)

Whenever the dependencies change, call poetry install --sync first.

Tips for vscode

After cloning the repository, open the new directory with vscode. Recommended extensions should be offered. If not, go to the "Extensions" side-bar and enter @recommended. Then select "Install Workspace Recommended Extensions".