Skip to content

Commit

Permalink
Update Pylint 2.0+ (#19)
Browse files Browse the repository at this point in the history
This updates Pylint to 2.0+

Signed-off-by: David Brown <dmlb2000@gmail.com>
  • Loading branch information
dmlb2000 committed Jan 28, 2020
1 parent 14100bf commit 9c75267
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
repos:
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.4.4
rev: v1.5
hooks:
- id: autopep8
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
rev: v2.4.0
hooks:
- id: fix-encoding-pragma
- id: trailing-whitespace
Expand Down Expand Up @@ -50,7 +50,7 @@ repos:
language: system
types: [python]
- repo: git://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.6
rev: v1.1.7
hooks:
- id: remove-tabs
- id: remove-crlf
2 changes: 1 addition & 1 deletion pacifica/downloader/cartapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def setup_cart(self, yield_files):
resp = self.session.post(
cart_url,
data=dumps({
'fileids': [file_obj for file_obj in yield_files()]
'fileids': list(yield_files())
}),
headers={'Content-Type': 'application/json'},
**self._auth
Expand Down
2 changes: 1 addition & 1 deletion pacifica/downloader/cloudevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


# pylint: disable=too-few-public-methods
class CloudEvent(object):
class CloudEvent:
"""Cloud Event Parser."""

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion pacifica/downloader/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


# pylint: disable=too-few-public-methods
class CommonBase(object):
class CommonBase:
"""Contains methods to implement common functionality."""

session = None
Expand Down
2 changes: 1 addition & 1 deletion pacifica/downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .policy import TransactionInfo


class Downloader(object):
class Downloader:
"""
Downloader Class.
Expand Down
2 changes: 1 addition & 1 deletion pacifica/downloader/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


# pylint: disable=too-few-public-methods
class TransactionInfo(object):
class TransactionInfo:
"""Cloud Event Parser."""

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ pacifica-metadata
pacifica-policy
pep257
pre-commit
pylint<2.0
pylint
pytest
recommonmark

0 comments on commit 9c75267

Please sign in to comment.