| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
We welcome contributions! This document provides guidelines for contributing to the project.
We recommend using uv for managing Python versions and dependencies. Install uv:
curl -LsSf https://astral.sh/uv/install.sh | shOr using pip:
pip install uvPython >= 3.11
With uv, you can create a project with the correct Python version:
uv python install 3.11git clone https://github.com/elumobility/ocpi-python.gitcd ocpi-python# Install all dependencies including dev tools
uv sync --all-extras
# Or install specific extras
uv sync --extra dev --extra docsThis will:
With uv, you can run commands in the virtual environment:
uv run <command>Or activate the shell:
source .venv/bin/activate # On Unix/macOS
# or
.venv\Scripts\activate # On Windowsuv run pre-commit installTo run tests, use:
uv run pytestOr with coverage:
uv run pytest --cov=ocpi --cov-report=term-missingTo build documentation locally:
# Install docs dependencies first
uv sync --extra docs
# Build and serve documentation
uv run mkdocs serve
# Build static site
uv run mkdocs build| Back | FazBrowse Home | New Git URL |