diff --git a/init.el b/init.el index 0853646..d796f20 100644 --- a/init.el +++ b/init.el @@ -1030,15 +1030,11 @@ Calls `project-remember-projects-under' for ~/Projects/" :hook ((python-base-mode . (lambda () (my/enable-fill-column 88)))) :custom (python-shell-interpreter "python3") + (python-check-command "mypy --check-untyped-defs --warn-unreachable --show-error-codes") (python-flymake-command (cond ((executable-find "ruff") '("ruff" "check" "--output-format=pylint" "--stdin-filename=stdin" "-")) ((executable-find "flake8") '("flake8" "--max-line-length" "88" "-")) (t '("pyflakes")))) - (python-check-command - (cond ((executable-find "mypy") "mypy --check-untyped-defs --warn-unreachable --show-error-codes") - ((executable-find "ruff") "ruff check --output-format pylint") - ((executable-find "flake8") "flake8 --max-line-length 88") - (t "pyflakes"))) :config (setq python-ts-mode-hook python-mode-hook))