Always set python-check-command to use mypy

This commit is contained in:
Evie Litherland-Smith 2025-01-24 16:27:11 +00:00
parent 6799eb2da1
commit 672029f8cb

View file

@ -1148,12 +1148,7 @@
:hook ((python-base-mode . (lambda ()
(set-fill-column 88)
(display-fill-column-indicator-mode +1)
(setq-local
python-check-command
(cond
((executable-find "mypy" t) "mypy --check-untyped-defs --warn-unreachable --show-error-codes --ignore-missing-imports")
(t "pyflakes"))
python-flymake-command
(setq-local python-flymake-command
(cond
((executable-find "ruff" t) '("ruff" "check" "--output-format=concise" "--stdin-filename=stdin" "-"))
((executable-find "flake8" t) '("flake8" "--max-line-length" "88" "-"))
@ -1166,6 +1161,7 @@
(python-indent-guess-indent-offset nil)
(python-indent-offset 4)
(python-indent-def-block-scale 1)
(python-check-command "mypy --check-untyped-defs --warn-unreachable --show-error-codes --ignore-missing-imports")
:config
(setq python-ts-mode-hook python-mode-hook))