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
This commit is contained in:
Chaozhe.Chen 2016-02-22 15:21:31 +08:00
parent 7a6b9193e6
commit 0eb520bd7c
1 changed files with 2 additions and 0 deletions

View File

@ -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