You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
488 B
13 lines
488 B
(eval-when-compile (require 'flymake nil t)) |
|
|
|
(when (require 'flymake nil 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)))
|
|
|