From 5d47d83ea5d56bfe9f7263f0ebe556cdab3d4794 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 1 Aug 2022 22:19:53 -0500 Subject: [PATCH] svc: Set venv path for Pyright Need to set the path to the Python venv for Pyright in order to get valid diagnostics in Neovim. --- svc/pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/svc/pyproject.toml b/svc/pyproject.toml index 7894051..19ad65b 100644 --- a/svc/pyproject.toml +++ b/svc/pyproject.toml @@ -61,3 +61,7 @@ warn_return_any = true module = 'hudctrl.api' disallow_untyped_defs = false disallow_incomplete_defs = false + +[tool.pyright] +venvPath = '.' +venv = '.venv'