From 9555d427ae07d0983a3e5f3e6ba338525c3495cb Mon Sep 17 00:00:00 2001 From: holger krekel Date: Tue, 12 Oct 2010 13:02:48 +0200 Subject: [PATCH] remove non-working pylint plugin --HG-- branch : trunk --- pytest/plugin/pylint.py | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 pytest/plugin/pylint.py diff --git a/pytest/plugin/pylint.py b/pytest/plugin/pylint.py deleted file mode 100644 index 368aab4cf..000000000 --- a/pytest/plugin/pylint.py +++ /dev/null @@ -1,36 +0,0 @@ -"""pylint plugin - -XXX: Currently in progress, NOT IN WORKING STATE. -""" -import py - -pylint = py.test.importorskip("pylint.lint") - -def pytest_addoption(parser): - group = parser.getgroup('pylint options') - group.addoption('--pylint', action='store_true', - default=False, dest='pylint', - help='run pylint on python files.') - -def pytest_collect_file(path, parent): - if path.ext == ".py": - if parent.config.getvalue('pylint'): - return PylintItem(path, parent) - -#def pytest_terminal_summary(terminalreporter): -# print 'placeholder for pylint output' - -class PylintItem(py.test.collect.Item): - def runtest(self): - capture = py.io.StdCaptureFD() - try: - linter = pylint.lint.PyLinter() - linter.check(str(self.fspath)) - finally: - out, err = capture.reset() - rating = out.strip().split('\n')[-1] - sys.stdout.write(">>>") - print(rating) - assert 0 - -