dfb643e8612db6a897b52ae96cbdd57d880e252e
Hanno Böck add pylint, rename

Hanno Böck authored 4 years ago

tests/test_codingstype.py  1) import glob
Hanno Böck Use isort-style import sorting

Hanno Böck authored 5 months ago

tests/test_codingstyle.py  2) import subprocess
tests/test_codingstyle.py  3) import unittest
Hanno Böck add pylint, rename

Hanno Böck authored 4 years ago

tests/test_codingstype.py  4) 
tests/test_codingstype.py  5) 
tests/test_codingstype.py  6) class TestCodingstyle(unittest.TestCase):
tests/test_codingstype.py  7)     @staticmethod
tests/test_codingstype.py  8)     def test_codingstyle():
Hanno Böck use black codingstyle

Hanno Böck authored 1 year ago

tests/test_codingstyle.py  9)         pyfiles = ["freewvs", "update-freewvsdb", "setup.py"] + glob.glob("tests/*.py")
tests/test_codingstyle.py 10)         subprocess.run(
Hanno Böck avoid bad data in the safe...

Hanno Böck authored 1 year ago

tests/test_codingstyle.py 11)             ["pycodestyle", "--ignore=W503,E501", "--max-line-length=88"] + pyfiles,
Hanno Böck use black codingstyle

Hanno Böck authored 1 year ago

tests/test_codingstyle.py 12)             check=True,
tests/test_codingstyle.py 13)         )
Hanno Böck add pylint, rename

Hanno Böck authored 4 years ago

tests/test_codingstype.py 14)         subprocess.run(["pyflakes"] + pyfiles, check=True)
Hanno Böck disable too-many-arguments...

Hanno Böck authored 4 years ago

tests/test_codingstype.py 15) 
Hanno Böck use black codingstyle

Hanno Böck authored 1 year ago

tests/test_codingstyle.py 16)         pylint_disable = (
tests/test_codingstyle.py 17)             "missing-docstring,invalid-name,duplicate-code,"
tests/test_codingstyle.py 18)             + "too-many-arguments,consider-using-with"
tests/test_codingstyle.py 19)         )
tests/test_codingstyle.py 20)         subprocess.run(["pylint", f"--disable={pylint_disable}"] + pyfiles, check=True)
Hanno Böck add pylint, rename

Hanno Böck authored 4 years ago

tests/test_codingstype.py 21) 
Hanno Böck use dlint code analyzer

Hanno Böck authored 4 years ago

tests/test_codingstype.py 22)         subprocess.run(["flake8", "--select=DUO"] + pyfiles, check=True)
Hanno Böck use black codingstyle

Hanno Böck authored 1 year ago

tests/test_codingstyle.py 23)         subprocess.run(["pyupgrade", "--py311-plus"] + pyfiles, check=True)
Hanno Böck use dlint code analyzer

Hanno Böck authored 4 years ago

tests/test_codingstype.py 24) 
Hanno Böck add pylint, rename

Hanno Böck authored 4 years ago

tests/test_codingstype.py 25) 
Hanno Böck use black codingstyle

Hanno Böck authored 1 year ago

tests/test_codingstyle.py 26) if __name__ == "__main__":