Ignore deps starting with uv when finding uv version (#492)

Fixes: #489
This commit is contained in:
Kevin Stillhammer authored and GitHub committed 2025-07-18 06:10:43 +00:00
1 parent 05273c154d
commit 7edac99f96
4 files changed
+15 -4

No files matched your search

@@ -1 +1,2 @@
uvicorn==0.35.0
uv==0.6.17
@@ -0,0 +1,10 @@
import { getUvVersionFromFile } from "../../src/version/resolve";
import { expect, test } from "@jest/globals";
test("ignores dependencies starting with uv", async () => {
const parsedVersion = getUvVersionFromFile(
"__tests__/fixtures/uv-in-requirements-txt-project/requirements.txt",
);
expect(parsedVersion).toBe("0.6.17");
});