-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[__implements__] Remove everything related to the rejected PEP245 #8404
[__implements__] Remove everything related to the rejected PEP245 #8404
Conversation
For |
I've done the cleanup, I'm going to push :) |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #8404 +/- ##
==========================================
+ Coverage 95.63% 95.66% +0.02%
==========================================
Files 176 176
Lines 18612 18531 -81
==========================================
- Hits 17799 17727 -72
+ Misses 813 804 -9
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few more places in pyreverse
that can be cleaned up now, but the important stuff is included and tests adapted, thanks for that!
From the first quick look the following things can be removed as well:
DiagramWriter.write_classes
--> everything related to implementation linksprinter.py
:NodeType.INTERFACE
andEdgeType.IMPLEMENTS
, and for the concretePrinter
classes the places where those are used
As said I can take a closer look tomorrow and create a follow up PR. Especially the NodeType.INTERFACE
is something that as far as I know did not even work as intended, and I would have to take a closer look at it as well.
d329c2d
for more information, see https://pre-commit.ci
Changelog: https://pylint.pycqa.org/en/latest/whatsnew/3/3.0/index.html#summary-release-highlights remove `__implements__`: That attribute is apparently from a rejected PEP. They say to inherit from BaseChecker, which we are already doing. pylint-dev/pylint#8404 check_messages -> only_required_for_messages: Seems straightforward instructions. I haven't actually tested it. pylint-dev/pylint#8409 remove emptystring extension: Looks like this has been replaced by https://pylint.readthedocs.io/en/stable/user_guide/messages/convention/use-implicit-booleaness-not-comparison-to-string.html Which is disabled by default but we have `enable=ALL`, so I guess that means we indeed have it enabled. And update changelog URLs.
Pylint removed support for this in this PR pylint-dev/pylint#8404
Pylint removed support for this in this PR pylint-dev/pylint#8404
Was removed in pylint-dev/pylint#8404.
* Bump pylint from 2.17.5 to 3.0.2 in /misc/requirements Bumps [pylint](https://github.com/pylint-dev/pylint) from 2.17.5 to 3.0.2. - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](pylint-dev/pylint@v2.17.5...v3.0.2) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Pylint checkers: remove __implements__ Was removed in pylint-dev/pylint#8404. * Pylint: Other fixes for pylint v3.0.0 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: karlch <[email protected]>
Remove the `__implements__ = IReporter` to avoid issue #5. This was removed in pylint in pylint-dev/pylint#8404
Type of Changes
Description
Everything related to the
__implements__
construct was removed. It was based on PEP245that was proposed in 2001 and rejected in 2006. It includes everything in
pylint.interfaces
Checker
should only inheritBaseChecker
or any of the other checker types frompylint.checkers
.Reporter
should only inheritBaseReporter
.The capability from pyreverse to take it into account when generating diagrams was also removed.