update to zed settings

This commit is contained in:
ZennDev1337 2024-08-05 05:55:07 +02:00
parent 23b43d848c
commit ff6d0206e3
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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