Add notes on pep8 and pyflakes
Change-Id: I8223269d7d56a0e3bffd2f0820d8fee706d418f0
This commit is contained in:
parent
8820b4214e
commit
5a46a5bbed
32
tox.ini
32
tox.ini
@ -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]
|
||||
minversion = 1.6
|
||||
skipsdist = True
|
||||
envlist = pep8, py27
|
||||
envlist = pyflakes
|
||||
|
||||
[testenv]
|
||||
# Set STATSD env variables so that statsd code paths are tested.
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
usedevelop = True
|
||||
install_command = pip install {opts} {packages}
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
|
||||
[tox:jenkins]
|
||||
downloadcache = ~/cache/pip
|
||||
|
||||
[testenv:pep8]
|
||||
[testenv:pyflakes]
|
||||
commands = flake8
|
||||
deps = flake8
|
||||
|
||||
[testenv:cover]
|
||||
commands =
|
||||
python setup.py testr --coverage
|
||||
|
||||
[testenv:docs]
|
||||
commands = python setup.py build_sphinx
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
[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
|
||||
exclude = .venv,.tox,dist,doc,build,*.egg
|
||||
max-line-length = 172
|
||||
|
Loading…
x
Reference in New Issue
Block a user