third_party.pylibs.pylint.src/elisp/pylint-flymake.el

12 lines
455 B
EmacsLisp
Raw Normal View History

2008-04-14 15:56:00 +00:00
(when (load "flymake" t)
(defun flymake-pylint-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 "epylint" (list local-file))))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.py\\'" flymake-pylint-init)))