Browse Source

pre-commit support

Victor Seva 1 year ago
parent
commit
9da5286151
1 changed files with 16 additions and 0 deletions
  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