diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7bb4121fd20252cd89eb1672894bfc8da69844fa..4badf4ceeba996c80b83b3e0cd893461033c483b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -2,17 +2,17 @@
 # See https://pre-commit.com/hooks.html for more hooks
 repos:
   - repo: https://github.com/timothycrosley/isort
-    rev: 5.8.0
+    rev: 5.10.1
     hooks:
       - id: isort
         args: [--settings-path, "pyproject.toml"]
   - repo: https://github.com/psf/black
-    rev: 21.7b0
+    rev: 22.3.0
     hooks:
       - id: black
         exclude: bob/devtools/templates/setup.py
   - repo: https://gitlab.com/pycqa/flake8
-    rev: 3.9.2
+    rev: 4.0.1
     hooks:
       - id: flake8
         exclude: |
@@ -21,7 +21,7 @@ repos:
                   deps/bob-devel/run_test.py
               )$
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.0.1
+    rev: v4.1.0
     hooks:
       - id: check-ast
         exclude: bob/devtools/templates/setup.py
diff --git a/doc/conf.py b/doc/conf.py
index e2d7899a429ca3d866194add0379c009e0affe68..c9fe9127598d1b5bd97ebd8d01a782a85760caf9 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -74,8 +74,8 @@ source_suffix = ".rst"
 master_doc = "index"
 
 # General information about the project.
-project = u"bob.devtools"
-copyright = u"%s, Idiap Research Institute" % time.strftime("%Y")
+project = "bob.devtools"
+copyright = "%s, Idiap Research Institute" % time.strftime("%Y")
 
 # Grab the setup entry
 distribution = pkg_resources.require(project)[0]
@@ -125,8 +125,8 @@ pygments_style = "sphinx"
 
 # Some variables which are useful for generated material
 project_variable = project.replace(".", "_")
-short_description = u"Tools for development and CI integration of Bob packages"
-owner = [u"Idiap Research Institute"]
+short_description = "Tools for development and CI integration of Bob packages"
+owner = ["Idiap Research Institute"]
 
 
 # -- Options for HTML output ---------------------------------------------------
@@ -204,7 +204,7 @@ html_favicon = "img/favicon.ico"
 # html_file_suffix = None
 
 # Output file base name for HTML help builder.
-htmlhelp_basename = project_variable + u"_doc"
+htmlhelp_basename = project_variable + "_doc"
 
 
 # -- Post configuration --------------------------------------------------------