yaegassy / coc-pylsp

pylsp (python-lsp-server) extension for coc.nvim.
https://www.npmjs.com/package/@yaegassy/coc-pylsp
MIT License
34 stars 2 forks source link

how to remove the warning: line too long #17

Closed ashixu closed 1 year ago

ashixu commented 1 year ago

Some code logic is more complicated, and newlines affect the readability of the code, so I want to cancel this restriction or increase the number of columns. How can I do that.

yaegassy commented 1 year ago

Which tool is reporting the warning message? Is it from flake8 or pycodestyle? If it's from flake8 or pycodestyle, I believe adding # noqa at the end of the line will suppress the warning message. https://flake8.pycqa.org/en/3.1.1/user/ignoring-errors.html

It is also possible to suppress it within configuration files like setup.cfg. Please consult the documentation of each tool for more information.

To suppress it using the configuration of coc-pylsp itself, you can utilize the pylsp.plugins.flake8.ignore, pylsp.plugins.pycodestyle.ignore and more settings.