From ccde1908ba79b7008002cf5dc6d9258f3105f7ec Mon Sep 17 00:00:00 2001 From: Eli Ribble <eli@authentise.com> Date: Mon, 2 May 2016 09:31:54 -0600 Subject: [PATCH] Add a script for running all pylint stuff It's just a conveniece, but it's pretty convenient --- pylint.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 pylint.sh diff --git a/pylint.sh b/pylint.sh new file mode 100755 index 0000000..c5d592d --- /dev/null +++ b/pylint.sh @@ -0,0 +1,10 @@ +PROJECT=vanth +SCRIPTS="bin/vanth" +mkdir -p dist +if [ -z "$1" ]; then + FILES="conftest.py setup.py $(find $PROJECT -maxdepth 3 -name "*.py" -not -path "*alembic/*" -print) $SCRIPTS $(find tests -maxdepth 3 -name "*.py" -print)" +else + FILES="$1" + echo "linting $FILES" +fi +pylint $FILES --reports=no | tee dist/pylint.log