Skip to content

Commit eb1bdaa

Browse files
authored
Merge pull request #424 from Simple-Robotics/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents ebedf8e + 7d253d8 commit eb1bdaa

File tree

8 files changed

+23
-30
lines changed

8 files changed

+23
-30
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ ci:
55
submodules: true
66
repos:
77
- repo: https://github.com/BlankSpruce/gersemi
8-
rev: 0.19.3
8+
rev: 0.22.3
99
hooks:
1010
- id: gersemi
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.12.2
12+
rev: v0.13.3
1313
hooks:
1414
- id: ruff
1515
args:
1616
- --fix
1717
- --exit-non-zero-on-fix
1818
- id: ruff-format
1919
- repo: https://github.com/pre-commit/mirrors-clang-format
20-
rev: v20.1.7
20+
rev: v21.1.2
2121
hooks:
2222
- id: clang-format
2323
args:
2424
- '--style={BasedOnStyle: Mozilla, SortIncludes: false}'
2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v5.0.0
26+
rev: v6.0.0
2727
hooks:
2828
- id: trailing-whitespace

include/proxsuite/helpers/tl-optional.hpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -980,8 +980,7 @@ class optional
980980
#ifndef TL_OPTIONAL_NO_CONSTRR
981981
template<class F>
982982
constexpr decltype(optional_map_impl(std::declval<const optional&&>(),
983-
std::declval<F&&>()))
984-
map(F&& f) const&&
983+
std::declval<F&&>())) map(F&& f) const&&
985984
{
986985
return optional_map_impl(std::move(*this), std::forward<F>(f));
987986
}
@@ -1044,8 +1043,8 @@ class optional
10441043
#ifndef TL_OPTIONAL_NO_CONSTRR
10451044
template<class F>
10461045
constexpr decltype(optional_map_impl(std::declval<const optional&&>(),
1047-
std::declval<F&&>()))
1048-
transform(F&& f) const&&
1046+
std::declval<F&&>())) transform(F&& f)
1047+
const&&
10491048
{
10501049
return optional_map_impl(std::move(*this), std::forward<F>(f));
10511050
}
@@ -2035,8 +2034,8 @@ class optional<T&>
20352034
#ifndef TL_OPTIONAL_NO_CONSTRR
20362035
template<class F>
20372036
constexpr decltype(detail::optional_map_impl(std::declval<const optional&&>(),
2038-
std::declval<F&&>()))
2039-
map(F&& f) const&&
2037+
std::declval<F&&>())) map(F&& f)
2038+
const&&
20402039
{
20412040
return detail::optional_map_impl(std::move(*this), std::forward<F>(f));
20422041
}
@@ -2101,9 +2100,9 @@ class optional<T&>
21012100

21022101
#ifndef TL_OPTIONAL_NO_CONSTRR
21032102
template<class F>
2104-
constexpr decltype(detail::optional_map_impl(std::declval<const optional&&>(),
2105-
std::declval<F&&>()))
2106-
transform(F&& f) const&&
2103+
constexpr decltype(detail::optional_map_impl(
2104+
std::declval<const optional&&>(),
2105+
std::declval<F&&>())) transform(F&& f) const&&
21072106
{
21082107
return detail::optional_map_impl(std::move(*this), std::forward<F>(f));
21092108
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ struct Dyn
9494
(typename R),
9595
requires(VEG_CONCEPT(index<R>) &&
9696
VEG_CONCEPT(index<typename _detail::binary_traits<Dyn, R>::Div>)),
97-
VEG_NODISCARD VEG_INLINE constexpr auto
98-
operator/,
97+
VEG_NODISCARD VEG_INLINE constexpr auto operator/,
9998
(b, R))
10099
const VEG_NOEXCEPT->typename _detail::binary_traits<Dyn, R>::Div
101100
{

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ struct Fix : _detail::idx::adl::IdxBase<Fix<N>>
142142
(typename R),
143143
requires(VEG_CONCEPT(index<R>) &&
144144
VEG_CONCEPT(index<typename _detail::binary_traits<Fix, R>::Div>)),
145-
VEG_NODISCARD VEG_INLINE constexpr auto
146-
operator/,
145+
VEG_NODISCARD VEG_INLINE constexpr auto operator/,
147146
(b, R))
148147
const VEG_NOEXCEPT->typename _detail::binary_traits<Fix, R>::Div
149148
{

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -587,10 +587,7 @@
587587
template<typename... Ts> \
588588
struct Name \
589589
{ \
590-
void apply(Ts&&... args) \
591-
{ \
592-
Fn(VEG_FWD(args)...); \
593-
} \
590+
void apply(Ts&&... args) { Fn(VEG_FWD(args)...); } \
594591
}; \
595592
template struct Name<__VA_ARGS__>
596593

include/proxsuite/linalg/veg/memory/placement.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ struct bit_cast
176176
requires((VEG_CONCEPT(trivially_copyable<From>) && //
177177
VEG_CONCEPT(trivially_copyable<To>) && //
178178
(sizeof(From) == sizeof(To)))),
179-
VEG_INLINE VEG_BITCAST_CONSTEXPR auto
180-
operator(),
179+
VEG_INLINE VEG_BITCAST_CONSTEXPR auto operator(),
181180
(from, From const&))
182181
const VEG_NOEXCEPT->To
183182
{

include/proxsuite/linalg/veg/type_traits/constructible.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ VEG_DEF_CONCEPT_FROM_BUILTIN_OR_TRAIT(typename T,
4848
VEG_CONCEPT_EXPR((typename T, typename... Ts),
4949
(T, Ts...),
5050
inplace_constructible,
51-
new(static_cast<void*>(nullptr)) T(VEG_DECLVAL(Ts&&)...),
51+
new (static_cast<void*>(nullptr)) T(VEG_DECLVAL(Ts&&)...),
5252
true);
5353

5454
VEG_DEF_CONCEPT_FROM_BUILTIN_OR_STD((typename T, typename... Ts),

test/doctest/doctest.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,8 @@ consume(const int*, int) noexcept
525525
#define DOCTEST_BREAK_INTO_DEBUGGER() __debugbreak()
526526
#elif defined(__MINGW32__)
527527
DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH("-Wredundant-decls")
528-
extern "C" __declspec(dllimport) void __stdcall DebugBreak();
528+
extern "C" __declspec(dllimport) void __stdcall
529+
DebugBreak();
529530
DOCTEST_GCC_SUPPRESS_WARNING_POP
530531
#define DOCTEST_BREAK_INTO_DEBUGGER() ::DebugBreak()
531532
#else // linux
@@ -1454,8 +1455,7 @@ struct DOCTEST_INTERFACE Approx
14541455
#ifdef DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS
14551456
template<typename T>
14561457
typename std::enable_if<std::is_constructible<double, T>::value,
1457-
Approx&>::type
1458-
epsilon(const T& newEpsilon)
1458+
Approx&>::type epsilon(const T& newEpsilon)
14591459
{
14601460
m_epsilon = static_cast<double>(newEpsilon);
14611461
return *this;
@@ -1467,8 +1467,7 @@ struct DOCTEST_INTERFACE Approx
14671467
#ifdef DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS
14681468
template<typename T>
14691469
typename std::enable_if<std::is_constructible<double, T>::value,
1470-
Approx&>::type
1471-
scale(const T& newScale)
1470+
Approx&>::type scale(const T& newScale)
14721471
{
14731472
m_scale = static_cast<double>(newScale);
14741473
return *this;
@@ -5046,7 +5045,8 @@ getContextOptions()
50465045

50475046
DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSH(4738)
50485047
template<typename F>
5049-
IsNaN<F>::operator bool() const
5048+
IsNaN<F>::
5049+
operator bool() const
50505050
{
50515051
return std::isnan(value) ^ flipped;
50525052
}

0 commit comments

Comments
 (0)