question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

You have a pylintrc file in your workspace. Do you want to enable pylint?

See original GitHub issue

Environment data

  • VS Code version: 1.47.1
  • Extension version (available under the Extensions sidebar): v2020.6.91350
  • OS and version: macOS
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.10
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): virtualenv
  • Relevant/affected Python packages and their versions: XXX
  • Relevant/affected Python-related VS Code extensions and their versions: XXX
  • Value of the python.languageServer setting: Pylance

Expected behaviour

Only prompt once, the first time I open the workspace.

Actual behaviour

Every time I open the same workspace containing a .pylintrc file I get the prompt

“You have a pylintrc file in your workspace. Do you want to enable pylint?”

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

3reactions
karrtikrcommented, Jul 24, 2020

@tekumara I see where the confusion is, allow me clear this up.

Open the JSON file where it’s actually stored. You can use the command Open Settings (JSON). Even though python.linting.pylintEnabled is checked in the UI, you’ll notice that "python.linting.pylintEnabled": true entry doesn’t exist in the JSON file, i.e it’s not explicitly set.

Please add "python.linting.pylintEnabled": true in that JSON file, after which you should stop receiving the prompt.

1reaction
tekumaracommented, Jul 24, 2020

Thanks @karrtikr! I directly modified settings.json and now I no longer get the prompt 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change the .pylintrc file that VS Code is using for linting?
I want to know if I can use my own pylint rules only on my local machine without having to modify the team's...
Read more >
Linting Python in Visual Studio Code
You can easily toggle between enabling and disabling your linter. ... a pylintrc or .pylintrc options file in the workspace folder, as described...
Read more >
Use PyLint for Python code - Visual Studio - Microsoft Learn
pylintrc file, select it, and select Add. Open the file for editing, which has several settings you can work with. To disable a...
Read more >
Editor and IDE integration — Pylint 2.11.1 documentation
Visual Studio, see the Python > Run PyLint command on a project's context menu. Eric IDE, see the Project > Check menu,.
Read more >
Linting | Python in Visual Studio Code
By default linting is enabled and uses pylint. If you wish to turn this off, you could do so either in the User...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found