[Python-modules-commits] [pytest-pylint] 01/06: Import pytest-pylint_0.6.0.orig.tar.gz
Ondrej Koblizek
kobla-guest at moszumanska.debian.org
Tue Aug 2 06:24:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
kobla-guest pushed a commit to branch master
in repository pytest-pylint.
commit a09d1a4d6eaca2155a7cb8e737b0cb85fc1bfb46
Author: Ondřej Kobližek <ondrej.koblizek at firma.seznam.cz>
Date: Tue Aug 2 06:41:19 2016 +0200
Import pytest-pylint_0.6.0.orig.tar.gz
---
README.rst | 7 +++++++
pytest_pylint.py | 2 ++
setup.py | 4 ++--
3 files changed, 11 insertions(+), 2 deletions(-)
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 @@ setup(
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 at 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',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pytest-pylint.git
More information about the Python-modules-commits
mailing list