Skip to content

Commit

Permalink
disabled ruff formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
chiamp committed Nov 13, 2023
1 parent 91b31a8 commit 86fa50c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 34 deletions.
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
32 changes: 0 additions & 32 deletions docs/api_reference/flax.cursor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86fa50c

Please sign in to comment.