Browse code

add update-freewvsdb and setup.py to coding style checks

Hanno Böck authored on23/12/2019 18:15:28
Showing1 changed files
... ...
@@ -6,12 +6,14 @@ import glob
6 6
 class TestCodingstyle(unittest.TestCase):
7 7
     @staticmethod
8 8
     def test_codingstyle():
9
-        pyfiles = ["freewvs"] + glob.glob("tests/*.py")
9
+        pyfiles = ["freewvs", "update-freewvsdb",
10
+                   "setup.py"] + glob.glob("tests/*.py")
10 11
         subprocess.run(["pycodestyle", "--ignore=W503"]
11 12
                        + pyfiles, check=True)
12 13
         subprocess.run(["pyflakes"] + pyfiles, check=True)
13 14
 
14
-        pylint_disable = "missing-docstring,invalid-name,too-many-arguments"
15
+        pylint_disable = "missing-docstring,invalid-name," \
16
+                         + "too-many-arguments,duplicate-code"
15 17
         subprocess.run(["pylint", "--disable=%s" % pylint_disable]
16 18
                        + pyfiles, check=True)
17 19