Skip to content

Commit

Permalink
Merge pull request #95 from jd/flake8-logging-format-enable
Browse files Browse the repository at this point in the history
pep8: enable logging format checks
  • Loading branch information
mergify[bot] authored Sep 12, 2018
2 parents 5d71b81 + 63a2fa7 commit 2a54c7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gnocchiclient/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def _log_progress(self, verb):
LOG.info(
"%d/%d, "
"total: %.2f seconds, "
"rate: %.2f %s/second"
% (done, self.times, runtime, rate, verb))
"rate: %.2f %s/second",
done, self.times, runtime, rate, verb)

def wait_job(self, verb, futures):
while self.statistics.executed != self.times:
Expand All @@ -117,7 +117,7 @@ def wait_job(self, verb, futures):
results.append(result)
latencies.append(latency)
except Exception as e:
LOG.error("Error with %s metric: %s" % (verb, e))
LOG.error("Error with %s metric: %s", (verb, e))
latencies = sorted(latencies)
return results, runtime, {
'client workers': self._max_workers,
Expand Down Expand Up @@ -320,8 +320,8 @@ def take_action(self, parsed_args):
break
else:
LOG.info(
"Remaining measures to be processed: %d"
% remaining)
"Remaining measures to be processed: %d",
remaining)
time.sleep(1)

return self.dict2columns(stats)
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ commands =
show-source = True
ignore = D100,D101,D102,D103,D104,D105,D107,A002,A003
exclude=.git,.tox,dist,doc,*egg,build
enable-extensions=G
application-import-names = gnocchiclient

[pytest]
Expand Down

0 comments on commit 2a54c7b

Please sign in to comment.