Commit 2ab08be
fix: replace inner prek call with direct ruff in generate_from_specs
The rebuild-from-specs hook was failing in CI because the inner
prek call (used to format generated files) did not properly set up
hook environments in the CI context, leaving generated schema files
with single-line repr() output that exceeded line length limits.
Replace the inner prek call with direct ruff check/format calls on
the generated Python files. Add ruff as a direct dev dependency so
it's available in the venv. This is simpler and more reliable than
depending on prek hook environments being properly initialized.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 31a1761 commit 2ab08be
3 files changed
Lines changed: 31 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments