From 8430dfbb55e2f86f9f8d77a5bd93a8c2ceb89337 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sun, 15 Feb 2026 15:20:33 +0000 Subject: [PATCH] Fix the `uv format` test failures caused by ruff release (#18019) ## Summary This fixes the snapshots and then sets the date to today so that another ruff release this month won't cause a problem again. ## Test Plan Test was re-ran. --- crates/uv-test/src/lib.rs | 2 +- crates/uv/tests/it/format.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/uv-test/src/lib.rs b/crates/uv-test/src/lib.rs index cf370d921..46f55c60d 100755 --- a/crates/uv-test/src/lib.rs +++ b/crates/uv-test/src/lib.rs @@ -1288,7 +1288,7 @@ impl TestContext { command.arg("format"); self.add_shared_options(&mut command, false); // Override to a more recent date for ruff version resolution - command.env(EnvVars::UV_EXCLUDE_NEWER, "2026-03-01T00:00:00Z"); + command.env(EnvVars::UV_EXCLUDE_NEWER, "2026-02-15T00:00:00Z"); command } diff --git a/crates/uv/tests/it/format.rs b/crates/uv/tests/it/format.rs index 5d65dd5e2..d72e5d049 100644 --- a/crates/uv/tests/it/format.rs +++ b/crates/uv/tests/it/format.rs @@ -517,7 +517,7 @@ fn format_version_constraints() -> Result<()> { ----- stderr ----- warning: `uv format` is experimental and may change without warning. Pass `--preview-features format` to disable this warning. - ruff 0.15.0 + ruff 0.15.1 "); Ok(()) @@ -550,7 +550,7 @@ fn format_version_latest() -> Result<()> { ----- stderr ----- warning: `uv format` is experimental and may change without warning. Pass `--preview-features format` to disable this warning. - ruff 0.15.0 + ruff 0.15.1 "); Ok(())