lsp-mode complies to PEP8 style guide I guess, but how can I disable certain warnings, e.g. about missing docstrings etc.?

2 Answers 2



(setq lsp-pyls-plugins-pycodestyle-enabled nil)

There is no simple answer, since python-lsp-server aggregate warnings from different sources. Mainly pycodestyle/flake8 and pycodestyle.

The easiest will be to add a setup.cfg file which list the error you want to ignore. For example, for missing docs, simply add:

ignore = D100,D101,D102,D107

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.