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

Two linting errors in every python file (always line 5 and 12) #3

Open
mfrey777 opened this issue Jan 12, 2021 · 2 comments
Open

Two linting errors in every python file (always line 5 and 12) #3

mfrey777 opened this issue Jan 12, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@mfrey777
Copy link

I add the "pylint_flask_sqlalchemy" plugin to my VSCODE settings.json file:

 "python.linting.pylintArgs": [
    "--load-plugins",
    "pylint_flask_sqlalchemy",
    "pylint_flask", 
  ],

I then get 2 linting error on every single python file. The errors are always for line 5 and 12:

  • Unnecessary pass statement pylint(unecessary-pass) [12, 5]
  • standard import "import re" should be placed before "from astroid import MANAGER" pylint(wrongimport-order) [5, 1]

I get these errors even if I put the following code in a module:

""" module that is doing nothing """
i = 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1

I am using Python 3.8.6 and the following pylint versions:
pylint==2.6.0
pylint-flask==0.6
pylint-flask-sqlalchemy==0.2.0
pylint-plugin-utils==0.6

If I remove the plugin ""pylint_flask_sqlalchemy", then my errors are gone (but I then obviously get all the sqlalchemy" related errors

@herrboyer herrboyer added the bug Something isn't working label Oct 12, 2021
@herrboyer
Copy link
Contributor

Wow, that's a pretty weird bug 😅 ! And by looking at the +1 you're not alone...

In the current state of the repository (we made lots of changes this week) I can't reproduce the bug. So I suggest to leave this ticket on hold while waiting for v1 to see if the problem persists, would that be okay with you?

Thanks

@timmornYE
Copy link

timmornYE commented Feb 16, 2022

Any progress on that?

Or a workaround meanwhile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants