Fix ignore pep8 errors and a typo

Change-Id: I6dfcf0114e53edd7e541b98e9f67ed90ed0e89bb
This commit is contained in:
Yang Li 2016-01-20 17:36:09 +08:00
parent fdd62e22ca
commit 9e5755ccac
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ class ResourcePlugin(object):
def _model_query(self, context):
query = context.session.query(self.delegate.model)
# NOTE(jkoelker) non-admin queries are scoped to their tenant_id
# NOTE(jkoelker) non-admin queries are scoped to their tenant_id
if not context.is_admin and hasattr(self.delegate.model, 'tenant_id'):
query = query.filter(
self.delegate.model.tenant_id == context.tenant_id)

View File

@ -29,7 +29,7 @@ setenv = NOSE_WITH_COVERAGE=1
commands = {posargs}
[flake8]
ignore = E123,E133,E226,E241,E242,E731,F821
ignore = E133,E226,E241,E242,E731,F821
[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html