From e23a0fae2b85b52f64ba80de1dfebb3b5cb791d5 Mon Sep 17 00:00:00 2001 From: Cam Proudlock Date: Fri, 17 Jul 2026 15:01:50 -0400 Subject: [PATCH] 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. --- .gitattributes | 4 ++++ .vscode/tasks.json | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.gitattributes b/.gitattributes index 91bd3db2..2be6e2e4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 955e81fb..da3f74b2 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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": [] }