Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: hide "No issues detected!" from autoflake #595

Merged
merged 1 commit into from
Nov 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ 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