Skip to content

Commit

Permalink
Added pylint minimum version to setup
Browse files Browse the repository at this point in the history
Closes #9
  • Loading branch information
carsongee committed Dec 13, 2015
1 parent d0b87d5 commit 16eda32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions pytest_pylint.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -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',
Expand Down

0 comments on commit 16eda32

Please sign in to comment.