<div dir="ltr"><div>> I would never never write Python code that ugly.</div><div><br></div><div>As usual with formatting the conclusions were as long as the same strange decisions are made consistently, it's worth doing.</div><div><br></div>Discussion: <a href="https://discourse.llvm.org/t/python-code-style-and-reformatting-status-update/70641/13">https://discourse.llvm.org/t/python-code-style-and-reformatting-status-update/70641/13</a><div>Overall project docs: <a href="https://llvm.org/docs/CodingStandards.html#python-version-and-source-code-formatting">https://llvm.org/docs/CodingStandards.html#python-version-and-source-code-formatting</a></div><div><br></div><div>Github PRs will also check formatting, but it's not a blocking check.</div><div><br></div><div>lldb has the "the style is llvm but also not" page: <a href="https://lldb.llvm.org/resources/contributing.html">https://lldb.llvm.org/resources/contributing.html</a>. Which hasn't felt the need to mention clang-format either, so it wouldn't be any worse not mentioning this.</div><div><br></div><div>The llvm page links to black's github which starts with how to install it. Could do with a one liner to format the changes from the last commit ala clang-format-diff.</div><div><br></div><div>Also we should link to llvm's standards from our page, I'll fix that.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 12 Sept 2023 at 17:13, Jim Ingham <<a href="mailto:jingham@apple.com">jingham@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Is there any chance we can use something other than black. I would never never write Python code that ugly.<br>
<br>
Jim<br>
<br>
<br>
> On Sep 12, 2023, at 8:47 AM, Adrian Prantl via lldb-commits <<a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a>> wrote:<br>
> <br>
> <br>
> adrian-prantl wrote:<br>
> <br>
> Have (should we) we documented that we format all python code with black somewhere and how to install the tool?<br>
> <br>
> <a href="https://github.com/llvm/llvm-project/pull/66053" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/pull/66053</a><br>
> _______________________________________________<br>
> lldb-commits mailing list<br>
> <a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits</a><br>
<br>
</blockquote></div>