These steps should be performed once for each repository clone. They set up the project environment to match CI and install repository-level hooks.
Terminal (pwsh / bash):
git clone <git@gitlab.it.fhv.at:group/open-ev-fleet.git>
cd open-ev-fleetVS Code (GUI):
-
Menu > File > Close Folder -
Explorer > Clone RepositoryClone from GitLab > ... open-ev-fleetPyCharm (GUI):
-
Menu > File > Project from Version Control > GitLab > ... open-ev-fleet
Run a full uv sync to reproduce the project environment exactly as CI does.
This will create or update the .venv/ and install pinned packages and
tools.
Terminal (pwsh / bash):
# Sync the uv environment, creating .venv/ and installing all packages
uv sync --all-groups --all-extrasAfter uv sync select the created .venv Python interpreter in your IDE:
VS Code (GUI):
Terminal:uv sync --all-groups --all-extrasCTRL+SHIFT+P:Python: Select Interpreter > .venv/...
PyCharm (GUI):
Menu > File > Settings > Python > Interpreter > Add Interpreter > Add Local Interpreter- Environment:
Generate new - Type:
uv
- Environment:
Terminal (pwsh / bash):
# Install pre-commit hooks for this repository, adding them to .git/hooks/
pre-commit install