Skip to content

Commit 5197c1e

Browse files
committed
Don't format files in the SwiftPM build directory
Otherwise, we might try to format files in `CodeGeneration/.build`
1 parent 808d403 commit 5197c1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

format.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def should_exclude(path: Path) -> bool:
9999
return True
100100
elif 'Inputs' in path.parts:
101101
return True
102+
elif '.build' in path.parts:
103+
return True
102104
return False
103105

104106
files_to_format = [file for file in files_to_format if not should_exclude(file)]

0 commit comments

Comments
 (0)