Browse code

add pylint, rename

Hanno Böck authored on22/12/2019 12:17:05
Showing2 changed files
1 1
new file mode 100644
... ...
@@ -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()
0 19
deleted file mode 100644
... ...
@@ -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()