Commit 56687605 authored by nimrod's avatar nimrod
Browse files

- 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.
parent efb55f83
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
-   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
+8 −2
Original line number Diff line number Diff line
---
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
+2 −2
Original line number Diff line number Diff line
@@ -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`.

+1 −1
Original line number Diff line number Diff line
0.3.1
 No newline at end of file
0.4.0
 No newline at end of file
+11 −1
Original line number Diff line number Diff line
@@ -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