Skip to content

Commit 17c8951

Browse files
authored
Merge pull request #391 from Simple-Robotics/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents bb4c2ad + f6f7c14 commit 17c8951

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ ci:
55
submodules: true
66
repos:
77
- repo: https://github.com/BlankSpruce/gersemi
8-
rev: 0.19.0
8+
rev: 0.19.2
99
hooks:
1010
- id: gersemi
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.8.6
12+
rev: v0.11.4
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: v19.1.7
20+
rev: v20.1.0
2121
hooks:
2222
- id: clang-format
2323
args:

examples/python/qplayer_sudoku.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def train(args, epoch, model, trainX, trainY, optimizer):
128128
optimizer.step()
129129
err = computeErr(preds.data) / batchSz
130130
print(
131-
f"Epoch: {epoch} [{i+batchSz}/{trainX.size(0)} ({float(i+batchSz)/trainX.size(0)*100:.0f}%)]\tLoss: {loss.item():.4f} Err: {err:.4f} Time: {time.time()-start:.2f}s"
131+
f"Epoch: {epoch} [{i + batchSz}/{trainX.size(0)} ({float(i + batchSz) / trainX.size(0) * 100:.0f}%)]\tLoss: {loss.item():.4f} Err: {err:.4f} Time: {time.time() - start:.2f}s"
132132
)
133133

134134

include/proxsuite/helpers/tl-optional.hpp

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
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_##Name< \
282-
::proxsuite::linalg::veg::meta::void_t<decltype((Expr))>, \
283-
__VEG_PP_REMOVE_PAREN1(TplNames)> \
281+
struct test_sfinae_## \
282+
Name<::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

Lines changed: 4 additions & 4 deletions
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

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

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

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

26702671
// for subcases
26712672
#define DOCTEST_SUBCASE(name) \
2672-
if (const doctest::detail::Subcase & \
2673-
DOCTEST_ANONYMOUS(DOCTEST_ANON_SUBCASE_) \
2674-
DOCTEST_UNUSED = doctest::detail::Subcase(name, __FILE__, __LINE__))
2673+
if (const doctest::detail::Subcase& 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,7 +5446,8 @@ DOCTEST_CLANG_SUPPRESS_WARNING_POP
54465446
DOCTEST_GCC_SUPPRESS_WARNING_POP
54475447
DOCTEST_MSVC_SUPPRESS_WARNING_POP
54485448

5449-
Subcase::operator bool() const
5449+
Subcase::
5450+
operator bool() const
54505451
{
54515452
return m_entered;
54525453
}

0 commit comments

Comments
 (0)