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:
Dmitry Belyaev 2022-06-04 23:43:13 +03:00 committed by GitHub
parent a18be3d079
commit 111d527c33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -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:

View File

@ -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