Hanno Böck commited on 2019-12-23 18:15:28
Zeige 1 geänderte Dateien mit 4 Einfügungen und 2 Löschungen.
... | ... |
@@ -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 |
|
18 | 20 |