Skip to content

Commit

Permalink
Migrate to flake8.
Browse files Browse the repository at this point in the history
Fixes bug 1172444.

Change-Id: Icd51f5d925d84dcec7df7c83ca43cd87bc1b090f
  • Loading branch information
emonty committed May 17, 2013
1 parent 108b32d commit 0493523
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
8 changes: 4 additions & 4 deletions tests/test_service_catalog.py
Expand Up @@ -69,10 +69,10 @@
"versionInfo": "https://compute.north.host/v1.1/",
"versionList": "https://compute.north.host/"}
],
"endpoints_links":[{
"rel":"next",
"href":"https://identity.north.host/v2.0/"
"endpoints?marker=2"
"endpoints_links": [{
"rel": "next",
"href": "https://identity.north.host/v2.0/"
"endpoints?marker=2"
}]
},
{
Expand Down
3 changes: 0 additions & 3 deletions tools/generate_authors.sh

This file was deleted.

7 changes: 6 additions & 1 deletion tools/test-requires
@@ -1,11 +1,16 @@
distribute>=0.6.24

# Install bounded pep8/pyflakes first, then let flake8 install
pep8==1.4.5
pyflakes==0.7.2
flake8==2.0
hacking>=0.5.3,<0.6

coverage
fixtures
keyring
mock
mox
pep8==1.3.3
pycrypto
sphinx>=1.1.2
testrepository>=0.0.13
Expand Down
8 changes: 7 additions & 1 deletion tox.ini
Expand Up @@ -14,7 +14,8 @@ deps = -r{toxinidir}/tools/pip-requires
commands = python setup.py testr --testr-args='{posargs}'

[testenv:pep8]
commands = pep8 --repeat --show-source --ignore=E711,E712,E125,E126 --exclude=.venv,.tox,dist,doc,*egg .
commands =
flake8

[testenv:venv]
commands = {posargs}
Expand All @@ -24,3 +25,8 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'

[tox:jenkins]
downloadcache = ~/cache/pip

[flake8]
ignore = E711,E712,E125,E126,F,H
show-source = True
exclude = .venv,.tox,dist,doc,*egg

0 comments on commit 0493523

Please sign in to comment.