-
-
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
Refactor to remove circular import linked to build_message_definition #2844
Refactor to remove circular import linked to build_message_definition #2844
Conversation
a833e10
to
9ccb529
Compare
9ccb529
to
56243ee
Compare
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.
Hey @Pierre-Sassoulas Sorry for the delayed review! This looks great, but there are some minor changes we need before getting this in, the major one being not using variable type assignments given that we still support 3.4 and 3.5.
Hi, @PCManticore thank you for the review. I took what you said into account but I'm not pushing the change yet because the |
56243ee
to
3d1de86
Compare
Following review see : pylint-dev#2844 (comment)
Following review see : pylint-dev#2844 (comment)
Following review see : pylint-dev#2844 (comment)
Following review see here : pylint-dev#2844 (comment)
3d1de86
to
d4d3c92
Compare
Following review see : pylint-dev#2844 (comment)
Following review see : pylint-dev#2844 (comment)
Following review see here : pylint-dev#2844 (comment)
0fa78e9
to
d8b7211
Compare
Hi @PCManticore. I took some time to fix this, there was a lot of disentanglement of print and output producing with implicit line feed when you use print to take into account. Sadly I could not keep the |
3c355df
to
1f5ec63
Compare
Following review see : pylint-dev#2844 (comment)
Following review see : pylint-dev#2844 (comment)
Following review see here : pylint-dev#2844 (comment)
92216e2
to
5ad5871
Compare
Hey @Pierre-Sassoulas This looks great, thank you for the hard work! The Python 3.4 failure is preexisting, as well as the 3.8 one. But I noticed that |
Sure. I'll also rebase and fix the merging conflicts that appeared. |
Following review see : pylint-dev#2844 (comment)
Following review see : pylint-dev#2844 (comment)
Following review see : pylint-dev#2844 (comment)
Following review see here : pylint-dev#2844 (comment)
Because we want to make it a public function.
We want to use them in Checker too.
At long last.
Mypy requirements and python 3.4 seem incompatible.
I used the old name but there was probably a typo in it, as the format is called rst.
This make the understanding of the function easier.
BaseChecker and MessageHandlerMixIn can be the same instance.
5ad5871
to
0918e02
Compare
@PCManticore I fixed the merge conflict, mypy, and docs. I have no idea about the error by appveyor though, is it a completely different test than tox? How can I launch it locally? |
Thanks for fixing this! Don't worry about appveyor, it's broken in |
Following review see : #2844 (comment)
Following review see : #2844 (comment)
Following review see here : #2844 (comment)
Also fixed spelling in C0112 to C0116 messages following the review of pull-request pylint-dev#2036 by Ashley Whetter. See also pylint-dev#2075, pylint-dev#2077, pylint-dev#2262, pylint-dev#2654, pylint-dev#2805, pylint-dev#2809, pylint-dev#2844, pylint-dev#2992 and pylint-dev#3013 for full historical context.
Also fixed spelling in C0112 to C0116 messages following the review of pull-request pylint-dev#2036 by Ashley Whetter. See also pylint-dev#2075, pylint-dev#2077, pylint-dev#2262, pylint-dev#2654, pylint-dev#2805, pylint-dev#2809, pylint-dev#2844, pylint-dev#2992 and pylint-dev#3013 for full historical context.
Also fixed spelling in C0112 to C0116 messages following the review of pull-request pylint-dev#2036 by Ashley Whetter. See also pylint-dev#2075, pylint-dev#2077, pylint-dev#2262, pylint-dev#2654, pylint-dev#2805, pylint-dev#2809, pylint-dev#2844, pylint-dev#2992 and pylint-dev#3013 for full historical context.
Also fixed spelling in C0112 to C0116 messages following the review of pull-request pylint-dev#2036 by Ashley Whetter. See also pylint-dev#2075, pylint-dev#2077, pylint-dev#2262, pylint-dev#2654, pylint-dev#2805, pylint-dev#2809, pylint-dev#2844, pylint-dev#2992 and pylint-dev#3013 for full historical context.
Work in progress for removing circular import with build_message_definition. Following the refactor to use checker inside the documentation function, MyPy suddenly raise a "MessagesHandlerMixIn" has no attribute "get_checkers"; that it was'nt raising before. MessagesHandlerMixIn never had a get_checkers function, but MyPy did not detect it before. the commit was just separating information retrieval from string creation in a MessagesHandlerMixIn function.
Description
build_message_definition
is used inpylint.checker.base_checker
and also inmessage.MessageHandlerMixIn.print_full_documentation
.MessageHandlerMixIn
do not have aget_checkers()
functionSo there is probably a lot of thing to change to fix this.
Type of Changes
| ✓ | 🔨 Refactoring |
Related Issue
Based on #2809 but this is not mergeable yet so creating another PR.