It could be possible to use pyflake and PEP8.py at the same time by concatenating the output from both programs. Too bad pyflake (or pylint) both don't allow to check the codding style.
[Image] A nice emacs trick : using flymake-mode and this python code styles PEP8 checker script written by Johann C. Rocholl, we can have automatic real time checking for standard python coding style.
To make this work I copied the script (pep8.py) in my PATH, and then I added this block of code in my .emac file :
"Check python coding style on the fly with emacs"
8 Comments -
pep8.py not available.
Can you attach it to your post?
10 August 2009 at 03:31
Dixon : you can find a copy of the script here.
10 August 2009 at 07:07
Thank you very match!!
You made me happy!! :)
10 August 2009 at 07:38
>coding style error will be highlighted on the fly
I made the same. I coding style error will be highlighted, but I don't see simple coding error (undefined variables, etc).
Do you see coding error?
11 August 2009 at 02:15
Exactly, I use pyflakes in python mode:
(when (load "flymake" t)
(defun flymake-pyflakes-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "pyflakes" (list local-file))))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.py\\'" flymake-pyflakes-init)))
And pyflakes and pep8.py don't work together.
11 August 2009 at 04:00
It could be possible to use pyflake and PEP8.py at the same time by concatenating the output from both programs. Too bad pyflake (or pylint) both don't allow to check the codding style.
11 August 2009 at 06:56
I have solution!
http://stackoverflow.com/questions/1259873/how-can-i-use-emacs-flymake-mode-for-python-with-pyflakes-and-pylint-checking-cod
9 September 2009 at 04:03
buy viagra
viagra online
generic viagra
22 June 2010 at 11:07