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

Radostin Stoyanov rstoyanov1 at gmail.com
Wed Feb 28 00:10:59 UTC 2018


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 at gmail.com>
---
 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




More information about the virt-tools-list mailing list