From 0eb520bd7c7da213cabd1940eda4bd484e754c2a Mon Sep 17 00:00:00 2001 From: "Chaozhe.Chen" Date: Mon, 22 Feb 2016 15:21:31 +0800 Subject: [PATCH] Add `exclude` and `show-source` in flake8 check Add `exclude` to accelerate local pep8 check by skipping such directories as .tox and .idea. And add `show-source` to point out the error in the output. refer to: http://flake8.readthedocs.org/en/latest/config.html?highlight=exclude Change-Id: Ib8c6dd848fd1f9def3ca476dba0f90dc0cc1e613 --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 769abd9c..3f531620 100644 --- a/tox.ini +++ b/tox.ini @@ -36,6 +36,8 @@ commands = nosetests -v ./astara/test/functional/ [flake8] ignore = E133,E226,E241,E242,E731 +exclude=.venv,.git,.tox,dist,doc,.idea +show-source = True [testenv:genconfig] commands = {toxinidir}/tools/generate_config_file_samples.sh