pycheck commands
This commit is contained in:
@@ -6,5 +6,5 @@ normify(){
|
||||
}
|
||||
|
||||
pycheck(){
|
||||
flake8 --color=never . && echo "flake8 OK" && mypy --strict .
|
||||
flake8 --color=never . && echo "Success: flake8" && mypy --strict .
|
||||
}
|
||||
|
||||
@@ -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