diff --git a/README.rst b/README.rst index af610d5..08b0eb2 100644 --- a/README.rst +++ b/README.rst @@ -30,6 +30,13 @@ would be the most simple usage and would run pylint for all error messages. This would use the pylintrc file at /my/pyrc and only error on pylint Errors and Failures. +You can restrict your test run to only perform pylint checks and not any other +tests by typing: + +.. code-block:: shell + + py.test --pylint -m pylint + Acknowledgements ================ diff --git a/pytest_pylint.py b/pytest_pylint.py index 7f4fcc5..65b0df0 100644 --- a/pytest_pylint.py +++ b/pytest_pylint.py @@ -111,6 +111,8 @@ class PyLintItem(pytest.Item, pytest.File): def __init__(self, fspath, parent, msg_format=None, pylintrc_file=None): super(PyLintItem, self).__init__(fspath, parent) + self.add_marker("pylint") + if msg_format is None: self._msg_format = '{C}:{line:3d},{column:2d}: {msg} ({symbol})' else: diff --git a/setup.py b/setup.py index 37d622e..49cf286 100644 --- a/setup.py +++ b/setup.py @@ -13,13 +13,13 @@ description='pytest plugin to check source code with pylint', long_description=open("README.rst").read(), license="MIT", - version='0.5.0', + version='0.6.0', author='Carson Gee', author_email='x@carsongee.com', url='https://github.com/carsongee/pytest-pylint', py_modules=['pytest_pylint'], entry_points={'pytest11': ['pylint = pytest_pylint']}, - install_requires=['pytest>=2.4', 'pylint>=1.4.5', 'six'], + install_requires=['pytest>=2.7', 'pylint>=1.4.5', 'six'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers',