Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
- repo: git://github.com/pre-commit/pre-commit-hooks - repo: git://github.com/pre-commit/pre-commit-hooks
sha: cf550fcab3f12015f8676b8278b30e1a5bc10e70 sha: v0.7.1
hooks: hooks:
- id: check-added-large-files - id: check-added-large-files
- id: check-json - id: check-json
...@@ -7,3 +7,4 @@ ...@@ -7,3 +7,4 @@
- id: check-yaml - id: check-yaml
- id: check-merge-conflict - id: check-merge-conflict
- id: flake8 - id: flake8
- id: check-symlinks
--- ---
language: python 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 dist: trusty
sudo: false sudo: false
cache: cache:
...@@ -9,9 +9,15 @@ matrix: ...@@ -9,9 +9,15 @@ matrix:
include: include:
- python: "3.5" - python: "3.5"
env: TOXENV=docs env: TOXENV=docs
- python: "2.7"
env: TOXENV=pre-commit
- python: "3.5"
env: TOXENV=pre-commit
- python: "3.5"
env: TOXENV=bandit
install: install:
- pip install tox-travis - pip install tox-travis | cat
script: script:
- tox - tox
......
...@@ -42,14 +42,14 @@ file). ...@@ -42,14 +42,14 @@ file).
Testing 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 :code:`tox`. Also, Travis CI is used to test on multiple Python versions for
every push. every push.
Release 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 version bump the version in the :code:`VERSION` file and run :code:`tox -e
release`. release`.
......
0.3.1 0.4.0
\ No newline at end of file \ No newline at end of file
...@@ -4,10 +4,10 @@ envlist = py{2,3} ...@@ -4,10 +4,10 @@ envlist = py{2,3}
[travis] [travis]
python = python =
2.7: py2 2.7: py2
3.2: py3
3.3: py3 3.3: py3
3.4: py3 3.4: py3
3.5: py3 3.5: py3
3.6: py3
[testenv] [testenv]
basepython = basepython =
...@@ -37,3 +37,13 @@ commands = ...@@ -37,3 +37,13 @@ commands =
sh -c 'git tag "$(cat VERSION)" && git push --tags' sh -c 'git tag "$(cat VERSION)" && git push --tags'
python setup.py bdist_wheel python setup.py bdist_wheel
twine upload --skip-existing dist/*.whl 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment