diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f29fd92a880ccda4158f91a3f93f75232d7c80b5..ab5e59139cfd1472f11cd25cf2d7f1fde3fe1933 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
 repos:
   - repo: https://github.com/astral-sh/ruff-pre-commit
-    rev: v0.6.1
+    rev: v0.6.2
     hooks:
       - id: ruff
         args:
diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt
index 6bd2fbbc145bba8500e16071172c76e125e3e902..0c8d2b3796ba14d404b05a51164acd901200697a 100644
--- a/requirements_test_pre_commit.txt
+++ b/requirements_test_pre_commit.txt
@@ -1,5 +1,5 @@
 # Automatically generated from .pre-commit-config.yaml by gen_requirements_all.py, do not edit
 
 codespell==2.3.0
-ruff==0.6.1
+ruff==0.6.2
 yamllint==1.35.1