-
-
Notifications
You must be signed in to change notification settings - Fork 266
[REF] pylint script: Migrate bash pylint script to python. #229
Conversation
ffb6bb8
to
dc942f1
Compare
:return: Integer with quantity of fails found. | ||
""" | ||
count = 0 | ||
for msg in linter_stats['by_msg']: |
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.
All messages are errors?
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.
Yes, here return all checks activated in cfg and found.
If a check is returned then is a fail. (Currently bash script is working equal)
If you dont want a fail then you remove the check from cfg file
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.
Thanks for the clarification
OK then You have my 👍 |
@pedrobaeza |
FYI travis-build using this PR without pylint fails and other one travis-build-w/fails |
👍 just discovered the click pylib Thanks @moylop260 |
👍 |
Give me a second please, before of merge. |
By the good comment of @pedrobaeza 👍 NOTE: Can live with 2 commits (no rebase) for don't have that change the other progressive PR (just a git pull)? |
c02b256
to
d70d954
Compare
I merged this PR in our forked project and work fine! |
We have 3 approvals, so merging to continue with next steps |
[REF] pylint script: Migrate bash pylint script to python.
Hi all, I have a failing build here: https://travis-ci.org/OCA/runbot-addons/jobs/76416680#L241 Unless anyone sees the problem real quick, what do you think about reverting this one? Thanks! |
@lepistone |
thanks a lot @moylop260 |
@lepistone I will to fix it to exit(0) and print a msg when the path is empty. Now, with or without this fix... in your builds the lint's never are checked. Maybe you could add an |
Thanks for your answer @moylop260. I'm lost here: I don't see why should the Also can you explain about |
Ok, I got it |
I have created a new video with your current case video |
Thanks @moylop260! OCA/runbot-addons#53 |
I will to add this case in our selftest of MQT and fix it to catch this problem. |
I disagree with the addition of the
|
I can work to remove click after of finish all my pending pylint pr without problem. |
And Can you add in guidelines our "standard lib" list too, please? |
Which guidelines do you talk about? |
2015-08-21 8:32 GMT-05:00 Guewen Baconnier [email protected]:
Guidelines that explicit say "What is considered 'Use a new lib' and what If the feature "USe click" is considered a feature, we should have a For use use click is part of "use the tools"! Saludos Cordiales CEO at Vauxoo https://www.vauxoo.com Odoo's Gold Partner. [image: --] |
@nhomar We shall not have a guideline forbidding the usage of external libraries. Taking the decision to add a new library should be motivated by good reasons and it is not the matter of rules or guidelines but is exactly the matter of code reviews. Against @moylop260 The argument parsers of the Python Standard Library are optparse and argparse. |
Now, I tend to agree with @guewen MQT should be light and super fast, it is intended to be launched only by travis and several times by hours. What we could do is making other repos to be used by humans implementing a more user friendly way of launching lints and tests which could be less lightweight based on MQT files. |
But with these changes you still have a super-fast suite, but more understandable and hackable (certain blocks of code are not executed if not activated with parameters). I don't really understand your reluctancy... This PR is merged already 4 days ago, and you can check new Travis checks. You won't find any difference in times before and after this change. |
On this point about the "fast suite" everybody is agreed, no question about that, and that is a topic which is considered also here. In futures points we can tend to discuss about "specific" topics, because if we continue talking generally speaking without specific topics then simply we are wasting lot of time. Are you agreed to discuss this on the proper mailing list?. |
No description provided.