Skip to content

Commit

Permalink
Simplify uv runs in docs
Browse files Browse the repository at this point in the history
The extra `uv sync` is not needed - `uv run` will do that automatically.
This also fixes a typo in the service README
  • Loading branch information
markwaddle committed Oct 31, 2024
1 parent aed4566 commit 2bdab63
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 24 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/workbench-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install package
run: uv sync

- name: pytest
run: uv run pytest --dbtype=${{ matrix.dbtype }}

Expand Down
2 changes: 0 additions & 2 deletions assistants/explorer-assistant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ command line, using `uv`:
```
cd <PATH TO THIS FOLDER>
uv sync
uv run start-semantic-workbench-assistant assistant.chat:app
```

Expand Down
2 changes: 0 additions & 2 deletions assistants/guided-conversation-assistant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ command line, using `uv`:
```
cd <PATH TO THIS FOLDER>
uv sync
uv run start-semantic-workbench-assistant assistant.chat:app
```

Expand Down
2 changes: 0 additions & 2 deletions assistants/prospector-assistant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ command line, using `uv`:
```
cd <PATH TO THIS FOLDER>
uv sync
uv run start-semantic-workbench-assistant assistant.chat:app
```

Expand Down
2 changes: 0 additions & 2 deletions assistants/skill-assistant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ command line, using `uv`:
```
cd <PATH TO THIS FOLDER>
uv sync
uv run start-semantic-workbench-assistant assistant.chat:app
```

Expand Down
2 changes: 0 additions & 2 deletions examples/python/python-01-echo-bot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ command line, using `uv`:
```
cd <PATH TO THIS FOLDER>
uv sync
uv run start-semantic-workbench-assistant assistant.chat:app
```

Expand Down
2 changes: 0 additions & 2 deletions examples/python/python-02-simple-chatbot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ command line, using `uv`:
```
cd <PATH TO THIS FOLDER>
uv sync
uv run start-semantic-workbench-assistant assistant.chat:app
```

Expand Down
2 changes: 0 additions & 2 deletions examples/python/python-03-multimodel-chatbot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ command line, using `uv`:
```
cd <PATH TO THIS FOLDER>
uv sync
uv run start-semantic-workbench-assistant assistant.chat:app
```

Expand Down
1 change: 0 additions & 1 deletion tools/run-python-example1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ cd $ROOT

cd examples/python/python-01-echo-bot

uv sync
uv run start-semantic-workbench-assistant assistant.chat:app
1 change: 0 additions & 1 deletion tools/run-python-example2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ Set-Location $root
Set-Location "examples/python/python-02-simple-chatbot"

# Run the commands
uv sync
uv run start-semantic-workbench-assistant assistant.chat:app
1 change: 0 additions & 1 deletion tools/run-python-example2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ cd $ROOT

cd examples/python/python-02-simple-chatbot

uv sync
uv run start-semantic-workbench-assistant assistant.chat:app
3 changes: 1 addition & 2 deletions tools/run-service.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ Set-Location "workbench-service"
# Note: this creates the .data folder at
# path ./workbench-service/.data
# rather than ./workbench-service/.data
uv sync
uv run start-semantic-workbench-service
uv run start-semantic-workbench-service
1 change: 0 additions & 1 deletion tools/run-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ cd workbench-service
# Note: this creates the .data folder at
# path ./workbench-service/.data
# rather than ./workbench-service/.data
uv sync
uv run start-semantic-workbench-service
2 changes: 1 addition & 1 deletion workbench-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ To run and/or debug in VS Code, View->Run, "service: semantic-workbench-service"
In the [workbench-service](./) directory

```sh
uv run start-semantic-workbench
uv run start-semantic-workbench-service
```

0 comments on commit 2bdab63

Please sign in to comment.