[virt-tools-list] [virt-manager] [PATCH 0/5] Use pylint/pycodestyle modules

2018-03-02 Thread Radostin Stoyanov
Radostin Stoyanov (5): pylint: Use pylint.lint module pylint: Silence inconsistent-return-statements pylint: Resolve logging-not-lazy pylint: Resolve consider-using-enumerate pycodestyle: Use module instead of executable setup.py| 33 -

[virt-tools-list] [virt-manager] [PATCH 4/5] pylint: Resolve consider-using-enumerate

2018-03-02 Thread Radostin Stoyanov
Use enumerate instead of iterating with range and len. This pylint message is emitted when code that iterates with range and len is encountered. Such code can be simplified by using the enumerate built-in. [1] In addition, remove some unused variables to avoid warnings `unused-argument` and `redef

[virt-tools-list] [virt-manager] [PATCH 2/5] pylint: Silence inconsistent-return-statements

2018-03-02 Thread Radostin Stoyanov
A new Python checker was added to warn about "inconsistent return statements" [1]. A function or a method has inconsistent return statements if it returns both explicit and implicit values. [1] https://pylint.readthedocs.io/en/latest/whatsnew/1.8.html Signed-off-by: Radostin Stoyanov --- tests/

[virt-tools-list] [virt-manager] [PATCH 5/5] pycodestyle: Use module instead of executable

2018-03-02 Thread Radostin Stoyanov
The `pycodestyle-3` executable is provided by the `python3-pycodestyle` rpm package. On Debian the corresponding executable is called `pycodestyle3`. Arch Linux uses Python 3 by default and `python2-pycodestyle` package is used for the py2 version. To get around this inconsistency, import the `pyc

[virt-tools-list] [virt-manager] [PATCH 1/5] pylint: Use pylint.lint module

2018-03-02 Thread Radostin Stoyanov
The `pylint-3` executable is provided by the python3-pylint rpm package on Fedora. For Debian the equivalent is `pylint3`. On Arch Linux the default version of Python is 3. Pylint lints for the version of Python it is running. Instead of spawning an executable, import the `pylint.lint` module and

[virt-tools-list] [virt-manager] [PATCH 3/5] pylint: Resolve logging-not-lazy

2018-03-02 Thread Radostin Stoyanov
A new Python checker was added to warn about using a + operator inside call of logging methods when one of the operands is a literal string. https://pylint.readthedocs.io/en/latest/whatsnew/1.8.html Signed-off-by: Radostin Stoyanov --- tests/clitest.py | 2 +- virtManager/addhardware.

[virt-tools-list] [virt-manager] [PATCH] virtinst: progress: Simplify if-statement

2018-03-02 Thread Radostin Stoyanov
Signed-off-by: Radostin Stoyanov --- virtinst/progress.py | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/virtinst/progress.py b/virtinst/progress.py index 29bff358..4284f854 100644 --- a/virtinst/progress.py +++ b/virtinst/progress.py @@ -253,10 +253,8 @@ class T

Re: [virt-tools-list] [PATCH 0/2] Show IP address in virt-manager

2018-03-02 Thread Michal Privoznik
On 03/02/2018 07:27 AM, Dylan Stephano-Shachter wrote: > I have added a feature to show a VM's first IP address next to the VM state > (Running, etc.). This feature can be toggled in the preferences menu and is > disabled by default. It uses the qemu-guest agent to query the IP address. > > Dyla

Re: [virt-tools-list] [PATCH 0/2] Show IP address in virt-manager

2018-03-02 Thread Dylan Stephano-Shachter
That is interesting. Could you possibly run virt-manager with --debug and send me any stacktraces you see? On Mar 2, 2018 7:55 AM, "Michal Privoznik" wrote: > On 03/02/2018 07:27 AM, Dylan Stephano-Shachter wrote: > > I have added a feature to show a VM's first IP address next to the VM > state