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 <michael.i.doherty@intel.com>
This commit is contained in:
Ikey Doherty
2016-07-27 17:05:04 +01:00
parent 627f561a76
commit 9044b59a77

6
test.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
fileset=`find swupd/ -name '*.py'`
pep8 $fileset || exit 1
flake8 $fileset || exit 1