Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off warning diagnostics #128

Closed
austinmw opened this issue Jan 5, 2020 · 2 comments · Fixed by #172
Closed

Turn off warning diagnostics #128

austinmw opened this issue Jan 5, 2020 · 2 comments · Fixed by #172
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@austinmw
Copy link

austinmw commented Jan 5, 2020

What I am trying to do...

How can I turn off the pycodestyle warning diagnostic underlines (or alternative, maybe disable only specific pycodestyle E#'s)? Some of these are a bit too verbose for me.

How I would like to learn how to do it...

I don't see any documentation for this or how to modify any settings.

@krassowski krassowski added documentation Improvements or additions to documentation question Further information is requested labels Jan 5, 2020
@krassowski
Copy link
Member

Thanks for writing. We plan to provide a configuration GUI at some time, but in the meantime, you can use the instructions on the pyls website (see configuration). For me on linux it simply meant creating a file called ~/.config/pycodestyle; for my personal use I have the following settings:

[pycodestyle]
ignore = E402, E703
max-line-length = 120

E402 is to allow imports which are not on the very top of the file, E703 allows terminating semicolon (useful for matplotlib plots to prevent the object representation string).

For more check the configuration section of pycodestyle documentation. They describe where the configuration file should be created on different OS (e.g. Windows) and options and error codes are there.

Generally, it is a good idea to read-up on the language servers by visiting their GitHub pages as there may be useful information (such as configuration, tricks, and known limitations).

I will close this issue but feel free to post any additional questions or feedback here, or reopen this issue if any problems with the configuration appear.

@bollwyvl
Copy link
Collaborator

bollwyvl commented Jan 5, 2020 via email

krassowski added a commit that referenced this issue Jan 21, 2020
Closes #171 and fixes #128
@krassowski krassowski mentioned this issue Jan 21, 2020
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants