diff --git a/aliases b/aliases index 24b21ae..d3121dd 100644 --- a/aliases +++ b/aliases @@ -6,5 +6,5 @@ normify(){ } pycheck(){ - flake8 --color=never . && echo "flake8 OK" && mypy --strict . + flake8 --color=never . && echo "Success: flake8" && mypy --strict . } diff --git a/emacs/.emacs b/emacs/.emacs index 362ab9a..cec65d1 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -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 ."))