Skip to content

Commit e3a8b38

Browse files
committed
pre-commit-config : format all
1 parent fb1412a commit e3a8b38

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

bindings/python/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if(BUILD_CROCODDYL_COMPAT)
2929
endif()
3030

3131
function(make_bindings)
32-
python3_add_library(
32+
Python3_add_library(
3333
${PYLIB_NAME}
3434
MODULE
3535
WITH_SOABI

examples/ur5_croco.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@
111111
print(
112112
"Results {"
113113
f"""
114-
converged : {solver.isFeasible and solver.stop<solver.th_stop},
114+
converged : {solver.isFeasible and solver.stop < solver.th_stop},
115115
traj. cost : {solver.cost},
116116
merit.value: 0,
117-
prim_infeas: { sum([ sum(f**2) for f in solver.fs]) },
118-
dual_infeas: { np.max(np.array([ np.max(np.abs(q)) for q in solver.Qu])) }\n"""
117+
prim_infeas: {sum([sum(f**2) for f in solver.fs])},
118+
dual_infeas: {np.max(np.array([np.max(np.abs(q)) for q in solver.Qu]))}\n"""
119119
"}"
120120
)
121121

tests/python/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function(add_test_binding_lib test_name)
5353
CREATE_CTEST_BUILD_TESTS_TARGET()
5454

5555
set(target_name "${PROJECT_NAME}-${test_name}")
56-
python3_add_library(${target_name} MODULE "${test_name}.cpp")
56+
Python3_add_library(${target_name} MODULE "${test_name}.cpp")
5757
set_standard_output_directory(${target_name})
5858
target_link_libraries(${target_name} PUBLIC ${PYLIB_NAME})
5959
target_link_libraries(${target_name} PUBLIC eigenpy::eigenpy)

tests/python/test_integrators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ def exp_dyn_fd_check(dyn: dynamics.ExplicitDynamicsModel, x, u, eps: float):
182182
dyn.forward(x, u, data)
183183
dyn.dForward(x, u, data)
184184
atol = eps**0.5
185-
assert np.allclose(
186-
data.Jx, Jx_nd, atol=atol
187-
), f"Error value: {infNorm(data.Jx - Jx_nd)}"
185+
assert np.allclose(data.Jx, Jx_nd, atol=atol), (
186+
f"Error value: {infNorm(data.Jx - Jx_nd)}"
187+
)
188188
assert np.allclose(data.Ju, Ju_nd, atol=atol)
189189

190190

0 commit comments

Comments
 (0)