Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Pin ruff to 0.15.16 for pytest_changed CI (#9870)

Shahmir Varqha36b47a5ad94f
diff --git a/marimo/_runtime/packages/utils.py b/marimo/_runtime/packages/utils.py
index 21807807bf..beaa3d247b 100644
--- a/marimo/_runtime/packages/utils.py
+++ b/marimo/_runtime/packages/utils.py
@@ -57,7 +57,7 @@ def marker_environment_for_platform(
"""
from packaging.markers import default_environment
- env = dict(default_environment())
+ env = {k: str(v) for k, v in default_environment().items()}
if sys_platform is not None:
env["sys_platform"] = sys_platform
return env
@@ -80,7 +80,7 @@ def requirement_applies(
env = (
dict(marker_environment)
if marker_environment is not None
- else dict(default_environment())
+ else {k: str(v) for k, v in default_environment().items()}
)
return Marker(marker_str).evaluate(env)
diff --git a/packages/pytest_changed/__init__.py b/packages/pytest_changed/__init__.py
index a51c7ca9fe..3bd8899267 100644
--- a/packages/pytest_changed/__init__.py
+++ b/packages/pytest_changed/__init__.py
@@ -117,7 +117,8 @@ def get_dependency_graph(
"uvx",
# uv notes `analyze graph` is experimental,
# so we fix the ruff version for now
+ # Follow project's UV_EXCLUDE_NEWER setting to avoid resolution issues
"analyze",
"graph",
"--detect-string-imports",