Skip to content

Commit 0f3a5f2

Browse files
committed
pyproject.toml: add search path for Pyrefly
This allows pyrefly to locate `numba.cuda` code within the `numba_cuda` package instead of in the installed Numba package. With this change, using Pyrefly as an LSP behaves "as expected" - i.e. suggestions / info based on code in `numba_cuda` are provided instead of those from the legacy upstream CUDA target.
1 parent 2df2c59 commit 0f3a5f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,6 @@ test = { features = ["test"], solve-group = "test" }
160160

161161
[tool.pixi.tasks]
162162
test = { cmd = ["pytest", "$PIXI_PROJECT_ROOT/numba_cuda/numba/cuda/tests"] }
163+
164+
[tool.pyrefly]
165+
search-path = ["./numba_cuda"]

0 commit comments

Comments
 (0)