Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to latest version of pylint and fix runtime bug #25

Merged
merged 7 commits into from
May 24, 2021
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
2 changes: 1 addition & 1 deletion pylint_quotes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""pylint-quotes module"""

from __future__ import absolute_import
from pylint_quotes import plugin, checker # noqa: F401

from pylint_quotes import checker, plugin # noqa: F401

register = plugin.register # pylint: disable=invalid-name
2 changes: 1 addition & 1 deletion pylint_quotes/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__title__ = 'pylint-quotes'
__description__ = 'Quote consistency checker for PyLint..'
__url__ = 'https://github.com/edaniszewski/pylint-quotes'
__version__ = '0.2.1'
__version__ = '0.2.2'
__author__ = 'Erick Daniszewski'
__author_email__ = '[email protected]'
__license__ = 'MIT'
Expand Down
2 changes: 1 addition & 1 deletion pylint_quotes/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def get_offset(col):
Returns:
dict: Keyword arguments to pass to add_message
"""
if (2, 2, 2) < pylint_version:
if ('2', '2', '2') < tuple(map(str, pylint_version)):
return {'col_offset': col}
return {}

Expand Down