From 89c91bf031ceab518b8f7de3232b78532b9b2ccc Mon Sep 17 00:00:00 2001 From: Valeriy Ponomaryov Date: Fri, 12 Jan 2018 16:48:29 +0200 Subject: Add possibility to run 'pep8' checks Steps to be performed to run 'pep8' checks in local venv: 1) Install 'tox' package first: $ pip install tox 2a) Run all the tests (currently, it is only pep8 checks): $ tox 2b) Run only 'pep8' checks: $ tox -e pep8 Change-Id: I7afc55bbab5bcbeb2920c3439259da2707ff9a04 --- tox.ini | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tox.ini (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..460066d9 --- /dev/null +++ b/tox.ini @@ -0,0 +1,20 @@ +[tox] +minversion = 2.0 +skipsdist = True +envlist = pep8 + +[testenv] +basepython = python2.7 +setenv = VIRTUAL_ENV={envdir} +whitelist_externals = find +commands = find . -type f -name "*.py[c|o]" -delete + +[testenv:pep8] +deps = -r{toxinidir}/test-requirements.txt +commands = flake8 {posargs} + +[testenv:venv] +commands = {posargs} + +[flake8] +exclude = .git,.tox,.venv,*egg,docs,examples,templates -- cgit