Przeglądaj źródła

pre-commit: tool to keep thing tidy [skip ci]

Victor Seva 2 lat temu
rodzic
commit
f781dc9ce9
1 zmienionych plików z 13 dodań i 0 usunięć
  1. 13 0
      .pre-commit-config.yaml

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

@@ -0,0 +1,13 @@
+repos:
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v2.3.0
+    hooks:
+      - id: check-yaml
+      - id: check-xml
+      - id: end-of-file-fixer
+      - id: trailing-whitespace
+      - id: check-merge-conflict
+  - repo: https://github.com/pre-commit/mirrors-clang-format
+    rev: v15.0.7
+    hooks:
+    - id: clang-format