build: Add dotenv file for running tests with uv

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
Yuan Tang 2025-02-25 10:56:27 -05:00
parent 1bd080c23d
commit 9f68836d7e
No known key found for this signature in database
3 changed files with 12 additions and 0 deletions

6
.env.dev Normal file
View file

@ -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=

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
.env .env
.env.dev
__pycache__ __pycache__
dist dist
*.egg-info *.egg-info

View file

@ -70,6 +70,11 @@ $ uv pip install -e .
$ source .venv/bin/activate $ 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 <your-test-script>
```
## Pre-commit Hooks ## 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: 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: