Remove checking on mypy existing for python-check-command

Mypy might not be installed at startup since it's most useful when
installed in a specific venv, hence check had a flaw. Trust that it
will be installed if I want to use it
This commit is contained in:
Evie Litherland-Smith 2024-06-13 07:35:23 +01:00
parent d7f6a950f0
commit 67e603baf4

View file

@ -1030,15 +1030,11 @@ Calls `project-remember-projects-under' for ~/Projects/"
:hook ((python-base-mode . (lambda () (my/enable-fill-column 88)))) :hook ((python-base-mode . (lambda () (my/enable-fill-column 88))))
:custom :custom
(python-shell-interpreter "python3") (python-shell-interpreter "python3")
(python-check-command "mypy --check-untyped-defs --warn-unreachable --show-error-codes")
(python-flymake-command (python-flymake-command
(cond ((executable-find "ruff") '("ruff" "check" "--output-format=pylint" "--stdin-filename=stdin" "-")) (cond ((executable-find "ruff") '("ruff" "check" "--output-format=pylint" "--stdin-filename=stdin" "-"))
((executable-find "flake8") '("flake8" "--max-line-length" "88" "-")) ((executable-find "flake8") '("flake8" "--max-line-length" "88" "-"))
(t '("pyflakes")))) (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 :config
(setq python-ts-mode-hook python-mode-hook)) (setq python-ts-mode-hook python-mode-hook))