Skip to content

Commit

Permalink
lint.sh: exit non-zero if any step fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed May 4, 2023
1 parent 017f2f1 commit 37397e7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
dir=$(dirname "$0")
cd "$dir/.."

exitCode=0
black src tests
#isort src tests
code=$?; test $code -eq 0 || exitCode=$code
isort src tests
code=$?; test $code -eq 0 || exitCode=$code
python -m flake8 src tests
code=$?; test $code -eq 0 || exitCode=$code
validate-pyproject pyproject.toml
code=$?; test $code -eq 0 || exitCode=$code
exit $exitCode

0 comments on commit 37397e7

Please sign in to comment.