Google apps
Main menu

Post a Comment On: Charlie's Second Blog

"Check python coding style on the fly with emacs"

8 Comments -

1 – 8 of 8
Blogger Dixon said...

pep8.py not available.
Can you attach it to your post?

10 August 2009 at 03:31

Blogger Guillaume Chéreau said...

Dixon : you can find a copy of the script here.

10 August 2009 at 07:07

Blogger Dixon said...

Thank you very match!!
You made me happy!! :)

10 August 2009 at 07:38

Blogger Dixon said...

>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

Blogger Dixon said...

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

Blogger Guillaume Chéreau said...

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

Blogger Dixon said...

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

Blogger Unknown said...

buy viagra
viagra online
generic viagra

22 June 2010 at 11:07

You can use some HTML tags, such as <b>, <i>, <a>

You will be asked to sign in after submitting your comment.
Please prove you're not a robot