Skip to content

Commit a81a7b9

Browse files
authored
[Py Reformat] Exclude third-party in code-format-helper.py (#83872)
Follow-up from PR #83491. `Darker`'s configuration is ignored because of the way we invoke it - with an explicit list of files. We need to filter it in `code-format-helper.py`.
1 parent 503075e commit a81a7b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/utils/git/code-format-helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def update_pr(self, comment_text: str, args: FormatArgs, create_new: bool) -> No
125125
pr.as_issue().create_comment(comment_text)
126126

127127
def run(self, changed_files: List[str], args: FormatArgs) -> bool:
128+
changed_files = [arg for arg in changed_files if "third-party" not in arg]
128129
diff = self.format_run(changed_files, args)
129130
should_update_gh = args.token is not None and args.repo is not None
130131

0 commit comments

Comments
 (0)