Skip to content

Commit dbc46e3

Browse files
feat(devcontainer): add Codespaces config for zero-config onboarding
Camila Maia pattern — a contributor clicks "Code -> Codespaces" and gets a working environment without debugging Python / libCST on their own machine. Setup: - Python 3.11 base image (matches CI) - postCreate: pip install -e '.[python]' so the libCST-based scanner is available alongside the core package; plus pytest, ruff, pre-commit; plus pre-commit install so commits get formatted. - VS Code extensions: Python + Ruff. No heavy weights, no Streamlit or Jupyter — sql-sop is a CLI / library, the container reflects that. After a successful Codespace boot a contributor can: - run ``pytest -q`` (78 tests) - run ``sql-sop check tests/fixtures/errors.sql`` to see the tool fire on a bad fixture - edit a rule, save, and pre-commit will ruff-format on commit
1 parent 9056502 commit dbc46e3

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "sql-sop",
3+
"image": "mcr.microsoft.com/devcontainers/python:3.11",
4+
"postCreateCommand": "pip install --upgrade pip && pip install -e '.[python]' && pip install pytest ruff pre-commit && pre-commit install || true",
5+
"customizations": {
6+
"vscode": {
7+
"extensions": [
8+
"ms-python.python",
9+
"charliermarsh.ruff"
10+
],
11+
"settings": {
12+
"python.defaultInterpreterPath": "/usr/local/bin/python",
13+
"[python]": {
14+
"editor.formatOnSave": false
15+
}
16+
}
17+
}
18+
},
19+
"remoteUser": "vscode"
20+
}

0 commit comments

Comments
 (0)