diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f9b5d0259d0ed7228c44448e9f2130dffc38923b..8c5be3a597032bb7014bf7bf12b6d436c2bc3db9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -2,7 +2,7 @@ ci:
   autoupdate_branch: devel
 repos:
 - repo: https://github.com/astral-sh/ruff-pre-commit
-  rev: v0.6.3
+  rev: v0.6.9
   hooks:
   - id: ruff
     args:
@@ -19,13 +19,14 @@ repos:
   - id: toml-sort-fix
     exclude: poetry.lock
 - repo: https://github.com/pre-commit/mirrors-clang-format
-  rev: v18.1.8
+  rev: v19.1.1
   hooks:
   - id: clang-format
     args:
     - --style=Google
+    exclude: python/test/sandbox/test.ipynb
 - repo: https://github.com/pre-commit/pre-commit-hooks
-  rev: v4.6.0
+  rev: v5.0.0
   hooks:
   - id: check-added-large-files
   - id: check-ast
diff --git a/include/ndcurves/bernstein.h b/include/ndcurves/bernstein.h
index fcab1df14718ff9ad72f0426ef58abe55eb103d5..c8fedafe4957922d8b1cd36578403e11a2544e09 100644
--- a/include/ndcurves/bernstein.h
+++ b/include/ndcurves/bernstein.h
@@ -49,7 +49,7 @@ struct Bern {
     if (!(u >= 0. && u <= 1.)) {
       throw std::invalid_argument("u needs to be betwen 0 and 1.");
     }
-    return bin_m_i_ * (pow(u, i_)) * pow((1 - u), m_minus_i);
+    return bin_m_i_ * (pow(u, i_))*pow((1 - u), m_minus_i);
   }
 
   /// \brief Check if actual Bernstein polynomial and other are approximately