[virt-bootstrap] [PATCH 1/7] pylint: Provide modules instad files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We should give Pylint the name of a python package or module. [1]

A python module is a file containing Python definitions and statements
or directory containing the input script (__init__.py) [2]

1: https://pylint.readthedocs.io/en/latest/user_guide/run.html#invoking-pylint
2: https://docs.python.org/2/tutorial/modules.html

Signed-off-by: Radostin Stoyanov <rstoyanov1@xxxxxxxxx>
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 6e29de2..54a2cd9 100755
--- a/setup.py
+++ b/setup.py
@@ -96,7 +96,7 @@ class CheckPylint(setuptools.Command):
         """
 
         res = 0
-        files = ' '.join(["setup.py", "src/virtBootstrap/*.py", "tests/*.py"])
+        files = ' '.join(["setup.py", "src/virtBootstrap/", "tests/"])
         output_format = "colorized" if sys.stdout.isatty() else "text"
 
         print(">>> Running pycodestyle ...")
-- 
2.14.3

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux