diff --git a/config/ide.org b/config/ide.org index 94cd76b..5e7bc09 100644 --- a/config/ide.org +++ b/config/ide.org @@ -145,10 +145,22 @@ Set treesit to fontify all elements, default was 3 (out of 4) :diminish :defer :after flymake) +#+end_src +*** mypy +#+begin_src emacs-lisp + (with-eval-after-load 'flymake-collection + (customize-set-variable 'flymake-collection-mypy-args + '("--ignore-missing-imports" + "--follow-imports=skip" + "--check-untyped-defs" + "--warn-unreachable" + "--show-error-codes" + "--no-color-output"))) (with-eval-after-load 'python (add-hook 'python-base-mode-hook (defun python-mode-setup-flymake () + (require 'flymake-collection) (add-hook 'flymake-diagnostic-functions 'flymake-collection-mypy nil t)))) #+end_src