Commit dbc46e3
committed
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 commit1 parent 9056502 commit dbc46e3
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments