sqb check
Runs Python checks in isolation. Checks validate the output of tasks, assets, and loaders. For SQL relation validation, usesqb audit instead.
Usage
Flags
| Flag | Description |
|---|---|
--select, -s | Select checks to run (by name, check:, tag:, or graph expansion) |
--exclude | Exclude checks from the selection |
--no-sql-validation | Skip compile-time SQL syntax validation |
--json | Print check results as JSON |
--json-output | Write check results JSON to a file path |
--vars | Override project variables |
sqb build to run tasks and assets.
Examples
Output
Checks report PASS, FAIL, or WARN per check. A failingerror-severity check exits non-zero; warn-severity failures are reported without failing the command.
Results are written to target/run/checks/python_checks.json.
Relationship to build
sqb build runs relevant Python checks by default after the tasks, assets, and loaders they depend on have run. sqb build --no-audits skips checks alongside audits. sqb check runs only checks, on demand.
