pycheck commands

This commit is contained in:
2026-11-21 12:58:20 +01:00
parent 82e363e2db
commit 407e1e40d7
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -6,5 +6,5 @@ normify(){
}
pycheck(){
flake8 --color=never . && echo "flake8 OK" && mypy --strict .
flake8 --color=never . && echo "Success: flake8" && mypy --strict .
}
+8
View File
@@ -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 ."))