[llvm] Add GitHub workflow for check Python file formatting (PR #65482)

Tobias Hieta via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 6 09:34:05 PDT 2023


================
@@ -0,0 +1,39 @@
+name: "Check Python Formatting"
+on:
+  pull_request:
+    # run on .py
+    paths:
+      - '**.py'
+
+jobs:
+  python_formatting:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Fetch LLVM sources
+        uses: actions/checkout at v4
+        with:
+          persist-credentials: false
+          fetch-depth: 2
----------------
tru wrote:

darker is just formatting the diff for the PR - so we need the history to compute the diff from base. 2 is actually not that bad it goes pretty quickly compared to 0. 

https://github.com/llvm/llvm-project/pull/65482


More information about the llvm-commits mailing list