git.schokokeks.org
Repositories
Help
Report an Issue
freewvs.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
9b61bfc
Branches
Tags
master
v0.1.1
v0.1.2
v0.1.3
v0.1.4
freewvs.git
tests
test_codingstype.py
disable too-many-arguments pylint test
Hanno Böck
commited
9b61bfc
at 2019-12-22 12:31:57
test_codingstype.py
Blame
History
Raw
import unittest import subprocess import glob class TestCodingstyle(unittest.TestCase): @staticmethod def test_codingstyle(): pyfiles = ["freewvs"] + glob.glob("tests/*.py") subprocess.run(["pycodestyle", "--ignore=W503"] + pyfiles, check=True) subprocess.run(["pyflakes"] + pyfiles, check=True) pylint_disable = "missing-docstring,invalid-name,too-many-arguments" subprocess.run(["pylint", "--disable=%s" % pylint_disable] + pyfiles, check=True) if __name__ == '__main__': unittest.main()