[PATCH 01/17] pylint: Don't exclude progress.py

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

 



Currently progress.py file was excluded from pylint/pycodestyle check
because the code was straight from python-urlgrabber and it was not
PEP8 compliant. The following patched resolve the code style issues.

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

diff --git a/setup.py b/setup.py
index 2e1215c0..658e6503 100755
--- a/setup.py
+++ b/setup.py
@@ -586,16 +586,12 @@ class CheckPylint(distutils.core.Command):
                  "tests"]
 
         output_format = sys.stdout.isatty() and "colorized" or "text"
-        exclude = ["virtinst/progress.py"]
 
         print("running pycodestyle")
         style_guide = pycodestyle.StyleGuide(
             config_file='tests/pycodestyle.cfg',
             paths=files
         )
-        style_guide.options.exclude = pycodestyle.normalize_paths(
-            ','.join(exclude)
-        )
         report = style_guide.check_files()
         if style_guide.options.count:
             sys.stderr.write(str(report.total_errors) + '\n')
@@ -604,7 +600,7 @@ class CheckPylint(distutils.core.Command):
         pylint_opts = [
             "--rcfile", "tests/pylint.cfg",
             "--output-format=%s" % output_format,
-        ] + ["--ignore"] + [os.path.basename(p) for p in exclude]
+        ]
         if self.jobs:
             pylint_opts += ["--jobs=%d" % self.jobs]
 
-- 
2.17.2

_______________________________________________
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