diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6883fce..8d8d00b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -11,10 +11,11 @@ repos: exclude: ^\.clang-(format|tidy)$ - id: check-added-large-files + # Clang-format for C++ # This brings in a portable version of clang-format. # See also: https://github.com/ssciwr/clang-format-wheel - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v20.1.7 + rev: v21.1.7 hooks: - id: clang-format types_or: [c++, c, json] @@ -22,15 +23,16 @@ repos: # CMake linting and formatting - repo: https://github.com/BlankSpruce/gersemi - rev: 0.20.1 + rev: 0.23.2 hooks: - id: gersemi name: CMake linting - # TODO: Markdown linting + # Markdown linting # Config file: .markdownlint.yaml + # Commented out to disable this by default. Uncomment to enable markdown linting. # - repo: https://github.com/igorshubovych/markdownlint-cli - # rev: v0.43.0 + # rev: v0.46.0 # hooks: # - id: markdownlint @@ -40,3 +42,5 @@ repos: - id: codespell files: ^.*\.(cmake|cpp|hpp|txt|md|json|in|yaml|yml)$ args: ["-w", "--ignore-words", ".codespellignore" ] + +exclude: 'infra/' diff --git a/CMakeLists.txt b/CMakeLists.txt index be86786..0e27b45 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # cmake-format: on -cmake_minimum_required(VERSION 3.25...3.31) +cmake_minimum_required(VERSION 3.25...4.2) project(beman_execution VERSION 0.0.1 LANGUAGES CXX) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 2f5c160..6a3b688 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -4,8 +4,7 @@ # cmake-format: on list( - APPEND - EXAMPLES + APPEND EXAMPLES stackoverflow inspect playground diff --git a/include/beman/execution/detail/transform_sender.hpp b/include/beman/execution/detail/transform_sender.hpp index 2a69659..d87f477 100644 --- a/include/beman/execution/detail/transform_sender.hpp +++ b/include/beman/execution/detail/transform_sender.hpp @@ -44,8 +44,8 @@ template ::std::remove_cvref_t(), ::std::declval()...))>> constexpr auto -transform_sender(Domain, Sender&& sender, const Env&...) noexcept(noexcept(::std::forward(sender))) - -> ::beman::execution::sender auto { + transform_sender(Domain, Sender&& sender, const Env&...) noexcept(noexcept(::std::forward(sender))) + -> ::beman::execution::sender auto { return sender; } @@ -99,10 +99,9 @@ template ::std::same_as<::std::remove_cvref_t, ::std::remove_cvref_t(), ::std::declval()...))>> -constexpr auto transform_sender(Domain, - Sender&& sender, - const Env&...) noexcept(noexcept(::std::forward(sender))) - -> ::beman::execution::sender decltype(auto) { +constexpr auto + transform_sender(Domain, Sender&& sender, const Env&...) noexcept(noexcept(::std::forward(sender))) + -> ::beman::execution::sender decltype(auto) { return ::std::forward(sender); } diff --git a/tests/beman/execution/CMakeLists.txt b/tests/beman/execution/CMakeLists.txt index 00b1683..9d2db0e 100644 --- a/tests/beman/execution/CMakeLists.txt +++ b/tests/beman/execution/CMakeLists.txt @@ -1,6 +1,6 @@ # src/beman/execution/tests/CMakeLists.txt # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -cmake_minimum_required(VERSION 3.25...3.31) +cmake_minimum_required(VERSION 3.25...4.2) project(beman_execution_tests LANGUAGES CXX) @@ -10,8 +10,7 @@ endif() list(APPEND todo exec-associate.test) list( - APPEND - execution_tests + APPEND execution_tests issue-174.test issue-186.test exec-scope-counting.test