Skip to content

Commit 5d80f6e

Browse files
committed
Update pre-commit hooks
1 parent 2b0bb62 commit 5d80f6e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ repos:
1313
# This brings in a portable version of clang-format.
1414
# See also: https://github.com/ssciwr/clang-format-wheel
1515
- repo: https://github.com/pre-commit/mirrors-clang-format
16-
rev: v18.1.8
16+
rev: v19.1.4
1717
hooks:
1818
- id: clang-format
1919
types_or: [c++, c]
2020

2121
# CMake linting and formatting
2222
- repo: https://github.com/BlankSpruce/gersemi
23-
rev: 0.15.1
23+
rev: 0.17.1
2424
hooks:
2525
- id: gersemi
2626
name: CMake linting
2727

2828
# Markdown linting
2929
# Config file: .markdownlint.yaml
3030
- repo: https://github.com/igorshubovych/markdownlint-cli
31-
rev: v0.42.0
31+
rev: v0.43.0
3232
hooks:
3333
- id: markdownlint
3434

tests/beman/inplace_vector/ref_impl.test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ int main() {
364364
CHECK(a.size() == std::size_t(10));
365365
CHECK(!a.empty());
366366
CHECK_THROWS(a.push_back(0), std::bad_alloc);
367-
CHECK((uintptr_t) nullptr == (uintptr_t)a.try_push_back(0));
367+
CHECK((uintptr_t)nullptr == (uintptr_t)a.try_push_back(0));
368368
}
369369

370370
{ // resize copyable
@@ -762,7 +762,7 @@ int main() {
762762
CHECK(c.front().getd() == 3.5);
763763
CHECK(c.back().geti() == 3);
764764
CHECK(c.back().getd() == 4.5);
765-
CHECK((uintptr_t) nullptr == (uintptr_t)c.try_emplace_back(2, 3.5));
765+
CHECK((uintptr_t)nullptr == (uintptr_t)c.try_emplace_back(2, 3.5));
766766
}
767767
{ // unchecked_emplace_back
768768
vector<non_copyable, 2> c;

0 commit comments

Comments
 (0)