Skip to content

Commit f44b14d

Browse files
committed
add black action
1 parent 8106815 commit f44b14d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/black.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: black
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.py'
7+
8+
jobs:
9+
format:
10+
runs-on: ubuntu-16.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.x'
16+
17+
- name: Install Black
18+
run: pip install -r linter-requirements.txt
19+
20+
- name: Run Black
21+
run: black tests examples sentry_sdk
22+
23+
- name: Commit changes
24+
run: |
25+
git config --global user.name 'sentry-bot'
26+
git config --global user.email '[email protected]'
27+
git commit -am "fix: Formatting"
28+
git push

0 commit comments

Comments
 (0)