Keep the place tool's venv out of the validator's file-size walk
This commit is contained in:
1 parent
d432d6a296
commit
c29f9370fe
1 file changed
+1
-1
+1
-1
@@ -945,7 +945,7 @@ def main():
|
|||||||
if ".git" in dirpath:
|
if ".git" in dirpath:
|
||||||
dirnames[:] = []
|
dirnames[:] = []
|
||||||
continue
|
continue
|
||||||
dirnames[:] = [d for d in dirnames if d != ".git"]
|
dirnames[:] = [d for d in dirnames if d not in (".git", ".venv-places")]
|
||||||
for fn in filenames:
|
for fn in filenames:
|
||||||
path = os.path.join(dirpath, fn)
|
path = os.path.join(dirpath, fn)
|
||||||
if os.path.getsize(path) > MAX_BYTES:
|
if os.path.getsize(path) > MAX_BYTES:
|
||||||
|
|||||||
Reference in new issue
Block a user