all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs 23, Python, epylint, pylint
@ 2009-10-22  1:30 Richard Riley
  2009-10-22  1:48 ` Richard Riley
       [not found] ` <mailman.9250.1256176158.2239.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 9+ messages in thread
From: Richard Riley @ 2009-10-22  1:30 UTC (permalink / raw)
  To: help-gnu-emacs


I have followed the advice here:

http://stackoverflow.com/questions/1259873/how-can-i-use-emacs-flymake-mode-for-python-with-pyflakes-and-pylint-checking-cod

or

http://tinyurl.com/yfshb5b

And successfully have pylint and emacs highlighting errors in my .py
files courtesy of flymake. The problem is that I can't see anywhere the
actually error description. Can anyone help please?

The epylint script I have is this:

,----
| #!/usr/bin/env python
| 
| import re
| import sys
| 
| from subprocess import *
| 
| p = Popen(
|     "pylint -f parseable -r n %s"%
|     sys.argv[1], shell = True, stdout = PIPE).stdout
| 
| for line in p:
|     match = re.search("\\[([WECR])(, (.+?))?\\]", line)
|     if match:
|         kind = match.group(1)
|         func = match.group(3)
| 
|         if kind in ["W","C","R"]:
|            msg = "Warning"
|         else:
|            msg = "Error"
| 
|         if func:
|             line = re.sub("\\[([WECR])(, (.+?))?\\]",
|                           "%s (%s):" % (msg, func), line)
|         else:
|             line = re.sub("\\[([WECR])?\\]", "%s:" % msg, line)
|     print line,
| 
| p.close()
`----


regards

r.





^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <mailman.9249.1256175078.2239.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2009-11-02 13:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-22  1:30 Emacs 23, Python, epylint, pylint Richard Riley
2009-10-22  1:48 ` Richard Riley
2009-10-22  2:10   ` Richard Riley
     [not found] ` <mailman.9250.1256176158.2239.help-gnu-emacs@gnu.org>
2009-10-23 11:50   ` Anselm Helbig
2009-10-23 13:35     ` Richard Riley
     [not found]     ` <mailman.9306.1256304994.2239.help-gnu-emacs@gnu.org>
2009-11-01 19:23       ` Dave Love
2009-11-02 13:02         ` Richard Riley
2009-11-02 13:29         ` Richard Riley
     [not found] <mailman.9249.1256175078.2239.help-gnu-emacs@gnu.org>
2009-11-01 19:22 ` Dave Love

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.