From 9044b59a77d87add619b8c00b9ce8477d081e68a Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Wed, 27 Jul 2016 17:05:04 +0100 Subject: [PATCH] Add a test script to ensure continual compliance of the codebase This script will run pep8 and flake8 to ensure the codebase meets the PEP8 requirements, and has no stylistic or code issues prior to deployment and running of python-swupd. Signed-off-by: Ikey Doherty --- test.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 test.sh diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..2c363f4 --- /dev/null +++ b/test.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +fileset=`find swupd/ -name '*.py'` +pep8 $fileset || exit 1 +flake8 $fileset || exit 1 +