[pywin32-bugs] [ pywin32-Feature Requests-1110245 ] Integration with pychecker
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2005-01-26 21:55:41
|
Feature Requests item #1110245, was opened at 2005-01-26 21:55 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1110245&group_id=78018 Category: pythonwin Group: Next Release (example) Status: Open Resolution: None Priority: 5 Submitted By: Ramon M. Felciano (felciano) Assigned to: Nobody/Anonymous (nobody) Summary: Integration with pychecker Initial Comment: Hi -- It would be nice to include integration with PyChecker (http://sourceforge.net/projects/pychecker) in the same way there is TabNanny integration. A Google search comes up with the cfg below to do it yourself by adding a new pywin editor configuration (slightly modified below to handle pathnames with spaces and to add messaging to the status bar). It would be nice to ship this out-of- the-box to encourage adoption. Barring that, maybe add a pointer / reference to these instructions in the FAQ? Thanks! Ramon [General] # place this in <pythondir>\Lib\site- packages\Pythonwin\pywinBased On = Default [Keys:Editor] Shift+Ctrl+v = checksource [Extensions] def checksource(editor_window, event): import pywin.framework.scriptutils import os import re import win32ui filename = pywin.framework.scriptutils.GetActiveFileName() win32ui.SetStatusText("PyChecker is checking your source..." , True) messages = os.popen(r'<pythondir>\pychecker.bat "% s"' % filename) for message in messages.xreadlines(): print re.sub(r"(.*):(\d+):(.*)", r'File "\1", line \2, \3', message.strip()) messages.close() win32ui.SetStatusText("PyChecker is done checking your source." , True) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1110245&group_id=78018 |