File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Dev container Dockerfile
2+ FROM mcr.microsoft.com/devcontainers/python:3.12-bullseye
3+
4+ # Install Poetry
5+ RUN curl -sSL https://install.python-poetry.org | python3 -
6+
7+ # Install Poetry Plugins
8+ RUN poetry self add poetry-dotenv-plugin || true && poetry self add poetry-bumpversion || true
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " Langfuse Python SDK" ,
3+ "build" : {
4+ "dockerfile" : " Dockerfile"
5+ },
6+ "postCreateCommand" : " bash .devcontainer/post-create.sh"
7+ }
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ echo " 🚀 Setting up Langfuse Python SDK development environment..."
6+
7+ # Install project dependencies including all extras
8+ echo " 📚 Installing project dependencies..."
9+ poetry install --all-extras
10+
11+ # Setup pre-commit hooks
12+ echo " 🪝 Setting up pre-commit hooks..."
13+ poetry run pre-commit install
14+
15+ # Create a basic .env file if it doesn't exist
16+ if [ ! -f .env ]; then
17+ echo " 📝 Creating .env file from template..."
18+ cp .env.template .env
19+ fi
20+
21+ echo " ✅ Development environment setup complete!"
22+ echo " "
23+ echo " 🎯 Quick start commands:"
24+ echo " poetry run pytest -s -v --log-cli-level=INFO # Run tests"
25+ echo " poetry run ruff format . # Format code"
26+ echo " poetry run ruff check . # Lint code"
27+ echo " poetry run mypy . # Type check"
28+ echo " poetry run pre-commit run --all-files # Run pre-commit"
29+ echo " "
You can’t perform that action at this time.
0 commit comments