Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

How to use other flycheck checkers #43

Open
forrestchang opened this issue Jul 2, 2019 · 3 comments
Open

How to use other flycheck checkers #43

forrestchang opened this issue Jul 2, 2019 · 3 comments

Comments

@forrestchang
Copy link

For example, I want use pylint after lsp-ui, and mypy after pylint, how should I setup?

@braineo
Copy link

braineo commented Jul 2, 2019

You can take a look at my config at this line

or TL;DR

(setq-local flycheck-checker 'python-pylint)

@jidicula
Copy link

Have you seen pycheck-flycheckers?

@dschaehi
Copy link

dschaehi commented Dec 4, 2020

The following hack has worked for me:

(use-package lsp-python-ms
  :init
  (setq lsp-python-ms-auto-install-server t)
  :hook
  ((python-mode . (lambda ()
                    (require 'lsp-python-ms)
                    (lsp-deferred)))
   ;; This hack is necessary to make additional flycheck checkers work in lsp-mode
   (flycheck-mode . (lambda ()
                      (flycheck-add-next-checker 'lsp 'python-flake8)
                      (flycheck-add-next-checker 'python-flake8 'python-mypy)
                      (message "Added flycheck checkers.")))))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants