Skip to content

Commit ddfc23c

Browse files
authored
Create black-formatting.yml
Trying this to see what it does. I think it looks at formatting, but does not make changes
1 parent 176c6ff commit ddfc23c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Black Code Formatter
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
black-check:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.11' # or whatever version your project uses
20+
21+
- name: Install Black
22+
run: pip install black
23+
24+
- name: Run Black
25+
run: black --check .

0 commit comments

Comments
 (0)