Skip to content

Commit af4bf14

Browse files
TonyPythoneerclaude
andcommitted
chore(zed): enrich editor settings and add task palette
Mirror jen-lab .zed structure for py+django: - settings.json: file_scan_exclusions for py cache/.venv/staticfiles, terminal env (PYTHONUNBUFFERED, FORCE_COLOR), Python inlay_hints + line_length 100, Markdown soft-wrap - tasks.json: wrap Makefile targets (up/down/logs/shell/test/smoke/check/fix/migrate/clean) for Zed task palette; long-running tasks open new terminal Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 91fae93 commit af4bf14

2 files changed

Lines changed: 146 additions & 5 deletions

File tree

.zed/settings.json

Lines changed: 67 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,87 @@
11
{
2+
"format_on_save": "on",
23
"languages": {
34
"Python": {
5+
"tab_size": 4,
6+
"hard_tabs": false,
7+
"preferred_line_length": 100,
48
"language_servers": ["pyrefly", "ruff", "!pyright", "!basedpyright"],
59
"format_on_save": "on",
610
"formatter": [
711
{ "code_actions": { "source.organizeImports.ruff": true, "source.fixAll.ruff": true } },
812
{ "language_server": { "name": "ruff" } }
913
],
14+
"inlay_hints": {
15+
"enabled": true,
16+
"show_parameter_hints": false,
17+
"show_other_hints": true,
18+
"show_type_hints": true
19+
}
1020
},
21+
"JSON": {
22+
"tab_size": 2,
23+
"hard_tabs": false
24+
},
25+
"Markdown": {
26+
"format_on_save": "off",
27+
"soft_wrap": "editor_width"
28+
},
29+
"HTML": {
30+
"tab_size": 2,
31+
"hard_tabs": false
32+
}
1133
},
1234
"lsp": {
1335
"pyrefly": {
1436
"binary": {
1537
"path": ".venv/bin/pyrefly",
16-
"arguments": ["lsp"],
17-
},
38+
"arguments": ["lsp"]
39+
}
1840
},
1941
"ruff": {
2042
"settings": {
21-
"interpreter": [".venv/bin/python"],
22-
},
23-
},
43+
"interpreter": [".venv/bin/python"]
44+
}
45+
}
46+
},
47+
"file_types": {
48+
"JSONC": [".zed/*.json"]
2449
},
50+
"file_scan_exclusions": [
51+
"**/.git",
52+
"**/.svn",
53+
"**/.hg",
54+
"**/.venv",
55+
"**/.venv*",
56+
"**/__pycache__",
57+
"**/.ruff_cache",
58+
"**/.pytest_cache",
59+
"**/.mypy_cache",
60+
"**/htmlcov",
61+
"**/.coverage",
62+
"**/staticfiles",
63+
"**/media",
64+
"**/dist",
65+
"**/build",
66+
"**/*.egg-info",
67+
"**/uv.lock",
68+
"**/node_modules"
69+
],
70+
"project_panel": {
71+
"auto_reveal_entries": true,
72+
"folder_icons": true
73+
},
74+
"search": {
75+
"regex": false,
76+
"case_sensitive": false,
77+
"whole_word": false
78+
},
79+
"terminal": {
80+
"working_directory": "current_project_directory",
81+
"env": {
82+
"PYTHONUNBUFFERED": "1",
83+
"FORCE_COLOR": "1"
84+
},
85+
"shell": "system"
86+
}
2587
}

.zed/tasks.json

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
[
2+
{
3+
"label": "dev: up (full stack)",
4+
"command": "make up",
5+
"use_new_terminal": true,
6+
"allow_concurrent_runs": false,
7+
"reveal": "always"
8+
},
9+
{
10+
"label": "dev: up-infra (db+redis+minio+jaeger)",
11+
"command": "make up-infra",
12+
"use_new_terminal": true,
13+
"allow_concurrent_runs": false,
14+
"reveal": "always"
15+
},
16+
{
17+
"label": "dev: down",
18+
"command": "make down",
19+
"reveal": "always"
20+
},
21+
{
22+
"label": "logs: app (web+worker)",
23+
"command": "make logs-app",
24+
"use_new_terminal": true,
25+
"reveal": "always"
26+
},
27+
{
28+
"label": "logs: infra",
29+
"command": "make logs-infra",
30+
"use_new_terminal": true,
31+
"reveal": "always"
32+
},
33+
{
34+
"label": "shell: django",
35+
"command": "make shell",
36+
"use_new_terminal": true,
37+
"reveal": "always"
38+
},
39+
{
40+
"label": "test: pytest",
41+
"command": "make test",
42+
"reveal": "always"
43+
},
44+
{
45+
"label": "test: smoke (docker stack)",
46+
"command": "make smoke",
47+
"reveal": "always"
48+
},
49+
{
50+
"label": "check: ruff + pyrefly",
51+
"command": "make check",
52+
"reveal": "always"
53+
},
54+
{
55+
"label": "fix: ruff lint + format",
56+
"command": "make fix",
57+
"reveal": "always"
58+
},
59+
{
60+
"label": "migrate",
61+
"command": "make migrate",
62+
"reveal": "always"
63+
},
64+
{
65+
"label": "clean: db",
66+
"command": "make clean-db",
67+
"reveal": "always"
68+
},
69+
{
70+
"label": "clean: bucket",
71+
"command": "make clean-bucket",
72+
"reveal": "always"
73+
},
74+
{
75+
"label": "clean: all (db + bucket)",
76+
"command": "make clean-all",
77+
"reveal": "always"
78+
}
79+
]

0 commit comments

Comments
 (0)