T
T
thenno2014-07-01 17:37:26
Python
thenno, 2014-07-01 17:37:26

How to link Emacs, pylint and pep8?

For a long time I used the wonderful Vim editor for development in python. Now I decided to slowly try Emacs and ran into the following problem. Vim has a wonderful python-mode plugin that allows you to check the code with pylint and pep8 utilities without leaving the editor (there are some others, I was primarily interested in the above two).
In Emacs, I found python-pylint and python-pep8 for the same purposes in elpa. The option is viable, but I would like two things:
1. The ability to flexibly configure the validation rules (as far as I understand, you can configure python-pylint only by editing the plugin source code).
2. Possibility to combine the output of two checks into one buffer.
Is there a ready-made solution that meets these two criteria?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
thenno, 2014-07-11
@thenno

I was able to get it through flycheck (a fashionable replacement for flymake). Works fine out of the box (uses flake8 for python), but I wanted good old pylint. The whole setup looked something like this:

(defun init-flycheck ()
  (flycheck-mode t)
  (setq flycheck-pylintrc "~/.emacs.d/config/pylintrc")
  (flycheck-select-checker 'python-pylint)
  )

W
webbus, 2014-07-01
@webus

Try my fork config https://github.com/webus/emacs.d
everything is set up for python development

O
Oleg, 2015-07-08
@LastDreamer

I advise you to try elpy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question