File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,19 @@ jobs:
24
24
pip install --upgrade setuptools
25
25
poetry env use "3.12"
26
26
poetry install
27
- - name : Run Lints
27
+ - name : Setup reviewdog
28
+ uses : reviewdog/action-setup@latest
29
+ - name : Run black
30
+ env : REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31
+ run : |
32
+ poetry run black nodestream_github tests --check --diff --quiet | reviewdog -f=diff -name="black-check" -level=error -reporter=github-pr-check
33
+ - name : Run isort
28
34
run : |
29
- poetry run black nodestream_github tests --check
30
35
poetry run isort nodestream_github tests --check-only
31
- poetry run ruff check nodestream_github tests
36
+ - name : Run Lint
37
+ env : REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38
+ run : |
39
+ poetry run ruff check nodestream_github tests --output-format rdjson | reviewdog -f=rdjson -name="ruff-check" -level=warning -reporter=github-pr-check
32
40
- name : Run Tests
33
41
run : |
34
42
poetry run pytest
You can’t perform that action at this time.
0 commit comments