Dev setup Windows-first + LF-pin shell scripts

PowerShell-first onboarding (most devs are on VS Code/Windows), a
Windows variant for the VS Code check task, and a .gitattributes rule
keeping shell scripts LF so Windows checkouts do not corrupt them.
This commit is contained in:
2026-07-17 15:01:50 -04:00
parent 6aaed7de42
commit e23a0fae2b
2 changed files with 7 additions and 0 deletions

4
.gitattributes vendored
View File

@@ -1 +1,5 @@
.env filter=git-crypt diff=git-crypt
# Shell scripts must stay LF so Git Bash on Windows can run them
*.sh text eol=lf
scripts/check-naming-and-style.sh text eol=lf

3
.vscode/tasks.json vendored
View File

@@ -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": []
}