From 5668760564d4c6293df67aa5e1030cdeda4076bf Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Thu, 25 May 2017 18:53:14 +0300
Subject: [PATCH] - Added Bandit test. - Added pre-commit test to Tox, made
 test parallel in TravisCI. - Removed support for Python 3.2 (not supported by
 botocore anymore). - Bumped minor version.

---
 .pre-commit-config.yaml |  3 ++-
 .travis.yml             | 10 ++++++++--
 README.rst              |  4 ++--
 VERSION                 |  2 +-
 tox.ini                 | 12 +++++++++++-
 5 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3a2aa9e..db64e81 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,5 +1,5 @@
 -   repo: git://github.com/pre-commit/pre-commit-hooks
-    sha: cf550fcab3f12015f8676b8278b30e1a5bc10e70
+    sha: v0.7.1
     hooks:
     -   id: check-added-large-files
     -   id: check-json
@@ -7,3 +7,4 @@
     -   id: check-yaml
     -   id: check-merge-conflict
     -   id: flake8
+    -   id: check-symlinks
diff --git a/.travis.yml b/.travis.yml
index 1f592ce..be0c4ea 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,6 @@
 ---
 language: python
-python: ["2.7", "3.2", "3.3", "3.4", "3.5"]
+python: ["2.7", "3.3", "3.4", "3.5", "3.6"]
 dist: trusty
 sudo: false
 cache:
@@ -9,9 +9,15 @@ matrix:
   include:
     - python: "3.5"
       env: TOXENV=docs
+    - python: "2.7"
+      env: TOXENV=pre-commit
+    - python: "3.5"
+      env: TOXENV=pre-commit
+    - python: "3.5"
+      env: TOXENV=bandit
 
 install:
-    - pip install tox-travis
+    - pip install tox-travis | cat
 
 script:
   - tox
diff --git a/README.rst b/README.rst
index 95bba1e..8d3f0cc 100644
--- a/README.rst
+++ b/README.rst
@@ -42,14 +42,14 @@ file).
 Testing
 -------
 
-Tests require Python 2.7, Python 3.2 or later and Tox and are run by running
+Tests require Python 2.7, Python 3.3 or later and Tox and are run by running
 :code:`tox`. Also, Travis CI is used to test on multiple Python versions for
 every push.
 
 Release
 -------
 
-Releases require Python 2.7 or Python 3.2 or later and Tox. To release a new
+Releases require Python 2.7 or Python 3.3 or later and Tox. To release a new
 version bump the version in the :code:`VERSION` file and run :code:`tox -e
 release`.
 
diff --git a/VERSION b/VERSION
index a2268e2..60a2d3e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.3.1
\ No newline at end of file
+0.4.0
\ No newline at end of file
diff --git a/tox.ini b/tox.ini
index 9dd89c8..412bd05 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,10 +4,10 @@ envlist = py{2,3}
 [travis]
 python =
     2.7: py2
-    3.2: py3
     3.3: py3
     3.4: py3
     3.5: py3
+    3.6: py3
 
 [testenv]
 basepython =
@@ -37,3 +37,13 @@ commands =
     sh -c 'git tag "$(cat VERSION)" && git push --tags'
     python setup.py bdist_wheel
     twine upload --skip-existing dist/*.whl
+
+[testenv:bandit]
+basepython = python
+deps = bandit
+commands = bandit --recursive ./ --exclude .tox/,build/,dist/,eb-prune.egg-info
+
+[testenv:pre-commit]
+basepython = python
+deps = pre-commit
+commands = pre-commit run --all-files
-- 
GitLab