Skip to content

Commit

Permalink
Rewrite blackbox function docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic committed Dec 20, 2024
1 parent b1d8373 commit f32207d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/Backtesting/custom_analytical.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@


def blackbox(df: pd.DataFrame, /) -> pd.DataFrame:
"""Calculate the sum of squares."""
"""A callable whose internal logic is unknown to the algorithm."""
return (df[[p.name for p in parameters]] ** 2).sum(axis=1).to_frame(target.name)


Expand Down
4 changes: 3 additions & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ line-length = 88 # Maximum line length
# Error regarding too long lines
"E501",
# Missing module docstrings
"D100"
"D100",
# In the documentation, imperative mood can be a bit too restrictive
"D401",
]
"baybe/utils/__init__.py" = ["F401","F403"]
"baybe/strategies/__init__.py" = ["F401"]
Expand Down

0 comments on commit f32207d

Please sign in to comment.