Skip to content

Commit

Permalink
Fix lint errors in apitools and pin pycodestyle to version 2.4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinli7 committed Apr 17, 2018
1 parent 21ad21e commit b963534
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apitools/base/protorpclite/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def assertHeaderSame(self, header1, header2):
self.assertEqual(params1, params2)

def assertIterEqual(self, iter1, iter2):
"""Check that two iterators or iterables are equal independent of order.
"""Check two iterators or iterables are equal independent of order.
Similar to Python 2.7 assertItemsEqual. Named differently in order to
avoid potential conflict.
Expand Down
2 changes: 1 addition & 1 deletion apitools/base/protorpclite/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Error(Exception):


def positional(max_positional_args):
"""A decorator to declare that only the first N arguments may be positional.
"""A decorator that declares only the first N arguments may be positional.
This decorator makes it easy to support Python 3 style keyword-only
parameters. For example, in Python 3 it is possible to write:
Expand Down
2 changes: 1 addition & 1 deletion apitools/base/py/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def terminal_state(self):
return response_code not in self.__retryable_codes

def HandleResponse(self, http_response, exception):
"""Handles an incoming http response to the request in http_request.
"""Handles incoming http response to the request in http_request.
This is intended to be used as a callback function for
BatchHttpRequest.Add.
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[pycodestyle]
count = False
ignore = E722,E741
ignore = E722,E741,W504
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ commands =
pip install six google-apitools
pycodestyle apitools
deps =
pycodestyle
pycodestyle==2.4.0
pylint
unittest2

Expand Down

0 comments on commit b963534

Please sign in to comment.