mirror of
https://github.com/b4tman/sync_ics2gcal
synced 2025-01-21 07:28:24 +00:00
check formatting with black (#99)
* check formatting with black + suggest on pr * test format check * fix test format error suggested by reviewdog[black] Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
a18be3d079
commit
111d527c33
3
.github/workflows/pythonpackage.yml
vendored
3
.github/workflows/pythonpackage.yml
vendored
@ -49,6 +49,9 @@ jobs:
|
||||
run: |
|
||||
poetry run mypy --strict --pretty . || true
|
||||
|
||||
- name: Check formatting with black
|
||||
run: poetry run black --check --diff --color .
|
||||
|
||||
- name: Upload mypy report
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
|
8
.github/workflows/reviewdog.yml
vendored
8
.github/workflows/reviewdog.yml
vendored
@ -39,3 +39,11 @@ jobs:
|
||||
with:
|
||||
reporter: github-pr-review
|
||||
level: warning
|
||||
|
||||
- name: format with black
|
||||
run: poetry run black .
|
||||
|
||||
- name: suggester / black
|
||||
uses: reviewdog/action-suggester@v1
|
||||
with:
|
||||
tool_name: black
|
||||
|
Loading…
Reference in New Issue
Block a user