-
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
Vrouter fixes pylint #1603
Vrouter fixes pylint #1603
Conversation
kudos for all the hard work! Most of this should've been done a long time ago as Side notes:
e.g.:
|
Hi @The-Loeki, and thank you for your prompt comment! For your side notes:
I didn't want to change "too much" (well, I think my patch is already too much; we should focus on documentation after that); if I did replace all double quote with single, for example, I would break But I'm totally willing to put some more work for conformity, if there is a will for it upstream ;^) |
Hi :) sorry I was unable to process your request to merge your PR with mine, as you can probably tell by now this would've oversized & muddied both PR's ;) So the The logging one is an excellent remark though, wading through the docs I notice that they've added the I'm not sure from the top of my head which version the SysVM's are using, but if it's not Py3 it oughta be (here comes the next big-ass PR ;) ) |
@romain-dartigues can you rebase against latest master and push -f? |
Mostly removing unused modules, but also defined some missing variables. 40 'X' imported but unused 9 'from X import *' used; unable to detect undefined names 9 local variable 'X' is assigned to but never used 1 redefinition of unused 'X' from line Y 1 undefined name 'X'
I kept the changes at the minimum to make pylint happy, I don't expect regressions but there were some bugs. Using default configuration: > Your code has been rated at 9.08/10 (previous run: 6.33/10, +2.75) * pylint 1.5.5, * astroid 1.4.5 * Python 2.7.11 (default, Feb 22 2016, 09:22:43) * [GCC 4.8.2] Previous run is before the patch: +-----------+--------+-------+----------+------------+ | type | number | % | previous | difference | +===========+========+=======+==========+============+ | code | 3700 | 64.35 | 3689 | +11.00 | +-----------+--------+-------+----------+------------+ | docstring | 356 | 6.19 | 340 | +16.00 | +-----------+--------+-------+----------+------------+ | comment | 837 | 14.56 | 809 | +28.00 | +-----------+--------+-------+----------+------------+ | empty | 857 | 14.90 | 851 | +6.00 | +-----------+--------+-------+----------+------------+ +------------+--------+----------+------------+ | type | number | previous | difference | +============+========+==========+============+ | convention | 243 | 489 | -246.00 | +------------+--------+----------+------------+ | refactor | 30 | 51 | -21.00 | +------------+--------+----------+------------+ | warning | 34 | 657 | -623.00 | +------------+--------+----------+------------+ | error | 1 | 11 | -10.00 | +------------+--------+----------+------------+
Few more code conformity (long lines and such).
c558c76
to
a29770d
Compare
Done. |
@romain-dartigues can you fix the conflicts thanks |
Thanks @romain-dartigues for your PR, I've included similar changes in PR #2211 and added pylint/pep checks to Travis. Due to duplicate nature of work and that this PR has not received much activity in last 1+ year I'll close this. Many thanks again for your hard work and initiative. |
In my dreams, all Python code pass through pylint and must validate before a merge.
This merge request is becoming quite big, maybe too much; I'd like to have the owners opinion.
It follow the previous pull requests: