Skip to content

Test the new pylint extension #18739

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
3 tasks done
karthiknadig opened this issue Mar 21, 2022 · 0 comments
Closed
3 tasks done

Test the new pylint extension #18739

karthiknadig opened this issue Mar 21, 2022 · 0 comments

Comments

@karthiknadig
Copy link
Member

karthiknadig commented Mar 21, 2022

Refs: #18653

Complexity: 1

Create Issue


Requirements

Install the following extension: https://marketplace.visualstudio.com/items?itemName=ms-python.pylint
NOTE: Currently only pre-release version in available.

Verification

You should not have to install pylint. Just open a python file and you should see problems (if they exist). Try this for example:

import re
import unittest


class TestSum(unittest.TestCase):
    def test_sum(self):
        self.assertEqual(sum([1, 2, 3]), 6, "Should be 6")

    def test_sum_tuple(self):
        self.assertEqual(sum((1, 2, 3)), 6, "Should be 6")


if __name__ == "__main__":
    unittest.main()
    print(x)

You should see problems, like this:
image

If you run into any problems, you should be able to see logs under Output > Pylint.

@karthiknadig karthiknadig removed the triage-needed Needs assignment to the proper sub-team label Mar 21, 2022
@dbaeumer dbaeumer added this to the March 2022 milestone Mar 21, 2022
@alexdima alexdima removed their assignment Mar 22, 2022
@deepak1556 deepak1556 removed their assignment Mar 22, 2022
@connor4312 connor4312 removed their assignment Mar 22, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants