Skip to content

Commit 7f6306c

Browse files
committed
Better editor integration: create venv locally and tell pyright where it is, by Piotr
1 parent b4bf290 commit 7f6306c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

poetry.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[virtualenvs]
2+
in-project = true

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ line-length = 120
3939
[build-system]
4040
requires = ["poetry-core>=1.0.0"]
4141
build-backend = "poetry.core.masonry.api"
42+
43+
[tool.pyright]
44+
venvPath = "."
45+
venv = ".venv"

0 commit comments

Comments
 (0)