Skip to content

Support for pylint? #171

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

Closed
stefaneidelloth opened this issue Mar 14, 2022 · 2 comments
Closed

Support for pylint? #171

stefaneidelloth opened this issue Mar 14, 2022 · 2 comments

Comments

@stefaneidelloth
Copy link

If I run pylint with nbqa against my notebook, I get a warning

W0622: Redefining built-in 'map' (redefined-builtin)

In the notebook I do get a warning about trailing white space but I
don't get a warning about the build-in name from lsp.

Therefore, I was wondering if lsp supports pylint checks or some alternative
tool that would give me that warning?

image

@edubxb
Copy link

edubxb commented Mar 14, 2022

Hi!

Pylint is supported, but disabled by default.

https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md

@stefaneidelloth
Copy link
Author

Here is the JupyterLab config for the LanguageServer tab that worked for me to enable pylint:

{  
    "language_servers": {
        "pyright": {
            "serverSettings": {
                "python.analysis.useLibraryCodeForTypes": true
            }
        },
        "pylsp": {
            "serverSettings": {
                "pylsp": {
                    "plugins": {
                        "pydocstyle": {
                          "enabled": true
                        },
                        "pyflakes": {
                          "enabled": false
                        },
                        "flake8": {
                          "enabled": true
                        },
                        "pylint": {
                          "enabled": true
                        }
                    }
                }
            }
        }
    }
    
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants