Skip to content

disable=import-error in .pylintrc seems to be ignored #865

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
mistalaba opened this issue Feb 22, 2018 · 2 comments
Closed

disable=import-error in .pylintrc seems to be ignored #865

mistalaba opened this issue Feb 22, 2018 · 2 comments
Assignees

Comments

@mistalaba
Copy link

Am I thinking wrong? Perhaps it's not possible to ignore errors like [pylint] E0401:Unable to import 'django.contrib.sites.shortcuts' using .pylintrc? Everything else I put in the disable= sections seems to be working.

Environment data

VS Code version: 1.20.1
Python Extension version: 2018.1 (01 Feb 2018)
Python Version: 2.7, 3.6
OS and version: Windows 10 Home 1709 16299.248

Actual behavior

Unable to import errors are shown, even though the following is set in .pylintrc
[MESSAGES CONTROL]
disable=import-error

Expected behavior

Errors should be ignored

Steps to reproduce:

  • Develop locally, server on Virtualbox without remotr debugging, therefore I need to ignore the imports

Logs

Output from Python output panel

1,0,error,E0401:Unable to import 'django.db.models'
2,0,error,E0401:Unable to import 'django.conf'
3,0,error,E0401:Unable to import 'django.contrib.auth.models'
etc.

Output from Console window (Help->Developer Tools menu)

Thank you!

@MikhailArkhipov
Copy link

See #788
You can set pyLintUseMinimalCheckers to false as a workaround

@mistalaba
Copy link
Author

Thank you! It drove me crazy!

@lock lock bot locked as resolved and limited conversation to collaborators Jul 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants