git.schokokeks.org
Repositories
Help
Report an Issue
freewvs.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
30b1344
Branches
Tags
master
v0.1.1
v0.1.2
v0.1.3
v0.1.4
freewvs.git
tests
test_codingstyle.py
typo in test filename (codingstype -> codingstyle)
Hanno Böck
commited
30b1344
at 2021-10-25 14:21:08
test_codingstyle.py
Blame
History
Raw
import unittest import subprocess import glob class TestCodingstyle(unittest.TestCase): @staticmethod def test_codingstyle(): pyfiles = ["freewvs", "update-freewvsdb", "setup.py"] + glob.glob("tests/*.py") subprocess.run(["pycodestyle", "--ignore=W503"] + pyfiles, check=True) subprocess.run(["pyflakes"] + pyfiles, check=True) pylint_disable = "missing-docstring,invalid-name,duplicate-code," \ + "too-many-arguments,consider-using-with," \ + "consider-using-f-string" subprocess.run(["pylint", "--disable=%s" % pylint_disable] + pyfiles, check=True) subprocess.run(["flake8", "--select=DUO"] + pyfiles, check=True) subprocess.run(["pyupgrade", "--keep-percent-format", "--py38-plus"] + pyfiles, check=True) if __name__ == '__main__': unittest.main()