Skip to content

Commit

Permalink
Remove strict reference to pytest in vscode settings. Update DEV_SETU…
Browse files Browse the repository at this point in the history
…P to include notes about VScode unit testing setup.
  • Loading branch information
moonbox3 authored and eavanvalkenburg committed Jan 7, 2025
1 parent ffb78f0 commit 4ded537
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 0 additions & 5 deletions python/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,4 @@
"python.analysis.extraPaths": [
"${workspaceFolder}/samples/learn_resources"
],
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
}
12 changes: 12 additions & 0 deletions python/DEV_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ If prompted, install `ruff`. (It should have been installed as part of `uv sync
You also need to install the `ruff` extension in VSCode so that auto-formatting uses the `ruff` formatter on save.
Read more about the extension [here](https://github.com/astral-sh/ruff-vscode).

### Configuring Unit Testing in VSCode

- We have removed the strict dependency on forcing `pytest` usage via the `.vscode/settings.json` file.
- Developers are free to set up unit tests using their preferred framework, whether it is `pytest` or `unittest`.
- If needed, adjust VSCode's local `settings.json` (accessed via the Command Palette: **Open User Settings (JSON)**) to configure the test framework. For example:
```json
"pythonTestExplorer.testFramework": "pytest"
```
Or, for `unittest`:
```json
"pythonTestExplorer.testFramework": "unittest"

## LLM setup

Make sure you have an
Expand Down

0 comments on commit 4ded537

Please sign in to comment.