mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix pep8 checker operating on dot-files
Temporary editor files were included which could make the checker fail.
This commit is contained in:
parent
9f4edf8c2a
commit
fefc6a73b3
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue