I'm using Doom Emacs on macOS, if it matters.

Essentially, I'd like to disable the pylint checker entirely when editing Python files. I don't use pylint, and I don't have it installed in my Pyenv environments; it gives me false positives.

But I'm not a skilled Emacs user, and I can't figure out how to disable it. I have this in my config:

(use-package! flycheck
  (add-to-list 'flycheck-disabled-checkers 'python-pylint)
  (add-hook 'pyhon-mode-local-vars-hook
          (lambda ()
            (when (flycheck-may-enable-checker 'python-flake8)
              (flycheck-select-checker 'python-flake8)))))

But it doesn't seem to matter -- every time I open a Python file, it tries to start up pylint.

  • Have you checked flycheck-disabled-checkers explicitily to make sure it includes python-pylint? What happens if you do the (add-to-list 'flycheck-disabled-checkers 'python-pylint) by hand? Does flycheck skip it then?
    – NickD
    Commented Oct 1, 2020 at 22:12

2 Answers 2


This is working for me:

(use-package flycheck
  (setq-default flycheck-disabled-checkers '(python-pylint)))
  • 3
    please add some reasoning to make your response more complete.
    – Muihlinn
    Commented Jan 29, 2021 at 19:51
  • 2
    Yes, please let readers know how it answers the question - what it does.
    – Drew
    Commented Jan 29, 2021 at 22:03
  • This did not work on my end
    – alper
    Commented Feb 24, 2022 at 15:24

I took a look at the flycheck docs and the following worked, as suggested by the docs:

(setq-default flycheck-disabled-checkers '(python-pylint))
  • From the referenced section of the docs this is what best worked for me: This option is buffer-local. You can customise this variable with M-x customize-variable RET flycheck-disabled-checkers or set the default value in your init file to permanently disable specific syntax checkers.
    – bonyiii
    Commented Apr 14 at 8:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.