From 1b9f56fde2f4c4f122cf49e173f550bee7f03401 Mon Sep 17 00:00:00 2001 From: Douglas Mendizabal Date: Thu, 29 Aug 2013 15:57:24 -0500 Subject: [PATCH] Update tox to run pep8 by default. --- tools/hacking.sh | 3 +++ tox.ini | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 tools/hacking.sh diff --git a/tools/hacking.sh b/tools/hacking.sh new file mode 100755 index 00000000..967902bb --- /dev/null +++ b/tools/hacking.sh @@ -0,0 +1,3 @@ +#!/bin/bash +flake8 barbicanclient | tee flake8.log +exit ${PIPESTATUS[0]} diff --git a/tox.ini b/tox.ini index e61c7277..2fd33e05 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py26, py27 +envlist = py26, py27, pep8 [testenv] setenv = VIRTUAL_ENV={envdir} @@ -18,7 +18,7 @@ deps = -r{toxinidir}/tools/pip-requires -r{toxinidir}/tools/test-requires [testenv:pep8] -commands = flake8 +commands = {toxinidir}/tools/hacking.sh [testenv:venv] commands = {posargs}