diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 585b4f04d..987d86cd9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,12 +1,12 @@
 repos:
 - repo: https://github.com/astral-sh/ruff-pre-commit
-  rev: v0.3.2
+  rev: v0.4.3
   hooks:
-  - id: ruff-format
-    exclude: ^git/ext/
   - id: ruff
     args: ["--fix"]
     exclude: ^git/ext/
+  - id: ruff-format
+    exclude: ^git/ext/
 
 - repo: https://github.com/shellcheck-py/shellcheck-py
   rev: v0.9.0.6