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

Pass msg_store and node to FileState #6558

Merged
merged 4 commits into from
May 9, 2022

Conversation

DanielNoord
Copy link
Collaborator

  • Write a good description on what the PR does.
  • If you used multiple emails or multiple names when contributing, add your mails
    and preferred name in script/.contributors_aliases.json

Type of Changes

Type
✨ New feature
🔨 Refactoring

Description

Base change required for #6556.
Let's also make modname required. It's a bit strange that we create a FileState before even encountering a file in the __init__, but refactoring that is not part of my plan for now.

@DanielNoord DanielNoord added the Maintenance Discussion or action around maintaining pylint or the dev workflow label May 9, 2022
@DanielNoord DanielNoord added this to the 2.14.0 milestone May 9, 2022
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.

It looks like it broke the config functional tests (report not generated anymore ?). I agree with the refactoring and deprecation in general.

(I think self.file_state = FileState("BaseState", self.msgs_store) might be defined before we needs it so it's not Optional and so it's defined in the __init__ ? I agree it's strange to do it like this.)

@DanielNoord
Copy link
Collaborator Author

It looks like it broke the config functional tests (report not generated anymore ?). I agree with the refactoring and deprecation in general.

(I think self.file_state = FileState("BaseState", self.msgs_store) might be defined before we needs it so it's not Optional and so it's defined in the __init__ ? I agree it's strange to do it like this.)

I don't really know why this breaks 😓

I think it has something to do with the mocking we do in the tests. For some reason not passing self.msgs_store in self.file_state = FileState("BaseState", self.msgs_store) fixes it. That doesn't seem like it should actually break but is more indicative of inter-test dependency.

@coveralls
Copy link

coveralls commented May 9, 2022

Pull Request Test Coverage Report for Build 2293322404

  • 21 of 21 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 95.345%

Totals Coverage Status
Change from base Build 2292561596: 0.003%
Covered Lines: 16016
Relevant Lines: 16798

💛 - Coveralls

@DanielNoord
Copy link
Collaborator Author

Finally pass all tests on all platforms 🎉

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.

👍

@DanielNoord DanielNoord merged commit c09730b into pylint-dev:main May 9, 2022
@DanielNoord DanielNoord deleted the file-state branch May 9, 2022 10:45
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.

None yet

3 participants