Python env now autoopens
This commit is contained in:
6
.env
Normal file
6
.env
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Environment variables for development
|
||||||
|
# You can add project-specific environment variables here
|
||||||
|
|
||||||
|
# Example:
|
||||||
|
# ALPINEBITS_CONFIG_DIR=./config
|
||||||
|
# PYTHONPATH=./src
|
||||||
14
.vscode/settings.json
vendored
14
.vscode/settings.json
vendored
@@ -19,6 +19,20 @@
|
|||||||
"notebook.output.textLineLimit": 200,
|
"notebook.output.textLineLimit": 200,
|
||||||
"jupyter.debugJustMyCode": false,
|
"jupyter.debugJustMyCode": false,
|
||||||
"python.defaultInterpreterPath": "./.venv/bin/python",
|
"python.defaultInterpreterPath": "./.venv/bin/python",
|
||||||
|
"python.terminal.activateEnvironment": true,
|
||||||
|
"python.terminal.activateEnvInCurrentTerminal": true,
|
||||||
|
"python.envFile": "${workspaceFolder}/.env",
|
||||||
|
"terminal.integrated.env.linux": {
|
||||||
|
"VIRTUAL_ENV": "${workspaceFolder}/.venv",
|
||||||
|
"PATH": "${workspaceFolder}/.venv/bin:${env:PATH}"
|
||||||
|
},
|
||||||
|
"terminal.integrated.defaultProfile.linux": "bash",
|
||||||
|
"terminal.integrated.profiles.linux": {
|
||||||
|
"bash": {
|
||||||
|
"path": "bash",
|
||||||
|
"args": ["-c", "source ${workspaceFolder}/.venv/bin/activate && exec bash"]
|
||||||
|
}
|
||||||
|
},
|
||||||
"python.testing.pytestEnabled": true,
|
"python.testing.pytestEnabled": true,
|
||||||
"python.testing.pytestArgs": [
|
"python.testing.pytestArgs": [
|
||||||
"tests",
|
"tests",
|
||||||
|
|||||||
Reference in New Issue
Block a user