chore: add Zed project config, .editorconfig and shared pyright settings

- .zed/settings.json: ruff + basedpyright for Python (no format on save, the
  tree is not ruff-format clean), ESLint fixes then Prettier for the frontend,
  scan exclusions for caches and build outputs, .jwt_secret_key as private
- .zed/tasks.json: dev services, API, worker, frontend, pytest/vitest for the
  current file or test, linting, uv lock + requirements export
- .zed/debug.json: debugpy targets matching .vscode/launch.json
- .editorconfig: whitespace rules for every editor
- [tool.pyright] in pyproject.toml: venv, import root and excludes shared by
  pyright, basedpyright and Pylance
- .gitignore: track only the shared files under .zed/
- CONTRIBUTING: editor setup section; fix the stale ESLint config path
This commit is contained in:
arc53-machine committed 2026-09-21 16:10:31 +01:00
1 parent 1c1bc2538f
commit 53facb460c
7 files changed
+320 -1

No files matched your search

+22
View File
@@ -213,6 +213,28 @@ exclude = [
"docsgpt/vectors/",
]
# Shared by every editor's Python language server (pyright, basedpyright,
# Pylance) and by `pyright` on the command line. Imports are rooted at the
# checkout (`docsgpt.…`, `tests.…`), and the interpreter is the uv-managed
# `.venv`. "standard" keeps basedpyright from defaulting to its much stricter
# "recommended" mode; this is editor feedback, not a CI gate.
[tool.pyright]
pythonVersion = "3.12"
venvPath = "."
venv = ".venv"
extraPaths = ["."]
typeCheckingMode = "standard"
include = ["docsgpt", "application", "tests", "scripts"]
exclude = [
"**/__pycache__",
"**/node_modules",
".venv",
"docsgpt/static",
"docsgpt/indexes",
"docsgpt/inputs",
"docsgpt/vectors",
]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"