Merge "pep8 to install only required packages"

This commit is contained in:
Jenkins 2017-05-24 03:54:56 +00:00 committed by Gerrit Code Review
commit b281da6704
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,5 @@
#!/bin/sh
# install specific package $2 according to
# version specified in requirements file $1
pip install -U `grep $2 $1 | sed 's/#.*//'`

View File

@ -12,7 +12,10 @@ deps = -r{toxinidir}/requirements.txt
commands = python manage.py test {posargs} --settings=congress_dashboard.test.settings commands = python manage.py test {posargs} --settings=congress_dashboard.test.settings
[testenv:pep8] [testenv:pep8]
commands = flake8 {posargs} usedevelop = False
deps =
commands = {toxinidir}/tools/pip-install-single-req.sh test-requirements.txt hacking
flake8
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}
@ -33,6 +36,7 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
[flake8] [flake8]
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,node_modules exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,node_modules
show-source = True
[hacking] [hacking]
import_exceptions = collections.defaultdict, import_exceptions = collections.defaultdict,