From 2e1ee3be4677cff9683cff38c71c227613de9c95 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Tue, 24 Jan 2017 16:32:06 +0200
Subject: [PATCH] - Cleanup (removed files not in use, tests). - Added flake8
 test for setup.py.

---
 .pre-commit-config.yaml | 13 ++-----------
 .travis.yml             |  3 +++
 ansible-syntax-check    |  6 ------
 requirements.txt        |  3 ---
 4 files changed, 5 insertions(+), 20 deletions(-)
 delete mode 100755 ansible-syntax-check
 delete mode 100644 requirements.txt

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 740fbfa..fcfe839 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -4,18 +4,9 @@
     -   id: check-added-large-files
     -   id: check-yaml
     -   id: check-merge-conflict
+    -   id: flake8
 -   repo: https://www.shore.co.il/git/shell-pre-commit/
     sha: v0.1.0
     hooks:
     -   id: shell-lint
-        files: ansible-syntax-check|ansible-vault-check
--   repo: local
-    hooks:
-    -   id: piprot
-        name: piprot
-        description: Check up-to-date Python requirements
-        language: system
-        entry: piprot
-        args: ['--quiet', '--outdated']
-        files: requirements.txt
-        always_run: true
+        files: ansible-vault-check
diff --git a/.travis.yml b/.travis.yml
index bd44fad..b48a9a4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,6 +9,9 @@ cache:
   - directories:
       - $HOME/.pre-commit
 
+install:
+  - pip install pre-commit
+
 script:
   - pre-commit run --all-files
 
diff --git a/ansible-syntax-check b/ansible-syntax-check
deleted file mode 100755
index e933723..0000000
--- a/ansible-syntax-check
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-set -eu
-for playbook in $@
-do
-    ansible-playbook --inventory=localhost, --syntax-check "$playbook"
-done
diff --git a/requirements.txt b/requirements.txt
deleted file mode 100644
index d700ebe..0000000
--- a/requirements.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-ansible==2.2.1.0
-pre-commit==0.11.0
-piprot==0.9.7
-- 
GitLab