pycheck commands
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
;; Start the compile prompt with an empty command.
|
||||
(setq-default compile-command "")
|
||||
|
||||
|
||||
;; Disable auto-save files (#file#).
|
||||
(setq auto-save-default nil)
|
||||
|
||||
@@ -45,3 +46,10 @@
|
||||
|
||||
;; Enable the theme without a confirmation prompt.
|
||||
(load-theme 'gruber-darker t)
|
||||
|
||||
;; Python
|
||||
|
||||
(defun pycheck ()
|
||||
"Run flake8 and mypy in the current directory."
|
||||
(interactive)
|
||||
(compile "flake8 --color=never . && echo 'Success: flake8' && mypy --strict ."))
|
||||
|
||||
Reference in New Issue
Block a user