浏览代码

pre-commit support

Victor Seva 1 年之前
父节点
当前提交
9da5286151
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16 0
      .pre-commit-config.yaml

+ 16 - 0
.pre-commit-config.yaml

@@ -0,0 +1,16 @@
+---
+# See https://pre-commit.com for more information
+# See https://pre-commit.com/hooks.html for more hooks
+repos:
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v4.5.0
+    hooks:
+      - id: trailing-whitespace
+      - id: end-of-file-fixer
+      - id: check-merge-conflict
+      - id: mixed-line-ending
+      - id: check-added-large-files
+  - repo: https://github.com/DavidAnson/markdownlint-cli2
+    rev: v0.12.1
+    hooks:
+    - id: markdownlint-cli2