mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-20 23:51:39 +00:00
12 lines
455 B
EmacsLisp
12 lines
455 B
EmacsLisp
|
(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)))
|