Skip to content

Conversation

@shifqu
Copy link
Contributor

@shifqu shifqu commented Nov 4, 2025

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Closes #10669

@github-actions

This comment has been minimized.

@codecov
Copy link

codecov bot commented Nov 4, 2025

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 95.98%. Comparing base (eade69e) to head (f75ffd0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #10720   +/-   ##
=======================================
  Coverage   95.98%   95.98%           
=======================================
  Files         176      176           
  Lines       19540    19540           
=======================================
  Hits        18755    18755           
  Misses        785      785           
Files with missing lines Coverage Ξ”
pylint/lint/expand_modules.py 95.34% <ΓΈ> (ΓΈ)
πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

This comment has been minimized.

@Pierre-Sassoulas
Copy link
Member

Thank you great PR, and great catch.

@shifqu
Copy link
Contributor Author

shifqu commented Nov 12, 2025

@Pierre-Sassoulas , what is keeping us from merging this? If there is any more work to be done, I'd like to get it done :)

The linked issue is labeled 'high priority' and this PR effectively restores functionality.

@Pierre-Sassoulas
Copy link
Member

Yeah sorry I wanted to release this asap but I need to reproduce the bug and test the fix which I wasn't able to. Adding an automated test, if at all possible, would help.

@shifqu shifqu force-pushed the fix/ignore-option-does-not-work branch from e9768d2 to cf5a9e6 Compare November 12, 2025 21:20
@shifqu
Copy link
Contributor Author

shifqu commented Nov 12, 2025

Thanks for letting me know, I attempted to write a test for it, I used the repro steps from the linked issue, added this under regrtest_data and then point to that in the test_expand_modules.py test-file. The test passes, but if you revert my change, the test fails, because it would return the test/init.py file as well.

The ignore_list_re = [re.compile("^\\.#")] comes from my local repo where I can reproduce the issue. This is what it passed to expand_modules.

@github-actions
Copy link
Contributor

πŸ€– According to the primer, this change has no effect on the checked open source code. πŸ€–πŸŽ‰

This comment was generated for commit f75ffd0

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.

Great, thank you !

@Pierre-Sassoulas Pierre-Sassoulas merged commit cd2839d into pylint-dev:main Nov 13, 2025
44 checks passed
pylint-backport bot pushed a commit that referenced this pull request Nov 13, 2025
@Pierre-Sassoulas
Copy link
Member

Congratulation on becoming a pylint contributor, on a very impactful issue too πŸŽ‰

Pierre-Sassoulas pushed a commit that referenced this pull request Nov 13, 2025
… modutils.get_module_files (#10740)

fix(expand_modules): pass ignore_list to modutils.get_module_files (#10720)

(cherry picked from commit cd2839d)

Co-authored-by: shifqu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'ignore' option doesn't work in pylint 4.0.0 anymore

2 participants