Skip to content

Commit

Permalink
debugging linting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaaks committed Sep 4, 2023
1 parent 0aa612e commit 9ad358c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ jobs:
run: python3 -m pip install .[dev,gcloud,testing]

- name: Check sorting of imports
run: isort --check-only --diff src/cffconvert test/
# isort returns zero even when there are problems, explicitly check there is no output
run: |
output=$(isort --check-only --diff src/cffconvert test/)
if [[ -n "$output" ]]; then
exit 1
else
exit 0
fi
- name: Run prospector
run: prospector --profile-path .prospector.yml

0 comments on commit 9ad358c

Please sign in to comment.