diff --git a/.config/zed/initPython.sh b/.config/zed/initPython.sh index 0e79bdd..6ffb57d 100644 --- a/.config/zed/initPython.sh +++ b/.config/zed/initPython.sh @@ -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 \ No newline at end of file +fi diff --git a/.config/zed/tasks.json b/.config/zed/tasks.json index 8a06266..0c43f7c 100644 --- a/.config/zed/tasks.json +++ b/.config/zed/tasks.json @@ -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