Dev setup: Windows-first (most devs are on VS Code / Windows)
PowerShell commands lead, bash equivalents in comments: venv Activate.ps1 + execution-policy note, copy/$env:, a PowerShell plugin-enable loop, and how the bash naming hook runs under Git Bash (plus the pre-commit hook catching it automatically). The VS Code Check task gets a Windows variant (venv\Scripts, bash for the .sh). Pin shell scripts to LF in .gitattributes so a Windows checkout does not CRLF-corrupt them into 'bad interpreter' failures.
This commit is contained in:
3
.vscode/tasks.json
vendored
3
.vscode/tasks.json
vendored
@@ -36,6 +36,9 @@
|
||||
"label": "Check: naming + tests + build",
|
||||
"type": "shell",
|
||||
"command": "bash scripts/check-naming-and-style.sh && venv/bin/python -m pytest tests/ -q && cd frontend && npx vitest run && npm run build",
|
||||
"windows": {
|
||||
"command": "bash scripts/check-naming-and-style.sh && venv\\Scripts\\python -m pytest tests/ -q && cd frontend && npx vitest run && npm run build"
|
||||
},
|
||||
"options": { "cwd": "${workspaceFolder}" },
|
||||
"problemMatcher": []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user