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.

chore: allow ruff ASYNC119 and align pre-commit ruff (#9866)

Kiran Gadhave38fba61d69f9
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 345ce7ec73..1655cd788f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,7 +39,7 @@ repos:
types: [python]
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.15.14
+ rev: v0.15.17
hooks:
# Run the linter
- id: ruff-check
diff --git a/pyproject.toml b/pyproject.toml
index ce09302a35..ec0b81a893 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -343,6 +343,7 @@ ignore = [
"D415", # First line should end with a period, question mark, or exclamation point
"FA102", # Use `from __future__ import annotations`
"PLR1711", # Useless returns. We use this currently to delimit the end of a cell.
+ "ASYNC119", # Yield in context manager in async generator; required for streaming generators (LLM/SSE), no clean refactor
# From new version of Ruff: We should fix these, but it raises too many errors
"BLE001", # Do not catch blind exception: `Exception`