Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 40a785d

Browse files
authored
Merge pull request #622 from datafold/formatter_step
add formatter + annotation step to PRs
2 parents 58f2b04 + 1ad74b8 commit 40a785d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/formatter.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: formatter
2+
on:
3+
pull_request:
4+
branches: [ master ]
5+
6+
workflow_dispatch:
7+
8+
jobs:
9+
linter_name:
10+
name: runner / black
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Check files using the black formatter
15+
uses: rickstaa/action-black@v1
16+
id: black_formatter
17+
with:
18+
black_args: ". -l 120"
19+
- name: Annotate diff changes using reviewdog
20+
if: steps.black_formatter.outputs.is_formatted == 'true'
21+
uses: reviewdog/action-suggester@v1
22+
with:
23+
tool_name: blackfmt

0 commit comments

Comments
 (0)