diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5fc439b..b7a4841 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -8,7 +8,7 @@ repos:
     -   id: check-added-large-files
     -   id: check-json
 -   repo: https://github.com/charliermarsh/ruff-pre-commit
-    rev: 'v0.3.5'
+    rev: 'v0.4.7'
     hooks:
     -   id: ruff
         args: [--fix, --exit-non-zero-on-fix]
diff --git a/setup.py b/setup.py
index 246a4b5..1e1bd71 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@
             'pytest-cov>=5,<6',
             'pytest-asyncio==0.*',
             'pytest-xdist==3.*',
-            'ruff==0.3.5',
+            'ruff==0.4.7',
             'mypy==1.10.0',
             'types-pyserial==3.5.0.20240311'
         ],