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

Run linking and diadef handling with patched sys.path #6617

Merged

Conversation

DudeNr33
Copy link
Collaborator

@DudeNr33 DudeNr33 commented May 15, 2022

  • 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
🐛 Bug fix
🔨 Refactoring

Description

Everything until (and including) handler.get_diadefs should happen in the with fix_import_path(args) block:
operations that include anything related to inference may try to import modules.

As my original goal was to enable testing the fix of #6612, I included the other necessary change for that:
Do not treat modules with a leading underscore in the functional tests folder as standalone test files.
And I noticed that I didn't write tests for the pyreverse testutils so far, so added some basic tests for that as well.

@DudeNr33 DudeNr33 added pyreverse Related to pyreverse component Maintenance Discussion or action around maintaining pylint or the dev workflow labels May 15, 2022
@DudeNr33 DudeNr33 added this to the 2.14.0 milestone May 15, 2022
@coveralls
Copy link

coveralls commented May 15, 2022

Pull Request Test Coverage Report for Build 2327649764

  • 5 of 5 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased ( 0.0006%) to 95.35%

Totals Coverage Status
Change from base Build 2327201803: 0.0006%
Covered Lines: 16054
Relevant Lines: 16837

💛 - Coveralls

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.

LGTM !

@Pierre-Sassoulas Pierre-Sassoulas merged commit 4169f6b into pylint-dev:main May 17, 2022
@DudeNr33 DudeNr33 deleted the fix-sys-path-patching-pyreverse branch May 17, 2022 15:47
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 pyreverse Related to pyreverse component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants