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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
chore(ruff): require explicit local datetime defaults (#10948)
Shahmir Varqhad8801c653f2d
diff --git a/marimo/_plugins/ui/_impl/dates.py b/marimo/_plugins/ui/_impl/dates.pyindex 05f3bd0693..0cdcff19ff 100644--- a/marimo/_plugins/ui/_impl/dates.py+++ b/marimo/_plugins/ui/_impl/dates.py@@ -254,7 +254,8 @@ class datetime(UIElement[str | None, dt.datetime | None]):if value is None:if start is None and stop is None:- value = dt.datetime.today()+ # HTML datetime-local values intentionally use local naïve time.+ value = dt.datetime.today() # noqa: DTZ002elif start is not None:value = startelse:diff --git a/pyproject.toml b/pyproject.tomlindex a4e74deb32..55ebb7a185 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -377,7 +377,6 @@ ignore = ["UP007", # Use `X | Y` for type annotations"DTZ012", # `date.fromtimestamp()` called without `tzinfo`"DTZ901", # `datetime.min` / `datetime.max` used- "DTZ002", # `datetime.today()` called without tz"D421", # Property docstring should not start with a verb (preview rule)# Restored to Ruff's default rule set in 0.16.6; enable incrementally