0

I use flycheck for Python with pylint, pep8 and other built-in checkers, but also I will use pep257 to highlight doc-comments formatting errors. I read official documentation, but not understand, who I must write in my .emacs for connecting pep257 to flycheck.

How to add pep257 to flycheck without opening issue on GutHub?

  • I think that you could just pip install flake8-pep257 to automatically include PEP 257 warnings in flake8. You'd have to use flake8 as syntax checker instead of pylon then, obviously. – lunaryorn Nov 17 '15 at 11:12
  • Thanks! It's work from command line fine. But in EMACS flycheck crashes with message "Checker python-flake8 returned non-zero exit code 1, but no errors from output". How to fix this error? – Dunaevsky Maxim Nov 17 '15 at 11:47
  • That's a bug in Flycheck then. Please open an issue on GitHub, providing your Emacs and Flycheck version, your flake8 version and all relevant details 😊 – lunaryorn Nov 17 '15 at 11:51
  • Thank you for help! I will check your answer as valid, if you write comment with "flake8-pep257" as answer. – Dunaevsky Maxim Nov 17 '15 at 12:14
  • Unfortunately, flake8-pep257 has a bug that prevents it from working with Flycheck. See the edit to my answer. – lunaryorn Nov 17 '15 at 12:34
1

I think that you could just pip install flake8-pep257 to automatically include PEP 257 warnings in flake8. You'd have to use flake8 as syntax checker instead of pylint then, obviously.

Note, though, that there's a bug in flake8-pep257 which prevents it from reading from standard input. This prevents pep257 from working with Flycheck currently.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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