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

Pylint reporter cleanup #5003

Merged

Conversation

Pierre-Sassoulas
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas commented Sep 14, 2021

Type of Changes

Type
βœ“ πŸ› Bug fix
βœ“ πŸ”¨ Refactoring

Description

This create a file for the BaseWriter that was hidden in the init file and was creating circular import when trying to add typing in #5004 . Also remove a piece of code that was always failing,(probably a misunderstanding at some point). It should provide slightly better performances by not try-catching an error and calling lower on the class name multiple time..

Remove dead code that was always failing and replace it by
an attribute directly.
@Pierre-Sassoulas Pierre-Sassoulas added the Maintenance Discussion or action around maintaining pylint or the dev workflow label Sep 14, 2021
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.11.0 milestone Sep 14, 2021
@coveralls
Copy link

coveralls commented Sep 14, 2021

Pull Request Test Coverage Report for Build 1233911269

  • 48 of 49 (97.96%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.001%) to 93.083%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pylint/reporters/ureports/nodes.py 2 3 66.67%
Totals Coverage Status
Change from base Build 1232904023: -0.001%
Covered Lines: 13256
Relevant Lines: 14241

πŸ’› - Coveralls

Copy link
Member

@cdce8p cdce8p left a comment

Choose a reason for hiding this comment

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

Not an area I know too much about, but the change itself looks good.

pylint/reporters/ureports/__init__.py Outdated Show resolved Hide resolved
@Pierre-Sassoulas Pierre-Sassoulas merged commit de9af75 into pylint-dev:main Sep 14, 2021
@Pierre-Sassoulas Pierre-Sassoulas deleted the pylint-reporter-cleanup branch September 14, 2021 14:06
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