Skip to content

Commit c96b975

Browse files
committed
pre-commit
1 parent b937879 commit c96b975

File tree

7 files changed

+16
-22
lines changed

7 files changed

+16
-22
lines changed

examples/python/osqp_solve_dense_qp.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import proxsuite
22
import numpy as np
3-
import scipy.sparse as spa
43
from util import generate_mixed_qp
54

65

include/proxsuite/helpers/tl-optional.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ template<class T, class Ret, class... Args>
169169
struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...)> : std::true_type
170170
{};
171171
template<class T, class Ret, class... Args>
172-
struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) &>
172+
struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...)&>
173173
: std::true_type
174174
{};
175175
template<class T, class Ret, class... Args>

include/proxsuite/linalg/veg/internal/macros.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@
278278
using NothrowTestExpr = ::proxsuite::linalg::veg::meta::false_type; \
279279
}; \
280280
template<__VEG_PP_REMOVE_PAREN1(Tpl)> \
281-
struct test_sfinae_## \
282-
Name<::proxsuite::linalg::veg::meta::void_t<decltype((Expr))>, \
283-
__VEG_PP_REMOVE_PAREN1(TplNames)> \
281+
struct test_sfinae_##Name< \
282+
::proxsuite::linalg::veg::meta::void_t<decltype((Expr))>, \
283+
__VEG_PP_REMOVE_PAREN1(TplNames)> \
284284
{ \
285285
using ExprType = decltype((Expr)); \
286286
using TestExpr = \
@@ -1249,7 +1249,7 @@ extract_chars_expr(LiteralType /*unused*/) -> typename ExtractCharsImplExpr<
12491249
(sizeof(__VEG_PP_CAT(u8, __VEG_PP_STRINGIZE(MemberPtr))) - 1),
12501250

12511251
#define __VEG_IMPL_STRUCT_SETUP(PClass, ...) /* NOLINT */ \
1252-
void _veg_lib_name_test() && noexcept \
1252+
void _veg_lib_name_test()&& noexcept \
12531253
{ \
12541254
static_assert( \
12551255
VEG_CONCEPT(same<decltype(this), __VEG_PP_REMOVE_PAREN(PClass)*>), \

include/proxsuite/linalg/veg/internal/prologue.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@
5555
~Class() = default; \
5656
Class(Class&&) = default; \
5757
explicit Class(Class const&) = default; \
58-
auto operator=(Class&&) &->Class& = default; \
59-
auto operator=(Class const&) &->Class& = default
58+
auto operator=(Class&&)&->Class& = default; \
59+
auto operator=(Class const&)&->Class& = default
6060

6161
#define VEG_NO_COPY(Class) \
6262
~Class() = default; \
6363
Class(Class&&) = default; \
6464
Class(Class const&) = delete; \
65-
auto operator=(Class&&) &->Class& = default; \
66-
auto operator=(Class const&) &->Class& = delete
65+
auto operator=(Class&&)&->Class& = default; \
66+
auto operator=(Class const&)&->Class& = delete
6767

6868
#ifdef VEG_WITH_CXX14_SUPPORT
6969
#define VEG_CPP14(...) __VA_ARGS__

test/doctest/doctest.hpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -1563,8 +1563,7 @@ namespace detail {
15631563
#endif // DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING
15641564
// clang-format on
15651565

1566-
struct DOCTEST_INTERFACE TestFailureException
1567-
{};
1566+
struct DOCTEST_INTERFACE TestFailureException{};
15681567

15691568
DOCTEST_INTERFACE bool
15701569
checkIfShouldThrow(assertType::Enum at);
@@ -2670,8 +2669,9 @@ registerReporter(const char* name, int priority, bool isReporter)
26702669

26712670
// for subcases
26722671
#define DOCTEST_SUBCASE(name) \
2673-
if (const doctest::detail::Subcase& DOCTEST_ANONYMOUS(DOCTEST_ANON_SUBCASE_) \
2674-
DOCTEST_UNUSED = doctest::detail::Subcase(name, __FILE__, __LINE__))
2672+
if (const doctest::detail::Subcase & \
2673+
DOCTEST_ANONYMOUS(DOCTEST_ANON_SUBCASE_) \
2674+
DOCTEST_UNUSED = doctest::detail::Subcase(name, __FILE__, __LINE__))
26752675

26762676
// for grouping tests in test suites by using code blocks
26772677
#define DOCTEST_TEST_SUITE_IMPL(decorators, ns_name) \
@@ -5446,8 +5446,7 @@ DOCTEST_CLANG_SUPPRESS_WARNING_POP
54465446
DOCTEST_GCC_SUPPRESS_WARNING_POP
54475447
DOCTEST_MSVC_SUPPRESS_WARNING_POP
54485448

5449-
Subcase::
5450-
operator bool() const
5449+
Subcase::operator bool() const
54515450
{
54525451
return m_entered;
54535452
}

test/src/osqp_dense_qp_solve.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ def test_initializing_with_None(self):
348348
A = None
349349
b = None
350350
C = None
351-
u = None
352-
l = None
351+
_u = None
352+
_l = None
353353

354354
results = proxsuite.osqp.dense.solve(
355355
H,

test/src/osqp_dense_qp_wrapper.py

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#
22
# Copyright (c) 2022-2023, INRIA
33
#
4-
import proxsuite
5-
import numpy as np
6-
import scipy.sparse as spa
7-
import unittest
84

95
# TODO test:
106
# Huge amount of tests -> do it once the previous ones are ok

0 commit comments

Comments
 (0)