From 02ecfb51ec300d2dcb2364f6e2d6f985d5b76b79 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 19 Mar 2024 10:39:11 +0000 Subject: [PATCH] Add extra arguments for flymake-collection-mypy --- config/ide.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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