Commit 1e79fda
committed
fix: strip non-SQL lines from alembic stdout before linting
Some repos emit JSON structured logs to stdout during env.py loading.
These get mixed into the alembic upgrade --sql output and cause squawk
syntax errors. Filter out lines starting with { or [ before passing
to squawk.1 parent e80ff29 commit 1e79fda
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
137 | 148 | | |
138 | 149 | | |
139 | 150 | | |
| |||
0 commit comments