]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🔧 Add local Ruff to pre-commit
authorSebastián Ramírez <tiangolo@gmail.com>
Thu, 15 Aug 2024 00:59:51 +0000 (19:59 -0500)
committerSebastián Ramírez <tiangolo@gmail.com>
Thu, 15 Aug 2024 00:59:51 +0000 (19:59 -0500)
.pre-commit-config.yaml

index c3391aa06c0dea6869d25a9a4376a6b9bfc03f8f..6ccc7d367a1d1610f2029ac8c6620e578621fd29 100644 (file)
@@ -22,11 +22,11 @@ repos:
     -   id: ruff-format
 -   repo: local
     hooks:
-    -   id: echo
-        name: echo
-        entry: echo
+    -   id: ruff
+        name: ruff
+        entry: ruff check --fix
         language: system
-        types: [markdown]
+        types: [python]
 ci:
     autofix_commit_msg: ðŸŽ¨ [pre-commit.ci] Auto format from pre-commit.com hooks
     autoupdate_commit_msg: â¬† [pre-commit.ci] pre-commit autoupdate