From 516a2a107ea46f68d2c737ecfabf8d67bfbfaf9a Mon Sep 17 00:00:00 2001 From: Elijah Duffy Date: Thu, 26 Mar 2026 22:33:34 -0700 Subject: [PATCH] vscode: fix missing python modules, ultimately due to uv sync issue --- .gitignore | 4 +++- .vscode/extensions.json | 3 +++ .vscode/settings.json | 3 +++ Makefile | 2 +- pyrightconfig.json | 9 +++++++++ 5 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json create mode 100644 pyrightconfig.json diff --git a/.gitignore b/.gitignore index 3d70b96..493f6be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ # OS/editor noise .DS_Store .idea/ -.vscode/ +.vscode/* +!.vscode/settings.json +!.vscode/extensions.json # Local environment files .env diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..a584819 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["ms-python.python"] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..693b25c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.defaultInterpreterPath": "${workspaceFolder}/python/.venv/bin/python" +} diff --git a/Makefile b/Makefile index f2c9fc7..b8ef363 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ buf-generate: $(BUF) generate py-sync: - uv sync --project python + uv sync --project python --all-packages go-test: cd clients/go && go test ./... diff --git a/pyrightconfig.json b/pyrightconfig.json new file mode 100644 index 0000000..1658f07 --- /dev/null +++ b/pyrightconfig.json @@ -0,0 +1,9 @@ +{ + "venvPath": "python", + "venv": ".venv", + "extraPaths": [ + "gen/python", + "python/packages/officeconvert/src", + "python/packages/server/src" + ] +}