diff options
author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2008-04-14 17:56:00 +0200 |
---|---|---|
committer | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2008-04-14 17:56:00 +0200 |
commit | ac1c59f540333054cab8e9765a3d096936f107d6 (patch) | |
tree | c9f17f48d286589af472b2940ba6089967e9d934 /elisp | |
parent | 66fad97fb8bcb76a5032ffc295f065907671a75e (diff) | |
download | pylint-git-ac1c59f540333054cab8e9765a3d096936f107d6.tar.gz |
added pylint/flymake related files
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/pylint-flymake.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/elisp/pylint-flymake.el b/elisp/pylint-flymake.el new file mode 100644 index 000000000..835409ea3 --- /dev/null +++ b/elisp/pylint-flymake.el @@ -0,0 +1,11 @@ +(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))) |