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.
This commit is contained in:
Tomasz Kramkowski
2026-02-15 15:20:33 +00:00
committed by GitHub
parent 8c8a90306b
commit 8430dfbb55
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
}
+2 -2
View File
@@ -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(())