Skip to content

Commit

Permalink
[Py Reformat] Exclude third-party in code-format-helper.py (llvm#…
Browse files Browse the repository at this point in the history
…83872)

Follow-up from PR llvm#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`.
  • Loading branch information
mtrofin committed Mar 4, 2024
1 parent 503075e commit a81a7b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/utils/git/code-format-helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def update_pr(self, comment_text: str, args: FormatArgs, create_new: bool) -> No
pr.as_issue().create_comment(comment_text)

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

Expand Down

0 comments on commit a81a7b9

Please sign in to comment.