From 9f68836d7e4b8e8d820c93976254168b2635652c Mon Sep 17 00:00:00 2001 From: Yuan Tang Date: Tue, 25 Feb 2025 10:56:27 -0500 Subject: [PATCH] build: Add dotenv file for running tests with uv Signed-off-by: Yuan Tang --- .env.dev | 6 ++++++ .gitignore | 1 + CONTRIBUTING.md | 5 +++++ 3 files changed, 12 insertions(+) create mode 100644 .env.dev diff --git a/.env.dev b/.env.dev new file mode 100644 index 000000000..ccfaf6256 --- /dev/null +++ b/.env.dev @@ -0,0 +1,6 @@ +LLAMA_STACK_BASE_URL=http://localhost:5001 +LLAMA_STACK_CLIENT_LOG=debug +LLAMA_STACK_PORT=5001 +LLAMA_STACK_CONFIG= +LLAMA_STACK_DIR= +LLAMA_MODELS_DIR= diff --git a/.gitignore b/.gitignore index f54d1563d..cc9f374a8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .env +.env.dev __pycache__ dist *.egg-info diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1e4a88f13..5f1fa706d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -70,6 +70,11 @@ $ uv pip install -e . $ source .venv/bin/activate ``` +Note that you can modify the existing `.env.dev` dotenv file for running tests via the following: +```bash +$ uv run --env-file .env.dev -- python +``` + ## Pre-commit Hooks We use [pre-commit](https://pre-commit.com/) to run linting and formatting checks on your code. You can install the pre-commit hooks by running: