Skip to content

Commit

Permalink
tests: hide "No issues detected!" from autoflake
Browse files Browse the repository at this point in the history
Co-Authored-by: Olivier DOSSMANN <git@dossmann.net>
  • Loading branch information
blankoworld committed Oct 31, 2019
1 parent 0132598 commit 14b84a2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ if [ $# -eq 0 ]
display_success_message "Test isort:"
pipenv run isort -rc -c -df --skip ui
echo -e ${GREEN}Test useless imports:${NC}
pipenv run autoflake --remove-all-unused-imports -c -r --exclude ui --ignore-init-module-imports . || display_error_message_and_exit "\nUse this command to check imports:\n\tautoflake --remove-all-unused-imports -r --exclude ui --ignore-init-module-imports .\n"
pipenv run autoflake -c -r \
--remove-all-unused-imports \
--exclude ui \
--ignore-init-module-imports . \
&> /dev/null || \
display_error_message_and_exit "\nUse this command to check \
imports: \n\tautoflake --remove-all-unused-imports -r --exclude ui \
--ignore-init-module-imports .\n"

# syntax check for typescript
display_success_message "Syntax check for typescript:"
Expand Down

0 comments on commit 14b84a2

Please sign in to comment.