Fix pep8 checker operating on dot-files

Temporary editor files were included which could make the checker fail.
This commit is contained in:
Campbell Barton 2023-02-11 14:02:00 +11:00
parent 9f4edf8c2a
commit fefc6a73b3
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ def file_list_py(path):
for dirpath, dirnames, filenames in os.walk(path):
dirnames[:] = [d for d in dirnames if not d.startswith(".")]
for filename in filenames:
if filename.startswith("."):
continue
if filename.endswith((".py", ".cfg")):
yield os.path.join(dirpath, filename)