summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorValeriy Ponomaryov <kiparis.kh@gmail.com>2018-01-12 16:48:29 +0200
committerValerii Ponomarov <vponomar@redhat.com>2018-01-12 17:35:10 +0200
commit89c91bf031ceab518b8f7de3232b78532b9b2ccc (patch)
tree1d2bb3cb523cf25ceb072c3e4b7e6813e0e23f1a /tox.ini
parent993cc40e8e79e9a09114286d018660c98a336ac0 (diff)
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
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini20
1 files changed, 20 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..460066d
--- /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