We use uv + lock-based dependency management for reproducible environments.
Please do not use pip install -r ... or manual dependency installs.
curl -LsSf https://astral.sh/uv/install.sh | shirm https://astral.sh/uv/install.ps1 | iexIf you previously used the old setup, delete .venv first.
rm -rf .venvFrom the repository root, do the following:
uv venv --python 3.12
uv sync --group devuv run pre-commit installuv run pytestuv run ruff format .
uv run ruff check .If uv is not found after installation on macOS/Linux, add it to your PATH:
export PATH="$HOME/.local/bin:$PATH"Then restart your terminal and retry.
If setup still fails, share:
- the full error output
uv --version
1) Create your own OpenRouter API key from here: https://openrouter.ai/
cp .env.example .envThen Open .env and paste:
OPENROUTER_API_KEY=sk-xxxxuv sync --group devuv run python llm_social_simulation/models/tests/try_openrouter.py- Python requirement is defined in
pyproject.toml. - Prefer running all tooling through
uv run ...to keep execution inside the managed environment.