diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 6352dfc534c96dd6ea1c8bc7c061f4745b199881..49337196592599a11942ecd8fc24a4230c5a196d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -2,20 +2,20 @@
 # See https://pre-commit.com/hooks.html for more hooks
 repos:
   - repo: https://github.com/timothycrosley/isort
-    rev: 5.10.1
+    rev: 5.12.0
     hooks:
       - id: isort
         args: [--settings-path, "pyproject.toml"]
   - repo: https://github.com/psf/black
-    rev: 22.3.0
+    rev: 23.1.0
     hooks:
       - id: black
-  - repo: https://gitlab.com/pycqa/flake8
-    rev: 3.9.2
+  - repo: https://github.com/pycqa/flake8
+    rev: 6.0.0
     hooks:
       - id: flake8
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.2.0
+    rev: v4.4.0
     hooks:
       - id: check-ast
       - id: check-case-conflict
diff --git a/src/bob/fusion/base/script/fuse.py b/src/bob/fusion/base/script/fuse.py
index 76131141b8e12fbc693f682591850b1e3cdd34a3..5ac6998ce3c5deb2b0b09093d1449bd1d2304021 100644
--- a/src/bob/fusion/base/script/fuse.py
+++ b/src/bob/fusion/base/script/fuse.py
@@ -33,7 +33,7 @@ def write_info(
     model_file,
     skip_check,
     force,
-    **kwargs
+    **kwargs,
 ):
     info = """
 scores: %s
@@ -95,7 +95,6 @@ def routine_fusion(
     min_file_size=1000,
     do_training=True,
 ):
-
     # load the model if model_file exists and no training data was provided
     if os.path.exists(model_file) and not do_training:
         logger.info("Loading the algorithm from %s", model_file)
@@ -240,7 +239,7 @@ def fuse(
     model_file,
     skip_check,
     force,
-    **kwargs
+    **kwargs,
 ):
     """Score fusion
 
@@ -288,7 +287,7 @@ def fuse(
         model_file,
         skip_check,
         force,
-        **kwargs
+        **kwargs,
     )
 
     """Do the actual fusion."""
diff --git a/src/bob/fusion/base/tools/plotting.py b/src/bob/fusion/base/tools/plotting.py
index c61c59ad1858a06d99835218d87c5e10530df17c..3294c05018f9ad1d9e330c578a6d87bddecd1d12 100644
--- a/src/bob/fusion/base/tools/plotting.py
+++ b/src/bob/fusion/base/tools/plotting.py
@@ -8,7 +8,6 @@ from bob.learn.em import KMeansMachine
 
 
 def grouping(scores, gformat="random", npoints=500, seed=None, **kwargs):
-
     scores = np.asarray(scores)
     if scores.size == 0:
         return scores