Skip to content

Commit

Permalink
docs(ruff): Apply docstring-code-line-length = 88
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Jul 22, 2024
1 parent 18695af commit 4ccad22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 2 additions & 8 deletions altair/vegalite/v5/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,9 +1024,7 @@ def when(
& (alt.datum.StartDate == "2000-10-01")
)
when_verbose = alt.when(verbose_composition)
when_concise = alt.when(
Name="Name_1", Color="Green", Age=25, StartDate="2000-10-01"
)
when_concise = alt.when(Name="Name_1", Color="Green", Age=25, StartDate="2000-10-01")
"""
condition = _parse_when(predicate, *more_predicates, empty=empty, **constraints)
return When(condition)
Expand Down Expand Up @@ -2231,11 +2229,7 @@ def transform_aggregate(
so you can create the above transform like this:
>>> chart2 = alt.Chart().transform_aggregate(
... [
... alt.AggregatedFieldDef(
... field="Acceleration", op="mean", **{"as": "mean_acc"}
... )
... ],
... [alt.AggregatedFieldDef(field="Acceleration", op="mean", **{"as": "mean_acc"})],
... groupby=["Origin"],
... )
>>> chart2.transform == chart1.transform
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ line-ending = "lf"
# Enable once `D` are applied to non-generated code
# https://docs.astral.sh/ruff/formatter/#docstring-formatting
docstring-code-format = true
docstring-code-line-length = 88

[tool.pytest.ini_options]
# Pytest does not need to search these folders for test functions.
Expand Down

0 comments on commit 4ccad22

Please sign in to comment.