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

Mark no-self-use as moved to extensions #6932

Merged

Conversation

jacobtylerwalls
Copy link
Member

@jacobtylerwalls jacobtylerwalls commented Jun 12, 2022

Type of Changes

Type
βœ“ πŸ“œ Docs

Description

See #6931 (comment)

Before
Command line:1:0: W0012: Unknown option value for '--enable', expected a valid pylint message and got 'no-self-use' (unknown-option-value)
After
Command line:1:0: R0022: Useless option value for '--enable', 'no-self-use' was moved to an optional extension, see https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers. (useless-option-value)

@jacobtylerwalls jacobtylerwalls added the Maintenance Discussion or action around maintaining pylint or the dev workflow label Jun 12, 2022
@jacobtylerwalls jacobtylerwalls added this to the 2.14.2 milestone Jun 12, 2022
@jacobtylerwalls jacobtylerwalls added the Needs backport Needs to be cherry-picked on the current patch version by a pylint's maintainer label Jun 12, 2022
@coveralls
Copy link

coveralls commented Jun 12, 2022

Pull Request Test Coverage Report for Build 2486826741

  • 28 of 28 (100.0%) changed or added relevant lines in 5 files are covered.
  • 43 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.01%) to 95.541%

Files with Coverage Reduction New Missed Lines %
pylint/checkers/spelling.py 1 77.78%
pylint/checkers/exceptions.py 5 97.72%
pylint/checkers/base/basic_checker.py 9 97.83%
pylint/checkers/typecheck.py 28 95.17%
Totals Coverage Status
Change from base Build 2484036683: 0.01%
Covered Lines: 16412
Relevant Lines: 17178

πŸ’› - Coveralls

@github-actions

This comment has been minimized.

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.

Thank you for the quick reaction !

no-self-use was not deleted, it's moved to an extension, I think we need to separate the two cases (I plan to document deleted messages for #6670, so there will be an issue if a "deleted messages" contains extensions message that are documented elsewhere). This can't be merged with only the suggestion I made, we also need to check the use so we can merge both dict when applicable or use one or the other for other cases (we'll need to think about it for each use I think).

pylint/message/_deleted_message_ids.py Outdated Show resolved Hide resolved
Co-authored-by: Pierre Sassoulas <[email protected]>
@jacobtylerwalls jacobtylerwalls changed the title Mark no-self-use as deleted (moved to extensions) Mark no-self-use as moved to extensions Jun 12, 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.

πŸ‘ extending the MessageIdStore handling., the good thing is it work for plugin creator too without them having to know about this constant we just added.

pylint/message/message_id_store.py Outdated Show resolved Hide resolved
pylint/message/message_id_store.py Outdated Show resolved Hide resolved
Co-authored-by: Pierre Sassoulas <[email protected]>
@github-actions

This comment has been minimized.

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 πŸ‘Œ

@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 ab40456

@Pierre-Sassoulas Pierre-Sassoulas merged commit 8ef0558 into pylint-dev:main Jun 13, 2022
@jacobtylerwalls jacobtylerwalls deleted the mark-no-self-use-deleted branch June 13, 2022 12:38
@Pierre-Sassoulas Pierre-Sassoulas added Backported and removed Needs backport Needs to be cherry-picked on the current patch version by a pylint's maintainer labels Jun 15, 2022
Pierre-Sassoulas added a commit to Pierre-Sassoulas/pylint that referenced this pull request Jun 15, 2022
* Mark `no-self-use` as deleted (moved to extensions)
* Separate notions of deleted messages from moved messages

Co-authored-by: Pierre Sassoulas <[email protected]>
Pierre-Sassoulas added a commit that referenced this pull request Jun 15, 2022
* Mark `no-self-use` as deleted (moved to extensions)
* Separate notions of deleted messages from moved messages

Co-authored-by: Pierre Sassoulas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backported 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