update to zed settings
This commit is contained in:
parent
23b43d848c
commit
ff6d0206e3
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
# Überprüfen, ob pyrightconfig.json existiert, wenn nicht, erstelle es mit dem angegebenen Inhalt
|
||||
if [ ! -f "pyrightconfig.json" ]; then
|
||||
echo '{"venvPath": ".", "venv": ".venv"}' > pyrightconfig.json
|
||||
if [ ! -f "pyproject.toml" ]; then
|
||||
echo -e '[tool.pyright]\nvenv = ".venv"\nvenvPath = "."' >> pyproject.toml
|
||||
fi
|
||||
|
||||
# Überprüfen, ob das Verzeichnis .venv existiert, wenn nicht, erstelle ein virtuelles Python-Umfeld
|
||||
|
@ -16,4 +16,4 @@ fi
|
|||
# Überprüfen, ob requirements.txt nicht leer ist, wenn nicht, installiere die Anforderungen
|
||||
if [ -s "requirements.txt" ]; then
|
||||
./.venv/bin/pip install -r requirements.txt
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
"use_new_terminal": false
|
||||
},
|
||||
{
|
||||
"label": "Setup Python Project (pyrightconfig.json)",
|
||||
"label": "Setup Python Project (pyproject.toml)",
|
||||
"command": "bash",
|
||||
"args": ["~/.config/zed/initPython.sh"],
|
||||
"use_new_terminal": false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue