diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cd33ee2..08fea0b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -2,7 +2,7 @@
 # See https://pre-commit.com/hooks.html for more hooks
 repos:
 - repo: https://github.com/pre-commit/pre-commit-hooks
-  rev: v3.2.0
+  rev: v5.0.0
   hooks:
   -   id: trailing-whitespace
   -   id: end-of-file-fixer
@@ -12,7 +12,7 @@ repos:
       args: [ --fix=lf ]
 - repo: https://github.com/astral-sh/ruff-pre-commit
   # Ruff version.
-  rev: v0.6.9
+  rev: v0.8.0
   hooks:
     # Run the linter.
     - id: ruff