Setup (per-repository / do once per clone)
These steps should be performed once for each repository clone. They set up the project environment to match CI and install repository-level hooks.
Clone the repository
Here we clone the repository from GitLab. If you have already cloned the repository, skip this step.
Terminal (pwsh / bash):
git clone git@gitlab.uclv.net:energy-research-centre/frameworks/open-ev-fleet.git
cd open-ev-fleetVS Code (GUI):
Menu > File > Close FolderExplorer > Clone RepositoryClone from GitLab > ... open-ev-fleet
PyCharm (GUI):
Menu > File > Project from Version Control > GitLab > ... open-ev-fleet
Sync UV environment and select interpreter
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:
Install pre-commit hooks for this repository
Terminal (pwsh / bash):
# Install pre-commit hooks for this repository, adding them to .git/hooks/
pre-commit installHow to make the Python venv accessible in jupyterhub
- go to the root git directory
source .venv/bin/activateuv pip install jupyteripython kernel install --name "openevfleet" --userdeactivate