From 4d1081c1cf21a8ad4a23afbc5858359202efcfbc Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 1 Nov 2017 12:23:21 +0200
Subject: [PATCH] - More pre-commit hooks, cleaner config.

---
 .pre-commit-config.yaml | 13 +++++++++----
 .pythonstartup          |  1 +
 2 files changed, 10 insertions(+), 4 deletions(-)
 mode change 100644 => 100755 .pythonstartup

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8934cfb..5043b34 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,14 +1,19 @@
+---
+repos:
 -   repo: https://github.com/pre-commit/pre-commit-hooks
     sha: v1.1.1
     hooks:
     -   id: check-added-large-files
+    -   id: check-executables-have-shebangs
     -   id: check-merge-conflict
+    -   id: check-symlinks
+    -   id: detect-aws-credentials
+    -   id: detect-private-key
     -   id: flake8
-        files: \.pythonstartup|Documents/bin/vagrant-.*
 -   repo: https://www.shore.co.il/git/shell-pre-commit/
-    sha: v0.5.4
+    sha: v0.6.0
     hooks:
     -   id: shell-lint
-        files: bashrc|post-merge|profile|docker-|wifi-login|renew-certs|dma-clean|gen-ssh-config|dconf-load|install-git-hooks|pocketchip-battery|update-voltage|pipenv
+        exclude: &excluded_shellscripts \.bash_completion\.d/(docker_machine\.bash|fabric-completion.bash)|\.travis/travis\.sh
     -   id: shellcheck
-        files: bashrc|post-merge|profile|docker-|wifi-login|renew-certs|dma-clean|gen-ssh-config|dconf-load|install-git-hooks|pocketchip-battery|update-voltage|pipenv
+        exclude: *excluded_shellscripts
diff --git a/.pythonstartup b/.pythonstartup
old mode 100644
new mode 100755
index 70e0b6f..9f9a199
--- a/.pythonstartup
+++ b/.pythonstartup
@@ -1,2 +1,3 @@
+#!/usr/bin/env python
 from pprint import PrettyPrinter
 pprint = PrettyPrinter().pprint
-- 
GitLab