Skip to content

Commit ac41dd3

Browse files
committed
fix invalid escape sequences in QPFunction docstring
- also enable ruff W605 to catch this
1 parent 8c95955 commit ac41dd3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

bindings/python/proxsuite/torch/qplayer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def QPFunction(
1818
omp_parallel=False,
1919
structural_feasibility=True,
2020
):
21-
"""!
21+
r"""!
2222
Solve a batch of Quadratic Programming (QP) problems.
2323
2424
This function solves QP problems of the form:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ configure-args = ["-DBUILD_TESTING:BOOL=OFF","-DBUILD_PYTHON_INTERFACE:BOOL=ON",
2525

2626
[tool.ruff.lint]
2727
ignore = [ "E741" ]
28+
extend-select = ["W605"]
2829
exclude = [ "cmake-module/*", "bindings/python/external/nanobind/*" ]

0 commit comments

Comments
 (0)