forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-lintingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Description
I'm not sure why, but I seem to have this bug that just won't go away
Already updated my Pylint to 2.0 and the problem persists
pylint omartan$ pylint --version
pylint 2.0.0
astroid 2.0.1
Python 3.7.0 (default, Jul 13 2018, 22:26:36)
[Clang 9.1.0 (clang-902.0.39.2)]
Attached is a sample file that has the problem
bug_test.py.zip
I'm using MacOS High Sierra (latest) and VSCode
If I were to run the code in terminal (not the built-in vscode terminal), it gives this result which is different from what's given in Code
pylint bug_test.py
************* Module bug_test
bug_test.py:36:14: C0326: No space allowed before bracket
print (f"Player 1: {move1} Player 2: {move2}")
^ (bad-whitespace)
bug_test.py:41:14: C0326: No space allowed before bracket
print ("Game start!")
^ (bad-whitespace)
bug_test.py:51:0: C0305: Trailing newlines (trailing-newlines)
bug_test.py:1:0: C0111: Missing module docstring (missing-docstring)
bug_test.py:5:-1: W0105: String statement has no effect (pointless-string-statement)
bug_test.py:7:0: C0103: Constant name "moves" doesn't conform to UPPER_CASE naming style (invalid-name)
bug_test.py:13:0: C0111: Missing class docstring (missing-docstring)
bug_test.py:14:4: C0111: Missing method docstring (missing-docstring)
bug_test.py:14:4: R0201: Method could be a function (no-self-use)
bug_test.py:18:4: C0111: Missing method docstring (missing-docstring)
bug_test.py:22:0: C0111: Missing function docstring (missing-docstring)
bug_test.py:30:8: C0103: Attribute name "p1" doesn't conform to snake_case naming style (invalid-name)
bug_test.py:31:8: C0103: Attribute name "p2" doesn't conform to snake_case naming style (invalid-name)
bug_test.py:28:0: C0111: Missing class docstring (missing-docstring)
bug_test.py:33:4: C0111: Missing method docstring (missing-docstring)
bug_test.py:42:12: W0622: Redefining built-in 'round' (redefined-builtin)
bug_test.py:40:4: C0111: Missing method docstring (missing-docstring)
bug_test.py:49:4: C0103: Constant name "game" doesn't conform to UPPER_CASE naming style (invalid-name)
------------------------------------------------------------------
Your code has been rated at 4.19/10 (previous run: 4.19/10, +0.00)
As discussed on pylint GitHub project, probably Code uses its own pylint version?
The errors/warnings you are getting in the terminal are the ones expected to have in VSCode as well. I think VSCode somehow uses a different Python interpreter, and not the Python 3.7 one. Or if it uses Python 3.7, it doesn't use pylint 2.0.
Metadata
Metadata
Assignees
Labels
area-lintingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
