We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bb1832 commit 9b35f5fCopy full SHA for 9b35f5f
.github/workflows/format.yaml
@@ -0,0 +1,26 @@
1
+# This is a format job. Pre-commit has a first-party GitHub action, so we use
2
+# that: https://github.com/pre-commit/action
3
+
4
+name: Formatting (pre-commit)
5
6
+on:
7
+ workflow_dispatch:
8
+ pull_request:
9
+ merge_group:
10
+ push:
11
+ branches:
12
+ - main
13
14
+jobs:
15
+ pre-commit:
16
+ name: Format
17
+ runs-on: ubuntu-22.04
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - uses: actions/setup-python@v5
21
+ with:
22
+ python-version: '3.10'
23
+ - name: Install clang-format-14
24
+ run: sudo apt-get install clang-format-14
25
+ - uses: pre-commit/[email protected]
26
+ id: precommit
0 commit comments