Commit 00a055f
chore: requirements.txt for Snyk (works around uv.lock unsupported)
Snyk's Python plugin doesn't yet support uv.lock files (snyk-python-plugin
#251 still open as of 2026-05-11), so the snyk PR check errors when
poetry.lock disappears in the migration. Generate requirements.txt from
uv.lock as a snyk-readable manifest until upstream support lands.
- requirements.txt: generated via `uv export --format requirements-txt
--no-dev --no-emit-project`. Includes hashes; ~954 lines.
- .pre-commit-config.yaml: add a local hook that auto-regenerates the file
whenever uv.lock or pyproject.toml changes. Uses `language: system` so
it runs against whatever uv is on PATH.
- CLAUDE.md: document the workaround and the upstream issue, with a note
to remove this once Snyk ships uv support.
Tradeoff: one auto-generated file in the repo with a clear "don't edit
by hand" mechanism. Better than carrying poetry.lock alongside uv.lock
(which would defeat the migration's purpose) or making snyk a non-blocking
check (security regression).
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 34fe90b commit 00a055f
3 files changed
Lines changed: 968 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
| |||
0 commit comments