From f2bbdbbf7e03be031723a9680aa9deaf80e4a99c Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Tue, 20 Nov 2018 11:19:55 -0500 Subject: Fix all flake8 errors The flake8 command in test.sh finds no longer finds any errors. This may form a basis of a jenkins verify job as a sort of 'weak compile-time checks' The flake8 command will not complain about line length, and will not complain about django's manage.py file Change-Id: Ic47cb4fc7ada55e64485661ab6881aef475018ff Signed-off-by: Parker Berberian --- dashboard/test.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dashboard/test.sh') diff --git a/dashboard/test.sh b/dashboard/test.sh index 68fe903..7931cf0 100755 --- a/dashboard/test.sh +++ b/dashboard/test.sh @@ -8,5 +8,9 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## +# first, basic lint with flake8 +find . -type f -name "*.py" -not -name "manage.py" | xargs flake8 --count --ignore E501 + + # this file should be executed from the dir it is in docker exec -it dg01 python manage.py test -t ../src/ -- cgit 1.2.3-korg