changeset 414:7004867c436c

Add pre-commit
author zegervdv <zegervdv@me.com>
date Sun, 18 Jul 2021 10:05:02 +0200
parents 32f1aecb9d01
children 85832377f39e
files .chezmoiignore .pre-commit-config.yaml README.md dot_config/kitty/kitty.conf
diffstat 4 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.chezmoiignore	Sun Jul 18 09:49:12 2021 +0200
+++ b/.chezmoiignore	Sun Jul 18 10:05:02 2021 +0200
@@ -3,3 +3,4 @@
 *.rej
 stylua.toml
 scripts
+.pre-commit-config.yaml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.pre-commit-config.yaml	Sun Jul 18 10:05:02 2021 +0200
@@ -0,0 +1,16 @@
+repos:
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v4.0.1
+    hooks:
+      - id: check-yaml
+      - id: end-of-file-fixer
+      - id: trailing-whitespace
+
+  - repo: local
+    hooks:
+      - id: stylua
+        name: Format with stylua
+        description: Formats lua files
+        entry: stylua
+        language: system
+        types: [lua]
--- a/README.md	Sun Jul 18 09:49:12 2021 +0200
+++ b/README.md	Sun Jul 18 10:05:02 2021 +0200
@@ -13,4 +13,3 @@
 sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator ~/.local/kitty.app/bin/kitty 50
 sudo update-alternatives --config x-terminal-emulator
 ```
-
--- a/dot_config/kitty/kitty.conf	Sun Jul 18 09:49:12 2021 +0200
+++ b/dot_config/kitty/kitty.conf	Sun Jul 18 10:05:02 2021 +0200
@@ -4,7 +4,7 @@
 italic_font Iosevka Term Italic
 
 symbol_map U+F100-U+F2FF nonicon
-    
+
 cursor #eeeeee
 
 window_margin_width 4