utils/sql_drills
Krzysztof kuhy Rudnicki c29d0989dd Clear inherited CI debt in the Python libs
main was red on file length, the noqa ban, codespell, test naming and
dart coverage; this change touches every one of those jobs.

- sickdays: set_enabled is keyword-only; the panel test splits in two
  with shared probes; the sync wire format moves to DOCS-sync.md.
- earned_time: _focus types the project as a Protocol, no noqa; the
  gate-maturity section moves to DOCS-maturity.md; codespell knows the
  `checkin` event name.
- focus_project: real fixes for every noqa (local-day clocks, typed
  fakes, logged broad catches, split helpers). The public API that
  focus-guard calls keeps its signatures; their PLR0913 exemption
  lives in pyproject with the reason, not in noqa.
- crdt-sync: pylint gets nacl/argon2, docstrings, and allows the
  public E2eLayout.of; _blobs moves to _e2e_blobs.py.
- crdt_sync_dart: Argon2Params and the header errors move to
  e2e_params.dart (re-exported); tests split and reach 100% lines.
- sql_drills: test helpers get a leading underscore, as in earned_time.

Todo: fda71ed1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 08:58:01 +01:00
..
scripts Add sql_drills engine package 2026-11-02 13:53:39 +01:00
sql_drills Clear inherited CI debt in the Python libs 2026-11-16 08:58:01 +01:00
.pre-commit-config.yaml Clear inherited CI debt in the Python libs 2026-11-16 08:58:01 +01:00
install.sh Add sql_drills engine package 2026-11-02 13:53:39 +01:00
pyproject.toml sql_drills: no root shell for learner SQL 2026-11-02 16:05:59 +01:00
README.md sql_drills: no root shell for learner SQL 2026-11-02 16:05:59 +01:00
requirements.txt Bump deps; pnpm 12.21.0; sickdays 0.5.5 2026-11-16 08:58:01 +01:00

SQL drill engine (MySQL 8.0.33 + PostgreSQL 18.6, one container each): import sql_drills as sd. Drills: sd.run(id, sql, dialect). LeetCode examples: sd.run_problem(slug_or_statement, sql, dialect). Data: $SQL_DRILLS_DATA. Install: ./install.sh. Root password: random, ~/.config/sql_drills/root_password (0600); learner SQL runs as a per-run user, client commands (\!) refused.