Merge "Defaults are ignored with flake8"

This commit is contained in:
Jenkins 2016-02-26 01:59:47 +00:00 committed by Gerrit Code Review
commit 277c16c8b7
5 changed files with 10 additions and 6 deletions

View File

@ -30,7 +30,8 @@ class Timing(command.Lister):
for url, td in self.app.timing_data: for url, td in self.app.timing_data:
# NOTE(dtroyer): Take the long way here because total_seconds() # NOTE(dtroyer): Take the long way here because total_seconds()
# was added in py27. # was added in py27.
sec = (td.microseconds + (td.seconds + td.days*86400) * 1e6) / 1e6 sec = (td.microseconds + (td.seconds + td.days *
86400) * 1e6) / 1e6
total += sec total += sec
results.append((url, sec)) results.append((url, sec))
results.append(('Total', total)) results.append(('Total', total))

View File

@ -38,3 +38,6 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
[flake8] [flake8]
show-source = True show-source = True
exclude = .git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools exclude = .git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
# If 'ignore' is not set there are default errors and warnings that are set
# Doc: http://flake8.readthedocs.org/en/latest/config.html#default
ignore = __