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 78c5e97 commit 6f05879Copy full SHA for 6f05879
.github/workflows/format.yml
@@ -0,0 +1,38 @@
1
+name: Format
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ paths-ignore:
7
+ - '**.md'
8
+ - 'public/**'
9
10
+permissions:
11
+ contents: read
12
13
+jobs:
14
+ format:
15
+ runs-on: ubuntu-22.04
16
17
+ steps:
18
+ - name: Checkout code
19
+ uses: actions/checkout@v3
20
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v4
23
+ with:
24
+ python-version: "3.11"
25
26
+ - name: Set up Node
27
+ uses: actions/setup-node@v4
28
29
+ node-version: "22"
30
31
+ - name: Install formatters
32
+ run: pip install black
33
34
+ - name: Run formatters
35
+ run: |
36
+ black .
37
+ npx --yes prettier@3 '**/*.{js,mjs}' --ignore-path .gitignore --write
38
+ git --no-pager diff --patch --exit-code
0 commit comments