Add notes on pep8 and pyflakes

Change-Id: I8223269d7d56a0e3bffd2f0820d8fee706d418f0
This commit is contained in:
James E. Blair 2015-04-12 15:04:25 -04:00
parent 8820b4214e
commit 5a46a5bbed
1 changed files with 17 additions and 15 deletions

32
tox.ini
View File

@ -1,34 +1,36 @@
# The official style guide for Gertty is this:
#
# Try to match the existing code style and don't worry about it
# too much.
#
# Please don't submit changes to enable pep8 style checks or change
# the code to match pep8 guidelines. Gertty should be fun to work on
# and it shouldn't be hard to go with the flow and not worry too much
# about whitespace.
#
# Pyflakes on the other hand is a useful system that often catches
# real bugs and errors. Flake8 is used to invoke pyflakes because it
# supports the "NOQA" flag.
[tox] [tox]
minversion = 1.6 minversion = 1.6
skipsdist = True skipsdist = True
envlist = pep8, py27 envlist = pyflakes
[testenv] [testenv]
# Set STATSD env variables so that statsd code paths are tested.
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
usedevelop = True usedevelop = True
install_command = pip install {opts} {packages} install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt deps = -r{toxinidir}/requirements.txt
[tox:jenkins] [testenv:pyflakes]
downloadcache = ~/cache/pip
[testenv:pep8]
commands = flake8 commands = flake8
deps = flake8 deps = flake8
[testenv:cover]
commands =
python setup.py testr --coverage
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}
[flake8] [flake8]
ignore = E122,E123,E126,E127,E128,E129,E221,E225,E226,E231,E251,E261,E262,E265,E301,E302,E303,E711,E712,E721,F401,F403,F821,F841,W391 ignore = W,E,F401,F403,F821,F841
show-source = True show-source = True
exclude = .venv,.tox,dist,doc,build,*.egg exclude = .venv,.tox,dist,doc,build,*.egg
max-line-length = 172