This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
forked from kakaobrain/pororo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): update from atlas.workflows(b97e27a81df9accd6ef0e4ea38b818c…
…8a8500608)
- Loading branch information
atlas-athena
committed
Aug 11, 2023
1 parent
86038a9
commit d7ddedb
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Formatter | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
- feature/** | ||
|
||
jobs: | ||
formatter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Add a problem matcher | ||
run: echo "::add-matcher::.github/workflows/matchers/black.json" | ||
- name: Format | ||
uses: psf/black@stable | ||
with: | ||
options: "--check --diff --color --line-length 120" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "black", | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "^(would reformat) (.+)$", | ||
"file": 2, | ||
"message": 1 | ||
} | ||
] | ||
} | ||
] | ||
} |