Skip to content

Commit 9fe192e

Browse files
authored
Merge pull request #1418 from ahoppen/ahoppen/dont-format-build
Don't format files in the SwiftPM build directory
2 parents 55349f8 + 5197c1e commit 9fe192e

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)