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:
parent
d7f6a950f0
commit
67e603baf4
6
init.el
6
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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue