Created
April 19, 2011 18:50
-
-
Save paulosman/929239 to your computer and use it in GitHub Desktop.
Shell script that runs pyflakes and pep8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 "pychecker.sh" (list local-file)))) | |
(add-to-list 'flymake-allowed-file-name-masks | |
'("\\.py\\'" flymake-pyflakes-init))) | |
(add-hook 'find-file-hook 'flymake-find-file-hook) | |
(global-set-key [f12] 'flymake-display-err-menu-for-current-line) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/usr/local/bin/pyflakes $1 | |
/usr/bin/pep8 --repeat $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment