Skip to content

Commit

Permalink
ENH: set Python path to .venv/bin/python (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer authored Jan 29, 2025
1 parent 3d8b979 commit 2e16723
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"notebook.formatOnSave.enabled": true,
"python.analysis.autoImportCompletions": false,
"python.analysis.inlayHints.pytestParameters": true,
"python.defaultInterpreterPath": ".venv/bin/python",
"python.terminal.activateEnvironment": false,
"python.testing.pytestArgs": ["--color=no", "--no-cov", "-vv"],
"python.testing.pytestEnabled": true,
Expand Down
8 changes: 7 additions & 1 deletion src/compwa_policy/check_dev_files/vscode.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ def _update_settings(has_notebooks: bool, is_python_repo: bool) -> None:
{"files.associations": {"**/.constraints/py*.txt": "pip-requirements"}},
)
if is_python_repo:
do(vscode.update_settings, {"rewrap.wrappingColumn": 88})
do(
vscode.update_settings,
{
"python.defaultInterpreterPath": ".venv/bin/python",
"rewrap.wrappingColumn": 88,
},
)
if CONFIG_PATH.envrc.exists():
do(
vscode.update_settings,
Expand Down

0 comments on commit 2e16723

Please sign in to comment.