Skip to content

Commit 276875c

Browse files
authored
Return an error if flake8 failes (#75)
Return an error if modifications are needed in the pull request
1 parent d77f8cc commit 276875c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ jobs:
1515
uses: actions/setup-python@v4
1616
with:
1717
python-version: "3.8"
18-
- name: Download flake8 config
19-
run: |
20-
curl -L https://github.com/ament/ament_lint/raw/humble/ament_flake8/ament_flake8/configuration/ament_flake8.ini > tox.ini
2118
- name: Run flake8
2219
uses: reviewdog/action-flake8@v3
2320
with:
2421
github_token: ${{ secrets.GITHUB_TOKEN }}
2522
reporter: "github-pr-review"
26-
flake8_args: "--config tox.ini"
23+
flake8_args: "--config .flake8"
24+
fail_on_error: "true"
2725
cpplint:
2826
runs-on: ubuntu-latest
2927
steps:

0 commit comments

Comments
 (0)