From 86fa50c1bb80a9e96612ee786ad638ec082560ae Mon Sep 17 00:00:00 2001 From: Marcus Chiam Date: Mon, 13 Nov 2023 11:24:59 -0800 Subject: [PATCH] disabled ruff formatter --- .pre-commit-config.yaml | 5 +++-- docs/api_reference/flax.cursor.rst | 32 ------------------------------ 2 files changed, 3 insertions(+), 34 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 57decb15..20549413 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,5 +41,6 @@ repos: # Run the Ruff linter. - id: ruff args: [--fix, --exit-non-zero-on-fix] - # Run the Ruff formatter. - - id: ruff-format + # Disable Ruff formatter for now + # # Run the Ruff formatter. + # - id: ruff-format diff --git a/docs/api_reference/flax.cursor.rst b/docs/api_reference/flax.cursor.rst index fc564d8e..073f06ee 100644 --- a/docs/api_reference/flax.cursor.rst +++ b/docs/api_reference/flax.cursor.rst @@ -6,38 +6,6 @@ The Cursor API allows for mutability of pytrees. This API provides a more ergonomic solution to making partial-updates of deeply nested immutable data structures, compared to making many nested ``dataclasses.replace`` calls. -Regular:: - >>> a = 3 - >>> b = 4 - >>> a + b - >>> a + c - -.. doctest:: - :pyversion: > 3.10 - >>> a = 3 - >>> b = 4 - >>> a + b - >>> a + c - -.. doctest:: - >>> a = 3 - >>> b = 4 - >>> a + b - >>> a + c - -.. doctest:: - :pyversion: > 3.10 - a = 3 - b = 4 - a + b - a + c - -.. doctest:: - a = 3 - b = 4 - a + b - a + c - To illustrate, consider the example below:: from flax.cursor import cursor