From 1cd73e9814b3296dda7f55bf498124fa506594fb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:13:11 -0700 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#338) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](https://github.com/codespell-project/codespell/compare/v2.2.6...v2.3.0) - [github.com/pre-commit/mirrors-clang-format: v18.1.5 → v19.1.0](https://github.com/pre-commit/mirrors-clang-format/compare/v18.1.5...v19.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update spelling whitelist * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Philip Top --- .pre-commit-config.yaml | 4 ++-- config/spelling_ignorelines.txt | 1 - config/spelling_whitelist.txt | 1 + units/unit_definitions.hpp | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 28bc1432..423f8704 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: hooks: - id: remove-tabs - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell exclude: ^(test/|units/|docs/reference/) @@ -47,7 +47,7 @@ repos: - id: end-of-file-fixer - id: check-shebang-scripts-are-executable - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v18.1.5 + rev: v19.1.0 hooks: - id: clang-format types_or: [c++, c] diff --git a/config/spelling_ignorelines.txt b/config/spelling_ignorelines.txt index ed9db7cd..e69de29b 100644 --- a/config/spelling_ignorelines.txt +++ b/config/spelling_ignorelines.txt @@ -1 +0,0 @@ -ThirdParty diff --git a/config/spelling_whitelist.txt b/config/spelling_whitelist.txt index b25a4b3e..3da7584b 100644 --- a/config/spelling_whitelist.txt +++ b/config/spelling_whitelist.txt @@ -1 +1,2 @@ smoot +ThirdParty diff --git a/units/unit_definitions.hpp b/units/unit_definitions.hpp index 676e9354..e90cf311 100644 --- a/units/unit_definitions.hpp +++ b/units/unit_definitions.hpp @@ -852,8 +852,8 @@ namespace precise { return ((static_cast(val >> bit) & 0x1U) > 0U) ? 1 : 0; } - constexpr auto - bShiftu(std::uint16_t val, std::uint32_t bit) -> unsigned int + constexpr auto bShiftu(std::uint16_t val, std::uint32_t bit) + -> unsigned int { return ((static_cast(val >> bit) & 0x1U) > 0U) ? 1U : 0U;