From 4ac7a14654213bc3a74b92a4da8f4a3f35fc8bca Mon Sep 17 00:00:00 2001
From: Pavel Kirilin <win10@list.ru>
Date: Thu, 30 Jul 2020 15:15:25 +0400
Subject: [PATCH] Updated git hooks.

Signed-off-by: Pavel Kirilin <win10@list.ru>
---
 .pre-commit-config.yaml | 11 +++++++----
 .pre-commit-hooks.yaml  |  6 ------
 hooks/deps_sort.sh      |  0
 pacman.deps             | 28 ++++++++++++++--------------
 4 files changed, 21 insertions(+), 24 deletions(-)
 delete mode 100644 .pre-commit-hooks.yaml
 mode change 100644 => 100755 hooks/deps_sort.sh

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cf3953c..aa8da9f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,7 +1,10 @@
 # See https://pre-commit.com for more information
 # See https://pre-commit.com/hooks.html for more hooks
 repos:
--   repo: https://github.com/s3rius/dwm-autoconfig
-    rev: master
-    hooks:
-    -   id: sort_deps
+- repo: local
+  hooks:
+  - id: sort_deps
+    name: Deps sort
+    language: script
+    entry: hooks/deps_sort.sh
+    files: .deps$
diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml
deleted file mode 100644
index a1595c7..0000000
--- a/.pre-commit-hooks.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-- id: sort_deps
-  name: Deps sorting
-  description: sort entries of a deps files.
-  language: script
-  entry: hooks/deps_sort.sh
-  files: \.deps$
diff --git a/hooks/deps_sort.sh b/hooks/deps_sort.sh
old mode 100644
new mode 100755
diff --git a/pacman.deps b/pacman.deps
index f5637e5..23ec2f6 100644
--- a/pacman.deps
+++ b/pacman.deps
@@ -1,22 +1,22 @@
+alsa-utils
 asp
 base-devel
-zsh
+bat
 dmenu
-xorg
-xterm
-xdg-utils
-xorg-xclock
-nitrogen
-alsa-utils
-ranger
 firefox
-pygobject-devel
 gobject-introspection
+lsd
+nitrogen
 opendesktop-fonts
-ttf-font-awesome
+picom
+playerctl
+pygobject-devel
+ranger
 ttf-fira-code
+ttf-font-awesome
 ttf-ubuntu-font-family
-playerctl
-picom
-lsd
-bat
+xdg-utils
+xorg
+xorg-xclock
+xterm
+zsh
-- 
GitLab