6

I have installed flycheck and pylint and want to use pylint for python mode, but when selecting syntax checker with flycheck I get this:

  python-pylint (disabled)
    - major mode:         `python-mode' supported
    - may enable:         Automatically disabled!
    - executable:         Found at /usr/bin/python
    - configuration file: Found at "/home/tools/.pylintrc"
    - `pylint' module:    Missing

Flycheck cannot use this syntax checker for this buffer.

and can simply not figure out what is wrong. I have googled but cannot find the answer

Pylint is installed and can be executed from within emacs: enter image description here

Lars Nielsen
  • 213
  • 4
  • 9

1 Answers1

6

Here is an example of a working configurationCorrect configuration

Note that executable is not that of python itself (as in your case) but to actual pylintrc that you want to use.

This can be achieved with the following .emacs snippet:

(add-hook 'python-mode-hook
          (lambda ()
            (setq flycheck-python-pylint-executable "<your path to>/pylint")
            (setq flycheck-pylintrc "/home/tools/.pylintrc")))
Stefan
  • 26,154
  • 3
  • 46
  • 84