Переглянути джерело

chore: update pre-commit to use pnpm fix:format

Co-Authored-By: Jayant Krishnamurthy <jayant@dourolabs.xyz>
Devin AI 9 місяців тому
батько
коміт
b5643a5f4c
1 змінених файлів з 6 додано та 9 видалено
  1. 6 9
      .pre-commit-config.yaml

+ 6 - 9
.pre-commit-config.yaml

@@ -23,16 +23,13 @@ repos:
             target_chains/sui/vendor/|
             patches/
           )
-  # Hook to format many type of files in the repo
-  # including solidity contracts.
-  - repo: https://github.com/pre-commit/mirrors-prettier
-    rev: "v2.7.1"
+  - repo: local
     hooks:
-      - id: prettier
-        additional_dependencies:
-          - "prettier@2.7.1"
-          - "prettier-plugin-solidity@1.0.0-rc.1"
-        exclude: target_chains/sui/vendor/
+      - id: pnpm-fix-format
+        name: Format files using pnpm fix:format
+        entry: pnpm turbo fix:format
+        language: system
+        pass_filenames: false
   - repo: local
     hooks:
       # Hooks for the remote executor