mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-13 13:19:57 +00:00
build: Add dotenv file for running tests with uv
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
parent
1bd080c23d
commit
9f68836d7e
3 changed files with 12 additions and 0 deletions
6
.env.dev
Normal file
6
.env.dev
Normal 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
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
||||||
.env
|
.env
|
||||||
|
.env.dev
|
||||||
__pycache__
|
__pycache__
|
||||||
dist
|
dist
|
||||||
*.egg-info
|
*.egg-info
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue