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;