python-template/.zed/settings.json
2025-09-20 18:13:00 +03:30

48 lines
1.3 KiB
JSON

{
// Project-local Zed settings (supports // comments)
"languages": {
"Python": {
// format-on-save for Python files
"format_on_save": "on",
// Use an external formatter: run isort (stdin) then black (stdin)
"formatter": {
"external": {
"command": "bash",
"arguments": [
"-lc",
"isort - --filename \"{buffer_path}\" --profile black | python -m black - --stdin-filename \"{buffer_path}\" --quiet"
]
}
},
// Tell Zed which language servers to enable in this project (optional)
// keep ruff in language servers if you want inline linting; pyright for types
"language_servers": [
"ruff",
"basedpyright"
]
}
},
"file_scan_exclusions": [
"**/.git",
"**/.svn",
"**/.hg",
"**/.jj",
"**/CVS",
"**/.DS_Store",
"**/Thumbs.db",
"**/.classpath",
"**/.settings",
// ---- add your project-specific folders to hide ----
"**/.vscode", // hide VS Code workspace config
"**/.zed", // hide Zed project folder (see WARNING below)
"**/.ruff_cache", // hide Ruff cache (correct name is .ruff_cache)
"**/.venv",
"**/__pycache__"
],
// If you want to still include some usually-ignored files, use file_scan_inclusions:
"file_scan_inclusions": [
".env*"
]
}