Skip to content

Commit b41caf5

Browse files
Auto-update pre-commit hooks (#230)
Co-authored-by: dietmarkuehl <1319703+dietmarkuehl@users.noreply.github.com>
1 parent c61b226 commit b41caf5

File tree

13 files changed

+34
-34
lines changed

13 files changed

+34
-34
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
# See also: https://github.com/ssciwr/clang-format-wheel
2525
# Config file: .clang-format
2626
- repo: https://github.com/pre-commit/mirrors-clang-format
27-
rev: v21.1.8
27+
rev: v22.1.0
2828
hooks:
2929
- id: clang-format
3030
types_or: [c++, c, json, javascript]
@@ -48,7 +48,7 @@ repos:
4848
# Config file: pyproject.toml
4949
# first Python sort imports
5050
- repo: https://github.com/pycqa/isort
51-
rev: 8.0.0
51+
rev: 8.0.1
5252
hooks:
5353
- id: isort
5454

include/beman/execution/detail/continues_on.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ auto get_domain_late(Sender&& sender, Env&&) {
104104
#else
105105
template <typename Env, typename... T>
106106
auto get_domain_late(
107-
::beman::execution::detail::basic_sender<::beman::execution::detail::continues_on_t, T...> const& sender, Env&&) {
107+
const ::beman::execution::detail::basic_sender<::beman::execution::detail::continues_on_t, T...>& sender, Env&&) {
108108
#endif
109109
auto scheduler{sender.template get<1>()};
110110
return ::beman::execution::detail::query_with_default(

include/beman/execution/detail/into_variant.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ struct into_variant_t {
8383
static consteval auto get() {
8484
using variant_type = ::beman::execution::value_types_of_t<Child, Env>;
8585
using value_types = ::std::conditional_t<
86-
::std::same_as<variant_type, ::beman::execution::detail::empty_variant>,
87-
::beman::execution::completion_signatures<>,
88-
::beman::execution::completion_signatures<::beman::execution::set_value_t(variant_type)>>;
86+
::std::same_as<variant_type, ::beman::execution::detail::empty_variant>,
87+
::beman::execution::completion_signatures<>,
88+
::beman::execution::completion_signatures<::beman::execution::set_value_t(variant_type)>>;
8989

9090
using error_types = ::beman::execution::error_types_of_t<Child, Env, make_error_types>;
9191
using stopped_types =

include/beman/execution/detail/let.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ struct let_t {
240240
using unique_t = ::beman::execution::detail::meta::unique<tuples_t>;
241241
using args_t = ::beman::execution::detail::meta::prepend<std::monostate, unique_t>;
242242
using ops_t = ::beman::execution::detail::meta::prepend<
243-
::std::monostate,
244-
::beman::execution::detail::meta::unique<::beman::execution::detail::meta::transform<
245-
to_state<fun_t, ::std::remove_cvref_t<Receiver>, env_t>::template trans,
246-
tuples_t>>>;
243+
::std::monostate,
244+
::beman::execution::detail::meta::unique<::beman::execution::detail::meta::transform<
245+
to_state<fun_t, ::std::remove_cvref_t<Receiver>, env_t>::template trans,
246+
tuples_t>>>;
247247

248248
struct state_t {
249249
fun_t fun;

include/beman/execution/detail/read_env.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ struct read_env_t {
5353
using set_value_type =
5454
::beman::execution::set_value_t(decltype(::std::declval<Query>()(::std::as_const(::std::declval<Env>()))));
5555
using set_error_type = ::beman::execution::set_error_t(::std::exception_ptr);
56-
using type = ::std::conditional_t<noexcept(::std::declval<Query>()(::std::declval<const Env&>())),
57-
::beman::execution::completion_signatures<set_value_type>,
58-
::beman::execution::completion_signatures<set_value_type, set_error_type>>;
56+
using type = ::std::conditional_t<noexcept(::std::declval<Query>()(::std::declval<const Env&>())),
57+
::beman::execution::completion_signatures<set_value_type>,
58+
::beman::execution::completion_signatures<set_value_type, set_error_type>>;
5959
};
6060

6161
public:

include/beman/execution/detail/schedule_from.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ struct schedule_from_t {
111111
template <typename... E>
112112
using as_set_error = ::beman::execution::completion_signatures<::beman::execution::set_error_t(E)...>;
113113
using type = ::beman::execution::detail::meta::combine<
114-
decltype(::beman::execution::get_completion_signatures(::std::declval<Sender>(), ::std::declval<Env>())),
115-
::beman::execution::error_types_of_t<scheduler_sender, Env, as_set_error>,
116-
::beman::execution::completion_signatures<::beman::execution::set_error_t(
114+
decltype(::beman::execution::get_completion_signatures(::std::declval<Sender>(), ::std::declval<Env>())),
115+
::beman::execution::error_types_of_t<scheduler_sender, Env, as_set_error>,
116+
::beman::execution::completion_signatures<::beman::execution::set_error_t(
117117
::std::exception_ptr)> //-dk:TODO this one should be deduced
118-
>;
118+
>;
119119
};
120120

121121
public:

include/beman/execution/detail/spawn_future.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ template <typename... Sigs>
9393
struct spawn_future_state_base<::beman::execution::completion_signatures<Sigs...>> {
9494
static constexpr bool has_non_throwing_args_copy = (true && ... && non_throwing_args_copy_v<Sigs>);
9595
using result_t = ::beman::execution::detail::meta::unique<
96-
::std::conditional_t<has_non_throwing_args_copy,
97-
::std::variant<::std::monostate, ::beman::execution::detail::as_tuple_t<Sigs>...>,
98-
::std::variant<::std::monostate,
99-
::std::tuple<::beman::execution::set_error_t, ::std::exception_ptr>,
100-
::beman::execution::detail::as_tuple_t<Sigs>...>>>;
96+
::std::conditional_t<has_non_throwing_args_copy,
97+
::std::variant<::std::monostate, ::beman::execution::detail::as_tuple_t<Sigs>...>,
98+
::std::variant<::std::monostate,
99+
::std::tuple<::beman::execution::set_error_t, ::std::exception_ptr>,
100+
::beman::execution::detail::as_tuple_t<Sigs>...>>>;
101101

102102
result_t result{};
103103
virtual ~spawn_future_state_base() = default;

tests/beman/execution/exec-associate.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ TEST(exec_associate) {
191191
{
192192
auto snd = test_std::just(true) | test_std::associate(expired_token{}) |
193193
test_std::upon_stopped([]() noexcept { return false; });
194-
auto r = test_std::sync_wait(std::move(snd));
194+
auto r = test_std::sync_wait(std::move(snd));
195195
ASSERT(r.has_value());
196196
ASSERT((std::get<0>(r.value()) == false));
197197
}

tests/beman/execution/exec-env.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ TEST(env) {
2121
[[maybe_unused]] test_std::env<> e0{};
2222
[[maybe_unused]] test_std::env e1{test_std::prop(test_std::get_allocator, std::allocator<int>{})};
2323
[[maybe_unused]] test_std::env e2{test_std::prop(test_std::get_allocator, std::allocator<int>{}),
24-
test_std::prop(test_std::get_stop_token, source.get_token())};
24+
test_std::prop(test_std::get_stop_token, source.get_token())};
2525
[[maybe_unused]] auto a1 = e1.query(test_std::get_allocator);
2626
[[maybe_unused]] auto a2 = e2.query(test_std::get_allocator);
2727
[[maybe_unused]] auto s2 = e2.query(test_std::get_stop_token);

tests/beman/execution/exec-stop-when.test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ TEST(exec_stop_when) {
126126
test_std::inplace_stop_source source2;
127127
completion comp{completion::none};
128128
auto state{test_std::connect(test_detail::stop_when(sender{}, source1.get_token()),
129-
receiver{source2.get_token(), comp})};
129+
receiver{source2.get_token(), comp})};
130130
ASSERT(comp == completion::none);
131131
test_std::start(state);
132132
ASSERT(comp == completion::none);
@@ -139,7 +139,7 @@ TEST(exec_stop_when) {
139139
test_std::inplace_stop_source source2;
140140
completion comp{completion::none};
141141
auto state{test_std::connect(test_detail::stop_when(sender{}, source1.get_token()),
142-
receiver{source2.get_token(), comp})};
142+
receiver{source2.get_token(), comp})};
143143
ASSERT(comp == completion::none);
144144
test_std::start(state);
145145
ASSERT(comp == completion::none);

0 commit comments

Comments
 (0)