Merge "pep8 to install only required packages"
This commit is contained in:
commit
b281da6704
5
tools/pip-install-single-req.sh
Executable file
5
tools/pip-install-single-req.sh
Executable 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/#.*//'`
|
6
tox.ini
6
tox.ini
@ -12,7 +12,10 @@ deps = -r{toxinidir}/requirements.txt
|
||||
commands = python manage.py test {posargs} --settings=congress_dashboard.test.settings
|
||||
|
||||
[testenv:pep8]
|
||||
commands = flake8 {posargs}
|
||||
usedevelop = False
|
||||
deps =
|
||||
commands = {toxinidir}/tools/pip-install-single-req.sh test-requirements.txt hacking
|
||||
flake8
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
@ -33,6 +36,7 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
|
||||
|
||||
[flake8]
|
||||
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,node_modules
|
||||
show-source = True
|
||||
|
||||
[hacking]
|
||||
import_exceptions = collections.defaultdict,
|
||||
|
Loading…
Reference in New Issue
Block a user