From 16eda32baf4b16e105a8f805f61a54ae26fdecf3 Mon Sep 17 00:00:00 2001 From: Carson Gee Date: Sun, 13 Dec 2015 15:09:47 -0500 Subject: [PATCH 1/2] Added pylint minimum version to setup Closes #9 --- pytest_pylint.py | 12 ++++++------ setup.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pytest_pylint.py b/pytest_pylint.py index 1b05b77..d678dae 100644 --- a/pytest_pylint.py +++ b/pytest_pylint.py @@ -2,17 +2,17 @@ from __future__ import unicode_literals from __future__ import absolute_import from os.path import exists +from six.moves.configparser import ( # pylint: disable=import-error + ConfigParser, + NoSectionError, + NoOptionError +) from pylint import lint from pylint.config import PYLINTRC from pylint.interfaces import IReporter from pylint.reporters import BaseReporter import pytest -from six.moves.configparser import ( # pylint: disable=import-error - ConfigParser, - NoSectionError, - NoOptionError -) class ProgrammaticReporter(BaseReporter): @@ -64,7 +64,7 @@ def pytest_collect_file(path, parent): config = parent.config if not config.option.pylint: return - if not path.ext == ".py": + if path.ext != ".py": return # Find pylintrc to check ignore list pylintrc_file = config.option.pylint_rcfile or PYLINTRC diff --git a/setup.py b/setup.py index f122a55..a3127f3 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ url='https://github.com/carsongee/pytest-pylint', py_modules=['pytest_pylint'], entry_points={'pytest11': ['pylint = pytest_pylint']}, - install_requires=['pytest>=2.4', 'pylint', 'six'], + install_requires=['pytest>=2.4', 'pylint>=1.4.5', 'six'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', From 571ee9255225b241df0310ddffd9ecb7febc25bb Mon Sep 17 00:00:00 2001 From: Carson Gee Date: Sun, 13 Dec 2015 16:43:23 -0500 Subject: [PATCH 2/2] Released 0.4.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a3127f3..dbb8c68 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ description='pytest plugin to check source code with pylint', long_description=open("README.rst").read(), license="MIT", - version='0.4.0', + version='0.4.1', author='Carson Gee', author_email='x@carsongee.com', url='https://github.com/carsongee/pytest-pylint',