use flake8 instead of pycodestyle

since there are thousands and thousands of errors in the tests files
at the moment, i propose fixing those errors in separate PR for now.
This commit is contained in:
Leo Hemsted
2017-11-28 13:51:47 +00:00
parent 28088428f1
commit 90e9a2f1b3
5 changed files with 6 additions and 9 deletions

View File

@@ -64,6 +64,7 @@ def delete_queue(queue_url):
print('Deleted queue successfully {}'.format(response['ResponseMetadata']))
else:
print('Error occured when attempting to delete queue')
from pprint import pprint
pprint(response)
return response

View File

@@ -27,7 +27,8 @@ function display_result {
if [[ -z "$VIRTUAL_ENV" ]] && [[ -d venv ]]; then
source ./venv/bin/activate
fi
pycodestyle .
echo -e "\033[31mWARNING. NOT RUNNING flake8 AGAINST TEST DIRECTORY DUE TO LARGE AMOUNT OF EXISTING ISSUES.\033[0m"
flake8 app/
display_result $? 1 "Code style check"
# run with four concurrent threads