From fefc6a73b34fa628c4ba86d09fcc64bb7a4d3f1e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 11 Feb 2023 14:02:00 +1100 Subject: [PATCH] Fix pep8 checker operating on dot-files Temporary editor files were included which could make the checker fail. --- tests/python/pep8.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/python/pep8.py b/tests/python/pep8.py index 6b046f5a6af..79547d1635e 100644 --- a/tests/python/pep8.py +++ b/tests/python/pep8.py @@ -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)