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

Move TestVariablesChecker to functional tests #5400

Merged
merged 1 commit into from
Nov 25, 2021

Conversation

DanielNoord
Copy link
Collaborator

  • Add yourself to CONTRIBUTORS if you are a new contributor.
  • Write a good description on what the PR does.

Type of Changes

Type
🔨 Refactoring

Description

Step one of many.

@DanielNoord DanielNoord added the Maintenance Discussion or action around maintaining pylint or the dev workflow label Nov 25, 2021
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the fact that you did it for one file only, it makes it more manageable as there are small moving part to takes into account during review. What do you think about the time it took you to do the refactor ? Was it worth it ? If that's the case I'll open an issue to track each file we need to move.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1505171962

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.506%

Totals Coverage Status
Change from base Build 1504666202: 0.0%
Covered Lines: 13995
Relevant Lines: 14967

💛 - Coveralls

@DanielNoord
Copy link
Collaborator Author

This one was okay, but I looked at some of the other files and they might be more difficult. There are tests such as TestImportsChecker and TestDeprecatedChecker which are not as straightforward..

@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.12.2 milestone Nov 25, 2021
@Pierre-Sassoulas
Copy link
Member

There are tests such as TestImportsChecker and TestDeprecatedChecker which are not as straightforward..

Let's not focus too much on this then, clearly, it's not a high priority issue. I think more typing in astroid will yield better result

@Pierre-Sassoulas
Copy link
Member

Although clearly this make pylint more friendly for new contributors and removing almost 100 lines of code is obviously a very good thing..

@DanielNoord
Copy link
Collaborator Author

it's not a high priority issue.

I don't necessarily agree.

See L160 in tests/checkers/unittest_unicode.py in #5311. Contributors are running into issues with this and are forced to ignore end_column. In the end that means we will only need to update more code. I think this is actually quite high priority and the checking of end_column should be turned on sooner than later.

@Pierre-Sassoulas
Copy link
Member

In the end that means we will only need to update more code.

True, true. Also unittest are very hard to understand comparatively. For maintenance work it's pretty high on the list for sure. I was comparing the priority to the json output for 3.0 alpha that will make vscode and pycharm better or other high value issues directly affecting known bugs or highly demanded features.

@Pierre-Sassoulas Pierre-Sassoulas merged commit da275b0 into pylint-dev:main Nov 25, 2021
@DanielNoord DanielNoord deleted the move-unittests-1 branch November 28, 2021 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining pylint or the dev workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants