Changeset View
Changeset View
Standalone View
Standalone View
tests/python/pep8.py
| Show All 31 Lines | |||||
| # in Debian install pylint pep8 with apt-get/aptitude/etc | # in Debian install pylint pep8 with apt-get/aptitude/etc | ||||
| # | # | ||||
| # on *nix run | # on *nix run | ||||
| # python tests/pep8.py > test_pep8.log 2>&1 | # python tests/pep8.py > test_pep8.log 2>&1 | ||||
| # how many lines to read into the file, pep8 comment | # how many lines to read into the file, pep8 comment | ||||
| # should be directly after the license header, ~20 in most cases | # should be directly after the license header, ~20 in most cases | ||||
| PEP8_SEEK_COMMENT = 40 | PEP8_SEEK_COMMENT = 40 | ||||
| SKIP_PREFIX = "./tools", "./config", "./scons", "./extern" | SKIP_PREFIX = "./tools", "./config", "./extern" | ||||
| SKIP_ADDONS = True | SKIP_ADDONS = True | ||||
| FORCE_PEP8_ALL = False | FORCE_PEP8_ALL = False | ||||
| def file_list_py(path): | def file_list_py(path): | ||||
| for dirpath, dirnames, filenames in os.walk(path): | for dirpath, dirnames, filenames in os.walk(path): | ||||
| for filename in filenames: | for filename in filenames: | ||||
| if filename.endswith((".py", ".cfg")): | if filename.endswith((".py", ".cfg")): | ||||
| ▲ Show 20 Lines • Show All 127 Lines • Show Last 20 Lines | |||||