浏览代码

fix(pre-commit): exclude checks for vendored dependencies

Ali Behjati 1 年之前
父节点
当前提交
4a638ebfd8
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      .pre-commit-config.yaml

+ 4 - 1
.pre-commit-config.yaml

@@ -3,9 +3,11 @@ repos:
     rev: v3.2.0
     hooks:
       - id: trailing-whitespace
+        exclude: target_chains/sui/vendor/
       - id: end-of-file-fixer
+        exclude: target_chains/sui/vendor/
       - id: check-added-large-files
-        exclude: package-lock.json
+        exclude: package-lock.json,target_chains/sui/vendor/
   # Hook to format many type of files in the repo
   # including solidity contracts.
   - repo: https://github.com/pre-commit/mirrors-prettier
@@ -15,6 +17,7 @@ repos:
         additional_dependencies:
           - "prettier@2.7.1"
           - "prettier-plugin-solidity@1.0.0-rc.1"
+        exclude: target_chains/sui/vendor/
   - repo: local
     hooks:
       # Hooks for the remote executor