add pylint, rename
Hanno Böck

Hanno Böck commited on 2019-12-22 12:17:05
Zeige 2 geänderte Dateien mit 18 Einfügungen und 15 Löschungen.

... ...
@@ -0,0 +1,18 @@
1
+import unittest
2
+import subprocess
3
+import glob
4
+
5
+
6
+class TestCodingstyle(unittest.TestCase):
7
+    @staticmethod
8
+    def test_codingstyle():
9
+        pyfiles = ["freewvs"] + glob.glob("tests/*.py")
10
+        subprocess.run(["pycodestyle", "--ignore=W503"]
11
+                       + pyfiles, check=True)
12
+        subprocess.run(["pyflakes"] + pyfiles, check=True)
13
+        subprocess.run(["pylint", "--disable=missing-docstring,invalid-name"]
14
+                       + pyfiles, check=True)
15
+
16
+
17
+if __name__ == '__main__':
18
+    unittest.main()
... ...
@@ -1,15 +0,0 @@
1
-import unittest
2
-import subprocess
3
-import glob
4
-
5
-
6
-class TestCodingstyle(unittest.TestCase):
7
-    def test_codingstyle(self):
8
-        subprocess.run(["pycodestyle", "--ignore=W503", "freewvs"]
9
-                       + glob.glob("tests/*.py"), check=True)
10
-        subprocess.run(["pyflakes", "freewvs"]
11
-                       + glob.glob("tests/*.py"), check=True)
12
-
13
-
14
-if __name__ == '__main__':
15
-    unittest.main()
16 0