We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f637bb6 + 1248a63 commit 970ca1dCopy full SHA for 970ca1d
1 file changed
.github/workflows/format.yml
@@ -0,0 +1,28 @@
1
+name: format
2
+on:
3
+ pull_request:
4
+ branches: [master]
5
+jobs:
6
+ format:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+ with:
11
+ ref: ${{ github.head_ref }}
12
+ - uses: actions/checkout@v1
13
+ - name: Set up Python 3.7
14
+ uses: actions/setup-python@v1
15
16
+ python-version: 3.7
17
+ - name: Install formatter dependencies
18
+ run: |
19
+ python -m pip install --upgrade pip
20
+ python -m pip install black
21
+ - name: Format with black
22
23
+ black .
24
+ - name: Commit changes
25
+ uses: stefanzweifel/git-auto-commit-action@v4.1.2
26
27
+ commit_message: Apply formatting changes
28
+ branch: ${{ github.head_ref }}
0 commit comments