Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions indexdigest/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,10 @@ class DatabaseBase:
Sub-class this to mock database connection
"""

# pylint:disable=too-many-arguments
def __init__(self, host, user, passwd, db, port=3306):
# pylint:disable=too-many-arguments,invalid-name
def __init__(self, host: str, user: str, passwd: str, db: str, port: int=3306):
"""
Connects to a given database

:type host str
:type user str
:type passwd str
:type db str
"""
self.logger = logging.getLogger(__name__)
self.query_logger = logging.getLogger(__name__ + '.query')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
'dev': [
'coverage==6.2',
'coveralls==3.3.1',
'pylint==2.11.1',
'pylint==2.12.2',
'pytest==6.2.5',
'pytest-cov==3.0.0',
'twine==3.7.1',
Expand Down